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

Function createDevices

Devices/lilygo-tdeck/Source/Configuration.cpp:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13using namespace tt::hal;
14
15static std::vector<std::shared_ptr<tt::hal::Device>> createDevices() {
16 auto* i2c_internal = device_find_by_name("i2c0");
17 check(i2c_internal);
18 return {
19 createPower(),
20 createDisplay(),
21 std::make_shared<TdeckKeyboard>(i2c_internal),
22 std::make_shared<KeyboardBacklightDevice>(),
23 std::make_shared<TrackballDevice>(),
24 };
25}
26
27extern const Configuration hardwareConfiguration = {
28 .initBoot = initBoot,

Callers

nothing calls this directly

Calls 4

device_find_by_nameFunction · 0.85
checkFunction · 0.50
createPowerFunction · 0.50
createDisplayFunction · 0.50

Tested by

no test coverage detected