Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions board-defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,37 @@
"needManualReboot": false,
"shouldOnlyUseDefaults": false
}
},
"BOARD_TTGO_TOI_PLUS": {
"values": {
"SENSORS": [
{
"protocol": "I2C",
"imu": "IMU_BNO085",
"rotation": "DEG_270",
"scl": "18",
"sda": "19",
"int": "5"
}
],
"BATTERY": {
"type": "BAT_EXTERNAL",
"r1": 100,
"r2": 100,
"shieldR": 0,
"pin": "2"
},
"LED": {
"LED_PIN": "3",
"LED_INVERTED": false
}
},
"flashingRules": {
"applicationOffset": 65536,
"needBootPress": false,
"needManualReboot": false,
"shouldOnlyUseDefaults": false
}
}
}
}
3 changes: 2 additions & 1 deletion board-defaults.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@
"BOARD_WEMOSWROOM02",
"BOARD_XIAO_ESP32C3",
"BOARD_ESP32S3_SUPERMINI",
"BOARD_ESP32C6_SUPERMINI"
"BOARD_ESP32C6_SUPERMINI",
"BOARD_TTGO_TOI_PLUS"
],
"description": "Board Type"
},
Expand Down
14 changes: 14 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,17 @@ build_flags =
-D PRODUCT_NAME='"SlimeVR Glove (dev)"'
board = lolin_c3_mini
monitor_filters = colorize, esp32_exception_decoder

[env:BOARD_TTGO_TOI_PLUS]
platform = espressif32 @ 6.7.0
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1
framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip
custom_slime_board = BOARD_TTGO_TOI_PLUS
build_flags =
${env.build_flags}
-DESP32C3
board = ttgo-t-oi-plus
monitor_filters = colorize, esp32_exception_decoder
; LilyGO T-OI Plus ESP32-C3: USB-UART bridge board (CH340 on UART0, GPIO20/21),
; no native-USB path.
2 changes: 2 additions & 0 deletions src/consts.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ enum class SensorTypeID : uint8_t {
#define BOARD_SLIMEVR_BUTTERFLY_DEV 25
#define BOARD_SLIMEVR_BUTTERFLY 26
#define BOARD_ESP32C6_SUPERMINI 27
#define BOARD_TTGO_TOI_PLUS 28
#define BOARD_DEV_RESERVED 250 // Reserved, should not be used in any release firmware

#define BOARD_N0 "BOARD_UNKNOWN"
Expand Down Expand Up @@ -130,6 +131,7 @@ enum class SensorTypeID : uint8_t {
#define BOARD_N25 "BOARD_SLIMEVR_BUTTERFLY_DEV"
#define BOARD_N26 "BOARD_SLIMEVR_BUTTERFLY"
#define BOARD_N27 "BOARD_ESP32C6_SUPERMINI"
#define BOARD_N28 "BOARD_TTGO_TOI_PLUS"
#define BOARD_N250 \
"BOARD_DEV_RESERVED" // Reserved, should not be used in any release firmware

Expand Down