Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

add sticks3 env

Geof9e1f81aa69d
diff --git a/platformio.ini b/platformio.ini
index 972fd637..7d12f606 100644
--- a/platformio.ini
+++ b/platformio.ini
@@ -359,7 +359,124 @@ build_flags =
-DSUBGHZ_GDO_PIN=26
; --- JTAG ---
- -DJTAG_SCAN_PINS="\"0, 25, 26, 33\""
+; -DJTAG_SCAN_PINS="\"0, 25, 26, 33\""
+
+
+[env:m5stack-sticks3]
+platform = [email protected]
+board = esp32-s3-devkitc-1
+framework = arduino
+monitor_speed = 115200
+board_build.flash_size = 8MB
+board_build.arduino.memory_type = qio_opi
+lib_deps =
+ M5Unified=https://github.com/m5stack/M5Unified.git#develop
+ fastled/FastLED@^3.3.3
+ bblanchon/ArduinoJson@^7.3.0
+ paulstoffregen/OneWire@^2.3.8
+ esp32ping
+ hideakitai/ESP32SPISlave@^0.6.8
+ gilman88/XModem@^1.0.3
+ ewpa/LibSSH-ESP32@^5.6.0
+ autowp/autowp-mcp2515@^1.2.1
+ sparkfun/SparkFun External EEPROM Arduino Library@^3.2.10
+ miq19/eModbus@^1.7.4
+ nrf24/RF24@^1.5.0
+ paulstoffregen/OneWire@^2.3.8
+ pstolarz/OneWireNg@^0.14.0
+
+build_flags =
+ -DDEVICE_STICKS3
+ -DESP32S3
+ -DBOARD_HAS_PSRAM
+ -mfix-esp32-psram-cache-issue
+ -DCORE_DEBUG_LEVEL=5
+ -DARDUINO_USB_CDC_ON_BOOT=1
+ -DARDUINO_USB_MODE=1
+ -DCONFIG_CRC16_ENABLED=1 ; 1Wire EEPROM OneWireNg
+ ${env.build_flags}
+
+ -Wl,-zmuldefs ; ieee80211_raw_frame_sanity_check override - needed for WiFi deauth
+
+ ; --- Pin in use ---
+ -DPROTECTED_PINS="\"21,38,39,40,41,45\""
+
+ ; --- Builtin LED ---
+ -DLED_PIN=1
+ -DLED_TYPE_RGB=false
+
+ ; --- OneWire ---
+ -DONEWIRE_PIN=4
+
+ ; --- UART ---
+ -DUART_BAUD=9600
+ -DUART_RX_PIN=10
+ -DUART_TX_PIN=9
+
+ ; --- HDUART ---
+ -DHDUART_BAUD=9600
+ -DHDUART_PIN=4
+
+ ; --- I2C ---
+ -DI2C_SCL_PIN=10
+ -DI2C_SDA_PIN=9
+ -DI2C_FREQ=100000
+
+ ; --- SPI ---
+ -DSPI_CS_PIN=4
+ -DSPI_CLK_PIN=5
+ -DSPI_MISO_PIN=6
+ -DSPI_MOSI_PIN=7
+
+ ; --- Infrared ---
+ -DIR_TX_PIN=46
+ -DIR_RX_PIN=42
+
+ ; --- LED ---
+ -DLED_DATA_PIN=4
+ -DLED_CLOCK_PIN=5
+
+ ; --- TwoWire ---
+ -DTWOWIRE_CLK_PIN=5
+ -DTWOWIRE_IO_PIN=4
+ -DTWOWIRE_RST_PIN=0
+
+ ; --- ThreeWire ---
+ -DTHREEWIRE_CS_PIN=4
+ -DTHREEWIRE_SK_PIN=5
+ -DTHREEWIRE_DI_PIN=6
+ -DTHREEWIRE_DO_PIN=7
+
+ ; --- I2S ---
+ -DI2S_BCLK_PIN=17
+ -DI2S_LRCK_PIN=15
+ -DI2S_DATA_PIN=14
+ -DI2S_SAMPLE_RATE=16000
+ -DI2S_BITS=16
+
+ ; --- CAN ---
+ -DCAN_CS_PIN=4
+ -DCAN_SCK_PIN=5
+ -DCAN_SI_PIN=6
+ -DCAN_SO_PIN=7
+ -DCAN_KBPS=125
+
+ ; --- ETHERNET (W5500) ---
+ -DETHERNET_CS_PIN=4
+ -DETHERNET_CLK_PIN=5
+ -DETHERNET_MISO_PIN=6
+ -DETHERNET_MOSI_PIN=7
+ -DETHERNET_IRQ_PIN=8
+
+ ; --- SUBGHZ ---
+ -DSUBGHZ_CS_PIN=4
+ -DSUBGHZ_SCK_PIN=5
+ -DSUBGHZ_SI_PIN=6
+ -DSUBGHZ_SO_PIN=7
+ -DSUBGHZ_GDO_PIN=8
+
+ ; --- JTAG ---
+ -DJTAG_SCAN_PINS="\"4, 5, 6, 7\""
[env:s3-devkit]