| 82 | } |
| 83 | |
| 84 | bool initBoot() { |
| 85 | auto* i2c_internal = device_find_by_name("i2c_internal"); |
| 86 | check(i2c_internal, "i2c_internal not found"); |
| 87 | |
| 88 | error_t error = initSound(i2c_internal); |
| 89 | if (error != ERROR_NONE) { |
| 90 | LOG_E(TAG, "Failed to enable ES8311 speaker"); |
| 91 | } |
| 92 | |
| 93 | error = initMicrophone(i2c_internal); |
| 94 | if (error != ERROR_NONE) { |
| 95 | LOG_E(TAG, "Failed to enable ES8311 microphone"); |
| 96 | } |
| 97 | return driver::pwmbacklight::init(GPIO_NUM_38, 512); |
| 98 | } |
| 99 | |
| 100 | static DeviceVector createDevices() { |
| 101 | return { |
nothing calls this directly
no test coverage detected