Initial version of Lilygo T_2CAN board

This commit is contained in:
Matt Holmes 2025-08-01 08:55:25 +01:00
parent 50f4227266
commit 62486d9bf1
14 changed files with 213 additions and 877 deletions

View file

@ -3,21 +3,24 @@
#include "../../../USER_SETTINGS.h"
#include <Arduino.h>
#include "hw_3LB.h"
#include "hw_devkit.h"
#include "hw_lilygo.h"
#include "hw_stark.h"
Esp32Hal* esp32hal = nullptr;
void init_hal() {
#if defined(HW_LILYGO)
#include "hw_lilygo.h"
esp32hal = new LilyGoHal();
#elif defined(HW_LILYGO2CAN)
#include "hw_lilygo2can.h"
esp32hal = new LilyGo2CANHal();
#elif defined(HW_STARK)
#include "hw_stark.h"
esp32hal = new StarkHal();
#elif defined(HW_3LB)
#include "hw_3LB.h"
esp32hal = new ThreeLBHal();
#elif defined(HW_DEVKIT)
#include "hw_devkit.h"
esp32hal = new DevKitHal();
#else
#error "No HW defined."