Skip to content

Commit

Permalink
upload test
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Nov 12, 2024
1 parent 611343b commit 09a7bcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 100 deletions.
100 changes: 0 additions & 100 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -47,102 +47,12 @@ check_skip_packages = true
check_flags =
cppcheck: --std=c++20 -j 8 --suppress=*:*/.pio/* --suppress=*:*/include/serialization/_fbs/*

; https://docs.platformio.org/en/stable/boards/espressif32/wemos_d1_mini32.html
[env:Wemos-D1-Mini-ESP32]
board = Wemos-D1-Mini-ESP32
custom_openshock.chip = ESP32
build_flags = ${env.build_flags}
-DOPENSHOCK_LED_GPIO=2
-DOPENSHOCK_RF_TX_GPIO=15

; https://docs.platformio.org/en/latest/boards/espressif32/lolin_s2_mini.html
[env:Wemos-Lolin-S2-Mini]
board = Wemos-Lolin-S2-Mini ; override
custom_openshock.chip = ESP32-S2
build_flags = ${env.build_flags}
-DOPENSHOCK_LED_GPIO=15

; https://docs.platformio.org/en/latest/boards/espressif32/lolin_s3.html
[env:Wemos-Lolin-S3]
board = Wemos-Lolin-S3 ; override
custom_openshock.chip = ESP32-S3
custom_openshock.flash_size = 16MB
build_flags = ${env.build_flags}
-DOPENSHOCK_LED_WS2812B=38

; https://docs.platformio.org/en/latest/boards/espressif32/lolin_s3_mini.html
[env:Wemos-Lolin-S3-Mini]
board = lolin_s3_mini ; builtin
custom_openshock.chip = ESP32-S3
custom_openshock.flash_size = 4MB
build_flags = ${env.build_flags}
-DOPENSHOCK_LED_WS2812B=47
-DOPENSHOCK_LED_FLIP_RG_CHANNELS=1
-DARDUINO_USB_CDC_ON_BOOT=1

; https://www.waveshare.com/wiki/ESP32-S3-Zero
[env:Waveshare_esp32_s3_zero]
board = esp32-s3-devkitc-1
custom_openshock.chip = ESP32-S3
custom_openshock.flash_size = 4MB
build_flags = ${env.build_flags}
-DOPENSHOCK_RF_TX_GPIO=1
-DOPENSHOCK_LED_WS2812B=21
-DOPENSHOCK_LED_FLIP_RG_CHANNELS=1
-DARDUINO_USB_CDC_ON_BOOT=1

[env:Pishock-2023]
board = Wemos-D1-Mini-ESP32 ; override
custom_openshock.chip = ESP32
build_flags = ${env.build_flags}
-DOPENSHOCK_LED_GPIO=2
-DOPENSHOCK_RF_TX_GPIO=12

[env:Pishock-Lite-2021]
board = Wemos-D1-Mini-ESP32 ; override
custom_openshock.chip = ESP32
build_flags = ${env.build_flags}
-DOPENSHOCK_LED_GPIO=2
-DOPENSHOCK_RF_TX_GPIO=15

; https://docs.platformio.org/en/latest//boards/espressif32/seeed_xiao_esp32c3.html
[env:Seeed-Xiao-ESP32C3]
board = seeed_xiao_esp32c3 ; builtin
custom_openshock.chip = ESP32-C3
custom_openshock.flash_size = 4MB

; https://docs.platformio.org/en/latest//boards/espressif32/seeed_xiao_esp32s3.html
[env:Seeed-Xiao-ESP32S3]
board = seeed_xiao_esp32s3 ; builtin
custom_openshock.chip = ESP32-S3
custom_openshock.flash_size = 8MB
build_flags = ${env.build_flags}
-DOPENSHOCK_LED_GPIO=21

; https://docs.platformio.org/en/latest//boards/espressif32/dfrobot_firebeetle2_esp32e.html
[env:DFRobot-Firebeetle2-ESP32E]
board = dfrobot_firebeetle2_esp32e ; builtin
custom_openshock.chip = ESP32
custom_openshock.flash_size = 4MB
build_flags = ${env.build_flags}
-DOPENSHOCK_RF_TX_GPIO=13
-DOPENSHOCK_LED_WS2812B=5
-DOPENSHOCK_LED_GPIO=2

; https://github.com/OpenShock/Hardware/tree/main/Core
; 8MB Flash, assume no PSRAM.
; Uses now-blacklisted pins for RF TX and Status LED.
[env:OpenShock-Core-V1]
board = esp32-s3-devkitc-1 ; builtin
custom_openshock.chip = ESP32-S3
custom_openshock.flash_size = 8MB
build_flags = ${env.build_flags}
-DOPENSHOCK_LED_WS2812B=48
-DOPENSHOCK_LED_GPIO=35
-DOPENSHOCK_RF_TX_GPIO=15
-DOPENSHOCK_ESTOP_PIN=13
-DARDUINO_USB_CDC_ON_BOOT=1

; https://github.com/OpenShock/Hardware/tree/main/Core%20v2
; 8MB Flash, assume no PSRAM.
[env:OpenShock-Core-V2]
Expand All @@ -156,16 +66,6 @@ build_flags = ${env.build_flags}
-DOPENSHOCK_ESTOP_PIN=38
-DARDUINO_USB_CDC_ON_BOOT=1

; https://docs.platformio.org/en/stable/boards/espressif32/nodemcu-32s.html
[env:NodeMCU-32S]
board = nodemcu-32s
custom_openshock.chip = ESP32
build_flags = ${env.build_flags}
-DOPENSHOCK_LED_GPIO=2

; TODO:
; https://docs.platformio.org/en/latest/boards/espressif32/upesy_wroom.html;upesy-esp32-wroom-devkit

[env:fs]
custom_openshock.chip = ESP32
custom_openshock.flash_size = 4MB
Expand Down
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,8 @@ void loop()
// Kill the loop task (Arduino is stinky)
vTaskDelete(nullptr);
}

static_assert(sizeof(int) == 4);
static_assert(sizeof(long) == 4);
static_assert(sizeof(long int) == 4);
static_assert(sizeof(long long) == 8);

0 comments on commit 09a7bcd

Please sign in to comment.