Skip to content

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

add cardputer adv env

Geo3d1e3751544b
diff --git a/platformio.ini b/platformio.ini
index 04702ed9..fef6a357 100644
--- a/platformio.ini
+++ b/platformio.ini
@@ -123,6 +123,121 @@ build_flags =
-DJTAG_SCAN_PINS="\"12, 40, 39, 14\""
+[env:cardputer-adv]
+platform = espressif32
+board = m5stack-stamps3
+framework = arduino
+monitor_speed = 115200
+upload_speed = 921600
+lib_deps =
+ M5Cardputer=https://github.com/m5stack/M5Cardputer
+ 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
+ pstolarz/OneWireNg@^0.14.0
+ nrf24/RF24@^1.5.0
+build_flags =
+ -D CONFIG_TINYUSB_ENABLED=1
+ -D CONFIG_TINYUSB_CDC_ENABLED=1
+ -D CONFIG_TINYUSB_HID_ENABLED=1
+ -D ARDUINO_USB_MODE=1
+ -D ARDUINO_USB_CDC_ON_BOOT=1
+ -D CONFIG_CRC16_ENABLED=1 ; 1Wire EEPROM OneWireNg
+
+ ; -D ENABLE_FASTLED_PROTOCOL_SWITCHES ; Only possible if you build it on linux
+
+ -Wl,-zmuldefs ; ieee80211_raw_frame_sanity_check override - needed for WiFi deauth
+
+ -DDEVICE_CARDPUTER
+
+ ; --- Pin in use ---
+ -DPROTECTED_PINS="\"8,9,11,19,20,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38\""
+
+ ; --- Builtin LED ---
+ -DLED_PIN=21
+ -DLED_TYPE_RGB=true
+
+ ; --- OneWire ---
+ -DONEWIRE_PIN=3
+
+ ; --- TwoWire ---
+ -DTWOWIRE_CLK_PIN=3
+ -DTWOWIRE_IO_PIN=4
+ -DTWOWIRE_RST_PIN=6
+
+ ; --- ThreeWire ---
+ -DTHREEWIRE_CS_PIN=3
+ -DTHREEWIRE_SK_PIN=4
+ -DTHREEWIRE_DI_PIN=6
+ -DTHREEWIRE_DO_PIN=40
+
+ ; --- UART ---
+ -DUART_BAUD=9600
+ -DUART_RX_PIN=3
+ -DUART_TX_PIN=4
+
+ ; --- HDUART ---
+ -DHDUART_BAUD=9600
+ -DHDUART_PIN=3
+
+ ; --- I2C ---
+ -DI2C_SCL_PIN=1
+ -DI2C_SDA_PIN=2
+ -DI2C_FREQ=100000
+
+ ; --- SPI ---
+ -DSPI_CS_PIN=3
+ -DSPI_CLK_PIN=4
+ -DSPI_MISO_PIN=6
+ -DSPI_MOSI_PIN=40
+
+ ; --- Infrared ---
+ -DIR_TX_PIN=44
+ -DIR_RX_PIN=1
+
+ ; --- LED ---
+ -DLED_DATA_PIN=3
+ -DLED_CLOCK_PIN=4
+
+ ; --- I2S ---
+ -DI2S_BCLK_PIN=3
+ -DI2S_LRCK_PIN=4
+ -DI2S_DATA_PIN=6
+ -DI2S_SAMPLE_RATE=44100
+ -DI2S_BITS=16
+
+ ; --- CAN ---
+ -DCAN_CS_PIN=3
+ -DCAN_SCK_PIN=4
+ -DCAN_SI_PIN=6
+ -DCAN_SO_PIN=40
+ -DCAN_KBPS=125
+
+ ; --- ETHERNET (W5500) ---
+ -DETHERNET_CS_PIN=3
+ -DETHERNET_CLK_PIN=4
+ -DETHERNET_MISO_PIN=6
+ -DETHERNET_MOSI_PIN=40
+ -DETHERNET_IRQ_PIN=14
+
+ ; --- SUBGHZ ---
+ -DSUBGHZ_CS_PIN=3
+ -DSUBGHZ_SCK_PIN=4
+ -DSUBGHZ_SI_PIN=6
+ -DSUBGHZ_SO_PIN=40
+ -DSUBGHZ_GDO_PIN=14
+
+ ; --- JTAG ---
+ -DJTAG_SCAN_PINS="\"3, 4, 6, 40, 14\""
+
+
[env:m5stick]
platform = espressif32
board = m5stick-c