kopia lustrzana https://github.com/pjalocha/esp32-ogn-tracker
fix missing functions for TX_LED
rodzic
86a24a2913
commit
292939ee69
11
main/hal.cpp
11
main/hal.cpp
|
@ -544,6 +544,12 @@ void LED_PCB_On (void) { }
|
||||||
void LED_PCB_Off (void) { }
|
void LED_PCB_Off (void) { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef WITH_LED_TX
|
||||||
|
void LED_TX_Dir (void) { gpio_set_direction(PIN_LED_TX, GPIO_MODE_OUTPUT); }
|
||||||
|
void LED_TX_On (void) { gpio_set_level(PIN_LED_TX, 0); }
|
||||||
|
void LED_TX_Off (void) { gpio_set_level(PIN_LED_TX, 1); }
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef PIN_BUTTON
|
#ifdef PIN_BUTTON
|
||||||
void Button_Dir (void) { gpio_set_direction(PIN_BUTTON, GPIO_MODE_INPUT); }
|
void Button_Dir (void) { gpio_set_direction(PIN_BUTTON, GPIO_MODE_INPUT); }
|
||||||
bool Button_isPressed(void) { return !gpio_get_level(PIN_BUTTON); }
|
bool Button_isPressed(void) { return !gpio_get_level(PIN_BUTTON); }
|
||||||
|
@ -1586,6 +1592,11 @@ void IO_Configuration(void)
|
||||||
LED_PCB_Dir();
|
LED_PCB_Dir();
|
||||||
LED_PCB_Off();
|
LED_PCB_Off();
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef WITH_LED_TX
|
||||||
|
LED_TX_Dir();
|
||||||
|
LED_TX_Off();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef PIN_BUTTON
|
#ifdef PIN_BUTTON
|
||||||
Button_Dir();
|
Button_Dir();
|
||||||
#endif
|
#endif
|
||||||
|
|
Ładowanie…
Reference in New Issue