mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Initial version of Lilygo T_2CAN board
This commit is contained in:
parent
50f4227266
commit
62486d9bf1
14 changed files with 213 additions and 877 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue