mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-06-19 04:15:06 +00:00
34 lines
892 B
C++
34 lines
892 B
C++
#include "devices/Display.h"
|
|
#include "devices/KeyboardBacklight.h"
|
|
#include "devices/Power.h"
|
|
#include "devices/Sdcard.h"
|
|
#include "devices/TdeckKeyboard.h"
|
|
#include "devices/TrackballDevice.h"
|
|
|
|
#include <Tactility/hal/Configuration.h>
|
|
#include <Tactility/lvgl/LvglSync.h>
|
|
#include <tactility/check.h>
|
|
#include <tactility/device.h>
|
|
|
|
bool initBoot();
|
|
|
|
using namespace tt::hal;
|
|
|
|
static std::vector<std::shared_ptr<tt::hal::Device>> createDevices() {
|
|
auto* i2c_internal = device_find_by_name("i2c0");
|
|
check(i2c_internal);
|
|
return {
|
|
createPower(),
|
|
createDisplay(),
|
|
std::make_shared<TdeckKeyboard>(i2c_internal),
|
|
std::make_shared<KeyboardBacklightDevice>(),
|
|
std::make_shared<TrackballDevice>(),
|
|
createSdCard()
|
|
};
|
|
}
|
|
|
|
extern const Configuration hardwareConfiguration = {
|
|
.initBoot = initBoot,
|
|
.createDevices = createDevices
|
|
};
|