#include "devices/Display.h" #include "devices/SdCard.h" #include "devices/TpagerEncoder.h" #include "devices/TpagerKeyboard.h" #include "devices/TpagerPower.h" #include #include #include #include bool tpagerInit(); using namespace tt::hal; static DeviceVector createDevices() { auto bq27220 = std::make_shared(I2C_NUM_0); auto power = std::make_shared(bq27220); auto tca8418 = std::make_shared(I2C_NUM_0); auto keyboard = std::make_shared(tca8418); return std::vector> { tca8418, std::make_shared(I2C_NUM_0), bq27220, std::make_shared(I2C_NUM_0), power, createTpagerSdCard(), createDisplay(), keyboard, std::make_shared() }; } extern const Configuration hardwareConfiguration = { .initBoot = tpagerInit, .createDevices = createDevices };