| 32 | } |
| 33 | |
| 34 | bool initBoot() { |
| 35 | ESP_LOGI(TAG, "Powering on the board..."); |
| 36 | if (!powerOn()) { |
| 37 | ESP_LOGE(TAG, "Failed to power on the board."); |
| 38 | return false; |
| 39 | } |
| 40 | |
| 41 | if (!driver::pwmbacklight::init(DISPLAY_BL, 30000)) { |
| 42 | ESP_LOGE(TAG, "Failed to initialize backlight."); |
| 43 | return false; |
| 44 | } |
| 45 | |
| 46 | return true; |
| 47 | } |