mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
27 lines
588 B
C++
27 lines
588 B
C++
#include "devices/SdCard.h"
|
|
#include "devices/Display.h"
|
|
#include "devices/Power.h"
|
|
#include <driver/gpio.h>
|
|
|
|
#include <Tactility/hal/Configuration.h>
|
|
#include <Tactility/lvgl/LvglSync.h>
|
|
#include <PwmBacklight.h>
|
|
|
|
using namespace tt::hal;
|
|
|
|
static bool initBoot() {
|
|
return driver::pwmbacklight::init(DISPLAY_BACKLIGHT_PIN);
|
|
}
|
|
|
|
static tt::hal::DeviceVector createDevices() {
|
|
return {
|
|
createPower(),
|
|
createDisplay(),
|
|
createSdCard()
|
|
};
|
|
}
|
|
|
|
extern const Configuration hardwareConfiguration = {
|
|
.initBoot = initBoot,
|
|
.createDevices = createDevices
|
|
}; |