mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-04-18 09:25:06 +00:00
25 lines
542 B
C++
25 lines
542 B
C++
#include "devices/Power.h"
|
|
#include "devices/SdCard.h"
|
|
#include "devices/Display.h"
|
|
|
|
#include <ButtonControl.h>
|
|
#include <Tactility/hal/Configuration.h>
|
|
|
|
bool initBoot();
|
|
|
|
using namespace tt::hal;
|
|
|
|
static std::vector<std::shared_ptr<tt::hal::Device>> createDevices() {
|
|
return {
|
|
createSdCard(),
|
|
createDisplay(),
|
|
std::make_shared<Power>(),
|
|
ButtonControl::createOneButtonControl(0)
|
|
};
|
|
}
|
|
|
|
extern const Configuration hardwareConfiguration = {
|
|
.initBoot = initBoot,
|
|
.createDevices = createDevices
|
|
};
|