mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
31 lines
856 B
C
31 lines
856 B
C
#pragma once
|
|
|
|
#ifdef ESP_PLATFORM
|
|
#include "sdkconfig.h"
|
|
|
|
// Supported hardware:
|
|
#if defined(CONFIG_TT_BOARD_LILYGO_TDECK)
|
|
#include "LilygoTdeck.h"
|
|
#define TT_BOARD_HARDWARE &lilygo_tdeck
|
|
#elif defined(CONFIG_TT_BOARD_YELLOW_BOARD_24_CAP)
|
|
#include "YellowBoard.h"
|
|
#define TT_BOARD_HARDWARE &yellow_board_24inch_cap
|
|
#elif defined(CONFIG_TT_BOARD_M5STACK_CORE2)
|
|
#include "M5stackCore2.h"
|
|
#define TT_BOARD_HARDWARE &m5stack_core2
|
|
#elif defined(CONFIG_TT_BOARD_M5STACK_CORES3)
|
|
#include "M5stackCoreS3.h"
|
|
#define TT_BOARD_HARDWARE &m5stack_cores3
|
|
#else
|
|
#define TT_BOARD_HARDWARE NULL
|
|
#error Replace TT_BOARD_HARDWARE in main.c with your own. Or copy one of the ./sdkconfig.board.* files into ./sdkconfig.
|
|
#endif
|
|
|
|
#else // else simulator
|
|
|
|
#include "Simulator.h"
|
|
|
|
extern tt::hal::Configuration hardware;
|
|
#define TT_BOARD_HARDWARE &hardware
|
|
|
|
#endif // ESP_PLATFORM
|