Skip to content

Commit

Permalink
Add BOARD_WEMOSWROOM02 (#279)
Browse files Browse the repository at this point in the history
Co-authored-by: unlogisch04 <[email protected]>
  • Loading branch information
medicalwei and unlogisch04 authored Oct 1, 2023
1 parent 07785c8 commit 9968f15
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platformio-tools.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/consts.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions src/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9968f15

Please sign in to comment.