More refactoring

- Display is a separated entity
- Make battery configuration consistent with others
- Led config part of led.c
- Jack config moved to monitor.c
This commit is contained in:
philippe44
2020-02-09 11:36:58 -08:00
parent 0cb807b023
commit 64fcc0edec
49 changed files with 141 additions and 188 deletions

View File

@@ -45,6 +45,7 @@ void set_power_gpio(int gpio, char *value) {
if (parsed) ESP_LOGI(TAG, "set GPIO %u to %s", gpio, value);
}
/****************************************************************************************
*
@@ -88,11 +89,7 @@ void services_init(void) {
ESP_LOGW(TAG, "no SPI configured");
}
ESP_LOGD(TAG,"Configuring LEDs green:%d red:%d", CONFIG_LED_GREEN_GPIO, CONFIG_LED_RED_GPIO);
led_svc_init();
led_config(LED_GREEN, CONFIG_LED_GREEN_GPIO, 0);
led_config(LED_RED, CONFIG_LED_RED_GPIO, 0);
battery_svc_init();
monitor_svc_init();
}