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

Function createDevices

Devices/m5stack-tab5/Source/Configuration.cpp:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12static constexpr auto* TAG = "Tab5";
13
14static DeviceVector createDevices() {
15 auto* i2c2 = device_find_by_name("i2c2");
16 check(i2c2, "i2c2 not found");
17 return {
18 createPower(),
19 createDisplay(),
20 std::make_shared<Tab5Keyboard>(i2c2)
21 };
22}
23
24/*
25 PI4IOE5V6408-0 (0x43)

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