mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-20 15:35:05 +00:00
Board update
This commit is contained in:
parent
3db3fcd8f7
commit
b9c3e5f773
@ -1,13 +1,19 @@
|
|||||||
#include "hal/WaveshareDisplay.h"
|
#include "devices/Display.h"
|
||||||
#include "hal/WaveshareSdCard.h"
|
#include "devices/SdCard.h"
|
||||||
|
|
||||||
#include <Tactility/hal/Configuration.h>
|
#include <Tactility/hal/Configuration.h>
|
||||||
|
|
||||||
using namespace tt::hal;
|
using namespace tt::hal;
|
||||||
|
|
||||||
|
static DeviceVector createDevices() {
|
||||||
|
return {
|
||||||
|
createDisplay(),
|
||||||
|
createSdCard()
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
extern const Configuration waveshare_s3_touch_43 = {
|
extern const Configuration waveshare_s3_touch_43 = {
|
||||||
.createDisplay = createDisplay,
|
.createDevices = createDevices,
|
||||||
.sdcard = createSdCard(),
|
|
||||||
.i2c = {
|
.i2c = {
|
||||||
// There is only 1 (internal for touch, and also serves as "I2C-OUT" port)
|
// There is only 1 (internal for touch, and also serves as "I2C-OUT" port)
|
||||||
// Note: You could repurpose 1 or more UART interfaces as I2C interfaces
|
// Note: You could repurpose 1 or more UART interfaces as I2C interfaces
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#include "WaveshareDisplay.h"
|
#include "Display.h"
|
||||||
|
|
||||||
#include <Gt911Touch.h>
|
#include <Gt911Touch.h>
|
||||||
#include <RgbDisplay.h>
|
#include <RgbDisplay.h>
|
||||||
@ -1,4 +1,4 @@
|
|||||||
#include "WaveshareSdCard.h"
|
#include "SdCard.h"
|
||||||
|
|
||||||
#include <Tactility/hal/sdcard/SpiSdCardDevice.h>
|
#include <Tactility/hal/sdcard/SpiSdCardDevice.h>
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user