MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / initBoot

Function initBoot

Devices/m5stack-sticks3/Source/Configuration.cpp:84–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84bool 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
100static DeviceVector createDevices() {
101 return {

Callers

nothing calls this directly

Calls 5

device_find_by_nameFunction · 0.85
initSoundFunction · 0.70
initMicrophoneFunction · 0.70
checkFunction · 0.50
initFunction · 0.50

Tested by

no test coverage detected