some refactoring,

minor code changes
added a small class for SNESController reading
This commit is contained in:
2021-01-03 16:21:20 +01:00
parent ac74587ee7
commit 3babe3f1ef
8 changed files with 188 additions and 22 deletions

View File

@@ -9,9 +9,11 @@
#define WROOM32_DEVKIT 32
#define TTGO 33
#define TEENSY_41 41
#define ESP8266 (PLATFORM == WEMOS_D1_MINI) || (PLATFORM == NODE_MCU)
#define ESP32 (PLATFORM == WROOM32_DEVKIT) || (PLATFORM == TTGO)
#define TEENSY (PLATFORM == TEENSY_41)
#ifndef PLATFORM
#error "PLATFORM compile time variable not defined"
@@ -29,9 +31,13 @@
#define DELAY_US(us) os_delay_us(us)
#define IN_FLASH ICACHE_FLASH_ATTR
#elif (TEENSY)
#pragma message "Using Teensy"
#else
#error "unsupported platform";
#error "Platforms.h: unsupported platform";
#endif