Skip to content

Commit

Permalink
Add board to platformio-tools.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
ButterscotchV committed Feb 8, 2024
1 parent d7f89ae commit 0998260
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions platformio-tools.ini
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,10 @@ build_flags =
${env.build_flags}
-DESP32C3
board = esp32-c3-devkitm-1

[env:BOARD_XIAO_ESP32C3]
platform = espressif32 @ 6.1.0
build_flags =
${env.build_flags}
-DESP32C3
board = seeed_xiao_esp32c3
14 changes: 7 additions & 7 deletions src/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,17 @@ IMU_DESC_ENTRY(IMU_BMP160, PRIMARY_IMU_ADDRESS_ONE, IMU_ROTATION, PIN_IMU_SCL, P
#define LED_PIN 16
#define LED_INVERTED true
#elif BOARD == BOARD_XIAO_ESP32C3
#define PIN_IMU_SDA 6 //D4
#define PIN_IMU_SCL 7 //D5
#define PIN_IMU_INT 5 //D3
#define PIN_IMU_INT_2 10 //D10
#define LED_PIN 4 //D2
#define PIN_IMU_SDA 6 // D4
#define PIN_IMU_SCL 7 // D5
#define PIN_IMU_INT 5 // D3
#define PIN_IMU_INT_2 10 // D10
#define LED_PIN 4 // D2
#define LED_INVERTED false
#define PIN_BATTERY_LEVEL 2 //D0 / A0
#define PIN_BATTERY_LEVEL 2 // D0 / A0
#ifndef BATTERY_SHIELD_RESISTANCE
#define BATTERY_SHIELD_RESISTANCE 0
#endif
#ifndef BATTERY_SHIELD_R1
#ifndef BATTERY_SHIELD_R1
#define BATTERY_SHIELD_R1 100
#endif
#ifndef BATTERY_SHIELD_R2
Expand Down

0 comments on commit 0998260

Please sign in to comment.