From 9968f152fc323249f4a8fe8be7d6c5bb14a35598 Mon Sep 17 00:00:00 2001 From: Yao Wei Date: Mon, 2 Oct 2023 06:52:51 +0800 Subject: [PATCH] Add BOARD_WEMOSWROOM02 (#279) Co-authored-by: unlogisch04 <98281608+unlogisch04@users.noreply.github.com> --- platformio-tools.ini | 4 ++++ src/consts.h | 1 + src/defines.h | 8 ++++++++ 3 files changed, 13 insertions(+) diff --git a/platformio-tools.ini b/platformio-tools.ini index 9ebc16c81..ca97fc8fd 100644 --- a/platformio-tools.ini +++ b/platformio-tools.ini @@ -26,6 +26,10 @@ board = esp12e platform = espressif8266 @ 4.2.0 board = esp12e +[env:BOARD_WEMOSWROOM02] +platform = espressif8266 @ 4.2.0 +board = esp12e + [env:BOARD_WROOM32] platform = espressif32 @ 6.1.0 board = esp32dev diff --git a/src/consts.h b/src/consts.h index 3e60a68bf..3c09d1d26 100644 --- a/src/consts.h +++ b/src/consts.h @@ -53,6 +53,7 @@ #define BOARD_OWOTRACK 13 // Only used by owoTrack mobile app #define BOARD_WRANGLER 14 // Only used by wrangler app #define BOARD_MOCOPI 15 // Used by mocopi/moslime +#define BOARD_WEMOSWROOM02 16 #define BOARD_DEV_RESERVED 250 // Reserved, should not be used in any release firmware #define BAT_EXTERNAL 1 diff --git a/src/defines.h b/src/defines.h index 3763dfff6..79f4d94b3 100644 --- a/src/defines.h +++ b/src/defines.h @@ -181,4 +181,12 @@ IMU_DESC_ENTRY(IMU_BMP160, PRIMARY_IMU_ADDRESS_ONE, IMU_ROTATION, PIN_IMU_SCL, P #define PIN_BATTERY_LEVEL 3 #define LED_PIN LED_OFF // RGB LED Protocol would need to be implementetet did not brother for the test, because the board ideal for tracker ifself // #define LED_INVERTED false +#elif BOARD == BOARD_WEMOSWROOM02 + #define PIN_IMU_SDA 2 + #define PIN_IMU_SCL 14 + #define PIN_IMU_INT 0 + #define PIN_IMU_INT_2 4 + #define PIN_BATTERY_LEVEL A0 + #define LED_PIN 16 + #define LED_INVERTED true #endif