mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-19 03:13:14 +00:00
- UiDensity moved to lvgl-module - Deleted tt_hal and tt_hal_gpio (breaks apps, but will fix those right after merging) - Added I2C 8 bit register operations - Added device.properties to simulator - Improved Tab5 hardware init, implement audio - Add README.md to kernel
24 lines
526 B
C++
24 lines
526 B
C++
#include "devices/Display.h"
|
|
|
|
#include <PwmBacklight.h>
|
|
#include <Tactility/hal/Configuration.h>
|
|
#include <ButtonControl.h>
|
|
|
|
using namespace tt::hal;
|
|
|
|
static bool initBoot() {
|
|
return driver::pwmbacklight::init(LCD_PIN_BACKLIGHT);
|
|
}
|
|
|
|
static std::vector<std::shared_ptr<tt::hal::Device>> createDevices() {
|
|
return {
|
|
createDisplay(),
|
|
ButtonControl::createTwoButtonControl(35, 0)
|
|
};
|
|
}
|
|
|
|
extern const Configuration hardwareConfiguration = {
|
|
.initBoot = initBoot,
|
|
.createDevices = createDevices
|
|
};
|