ESP IDF Robot

This commit is contained in:
2024-12-22 16:53:41 -05:00
parent 622b8ff943
commit 48f5b03206
17 changed files with 839 additions and 1041 deletions

View File

@@ -179,8 +179,8 @@ static void ledc_init (void) {
}
static void dac_init (void) {
dac_output_enable(DAC_CHANNEL_1);
dac_output_voltage(DAC_CHANNEL_1, 124);
dac_output_enable(DAC_CHANNEL_2);
dac_output_voltage(DAC_CHANNEL_2, 64);
}
void app_main(void)
@@ -217,9 +217,10 @@ void app_main(void)
configure_button();
//configure_dc_mc();
printf("Added button interrupt");
dac_init();
while (1) {
ESP_LOGI(TAG, "Turning the LED %s!", s_led_state == true ? "ON" : "OFF");
//blink_led();