Menu.c/.h erstellt

This commit is contained in:
2025-02-04 16:41:20 +01:00
parent a135fbb47b
commit d98977432e
4 changed files with 6 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
idf_component_register(SRCS "ADC.c" "GPIO.c" "mcpwm.c" "functions.c" "app_main.c"
idf_component_register(SRCS "menu.c" "ADC.c" "GPIO.c" "mcpwm.c" "functions.c" "app_main.c"
INCLUDE_DIRS "include""${CMAKE_SOURCE_DIR}""."
REQUIRES ssd1306 driver esp_adc hal esp_timer)

5
main/include/menu.h Normal file
View File

@@ -0,0 +1,5 @@
#ifndef MENU_H
#define MENU_H
#endif

View File

@@ -36,8 +36,6 @@ float duty = CONFIG_DUTY_PWM;
/*############################################*/
void mcpwm_init(){
ESP_LOGI("MCPWM","started");
double tick_period_ns = 1e9 / CONFIG_TIMER_BASE_FREQ; // Zeit pro Tick in ns
uint32_t dead_time_ticks = (uint32_t)round(CONFIG_DEAD_TIME_PWM / tick_period_ns);

0
main/menu.c Normal file
View File