660 lines
No EOL
21 KiB
INI
660 lines
No EOL
21 KiB
INI
; PlatformIO Project Configuration File for Adafruit.IO WipperSnapper Firmware
|
|
;
|
|
; Please visit documentation for the other options and examples
|
|
; https://docs.platformio.org/page/projectconf.html
|
|
|
|
; PlatformIO Defaults
|
|
[platformio]
|
|
description = "Adafruit.IO WipperSnapper Firmware"
|
|
default_envs = adafruit_feather_esp32s3_tft, adafruit_magtag29_esp32s2, adafruit_feather_esp32s3, featheresp32s2, adafruit_feather_esp32s2_reversetft, adafruit_metro_esp32s2, adafruit_qtpy_esp32s2, adafruit_feather_esp32s3_reversetft, adafruit_feather_esp32s3_nopsram, adafruit_feather_esp32s2_tft, adafruit_qtpy_esp32, adafruit_qtpy_esp32c3, featheresp32, adafruit_qtpy_esp32s3_nopsram, featheresp32v2, huzzah, adafruit_pyportal_m4, adafruit_pyportal_m4_titano, dfrobot_beetle_esp32c3
|
|
|
|
|
|
; Common Build Environment
|
|
; https://docs.platformio.org/en/latest/projectconf/section_env.html
|
|
[env]
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
lib_compat_mode = strict
|
|
lib_deps =
|
|
;;;;;;;;;;; FunHouse / LVGL Boards uncomment these ;;;;;;;;;;;;;;
|
|
; https://github.com/adafruit/Adafruit_HX8357_Library.git
|
|
; https://github.com/adafruit/Adafruit_ILI9341.git
|
|
; https://github.com/adafruit/Adafruit_STMPE610.git
|
|
; https://github.com/adafruit/Adafruit-ST7735-Library.git
|
|
; https://github.com/adafruit/Adafruit_TouchScreen.git
|
|
; https://github.com/brentru/lvgl.git#wippersnapper
|
|
; https://github.com/brentru/Adafruit_LvGL_Glue.git#development
|
|
;;;;;;;;;;; All Boards need these libraries included ;;;;;;;;;;;;;;
|
|
adafruit/Adafruit Zero DMA Library
|
|
adafruit/Adafruit NeoPixel
|
|
adafruit/Adafruit SPIFlash
|
|
adafruit/Adafruit DotStar
|
|
adafruit/ENS160 - Adafruit Fork
|
|
adafruit/Adafruit SleepyDog Library
|
|
adafruit/Adafruit AHTX0
|
|
adafruit/Adafruit BME280 Library
|
|
adafruit/Adafruit BMP280 Library
|
|
adafruit/Adafruit BMP3XX Library
|
|
adafruit/Adafruit DPS310
|
|
adafruit/Adafruit DS248x
|
|
adafruit/Adafruit INA219
|
|
adafruit/Adafruit INA260 Library
|
|
adafruit/Adafruit INA237 and INA238 Library
|
|
adafruit/Adafruit HDC302x
|
|
adafruit/Adafruit HTS221
|
|
adafruit/Adafruit HTU21DF Library
|
|
adafruit/Adafruit HTU31D Library
|
|
adafruit/Adafruit LTR390 Library
|
|
adafruit/Adafruit LTR329 and LTR303
|
|
adafruit/Adafruit PCT2075
|
|
adafruit/Adafruit SCD30
|
|
adafruit/Adafruit SGP30 Sensor
|
|
adafruit/Adafruit SGP40 Sensor
|
|
adafruit/Adafruit Si7021 Library
|
|
adafruit/Adafruit VCNL4020 Library
|
|
adafruit/Adafruit VCNL4040
|
|
adafruit/Adafruit VCNL4200 Library
|
|
adafruit/Adafruit MCP3421
|
|
adafruit/Adafruit MCP9808 Library
|
|
adafruit/Adafruit MCP9600 Library
|
|
adafruit/Adafruit MPL115A2
|
|
adafruit/Adafruit MPRLS Library
|
|
adafruit/Adafruit MS8607
|
|
adafruit/Adafruit NAU7802 Library
|
|
adafruit/Adafruit TMP117
|
|
adafruit/Adafruit TSL2591 Library
|
|
adafruit/Adafruit_VL53L0X
|
|
adafruit/Adafruit VL53L1X
|
|
stm32duino/STM32duino VL53L4CD
|
|
stm32duino/STM32duino VL53L4CX
|
|
adafruit/Adafruit_VL6180X
|
|
adafruit/Adafruit VEML7700 Library
|
|
adafruit/Adafruit LC709203F
|
|
adafruit/Adafruit LPS2X
|
|
adafruit/Adafruit LPS28
|
|
adafruit/Adafruit LPS35HW
|
|
adafruit/Adafruit seesaw Library
|
|
adafruit/Adafruit BME680 Library
|
|
adafruit/Adafruit MAX1704X
|
|
adafruit/Adafruit ADT7410 Library
|
|
adafruit/Adafruit GFX Library
|
|
adafruit/Adafruit STMPE610
|
|
adafruit/Adafruit TouchScreen
|
|
adafruit/Adafruit MQTT Library
|
|
bblanchon/ArduinoJson
|
|
adafruit/Adafruit LiquidCrystal
|
|
adafruit/Adafruit LED Backpack Library
|
|
adafruit/Adafruit PM25 AQI Sensor
|
|
adafruit/Adafruit SH110X
|
|
adafruit/Adafruit SSD1306
|
|
https://github.com/tyeth/omron-devhub_d6t-arduino.git
|
|
https://github.com/pstolarz/OneWireNg.git
|
|
; COMMENT OUT FOR RP2040/RP2350 BOARDS
|
|
https://github.com/milesburton/Arduino-Temperature-Control-Library.git
|
|
; AND UNCOMMENT FOR RP2040/RP2350 BOARDS
|
|
; https://github.com/pstolarz/Arduino-Temperature-Control-Library.git
|
|
https://github.com/Sensirion/arduino-sht.git
|
|
https://github.com/Sensirion/arduino-i2c-scd4x.git
|
|
https://github.com/Sensirion/arduino-i2c-sen5x.git
|
|
https://github.com/Sensirion/arduino-i2c-sen66.git
|
|
https://github.com/adafruit/WiFiNINA.git
|
|
https://github.com/Starmbi/hp_BH1750.git
|
|
https://github.com/adafruit/Adafruit_TinyUSB_Arduino.git
|
|
|
|
|
|
|
|
; Common build environment for ESP32 platform
|
|
[common:esp32]
|
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.13/platform-espressif32.zip
|
|
;;Funhouse uses 3.0.7 of arduino-esp32 for now:
|
|
; platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.07/platform-espressif32.zip
|
|
; This is needed for occasional new features and bug fixes
|
|
; platform = https://github.com/pioarduino/platform-espressif32#develop
|
|
lib_ignore = WiFiNINA, WiFi101, OneWire
|
|
monitor_filters = esp32_exception_decoder, time
|
|
|
|
; Common build environment for ESP8266 platform
|
|
[common:esp8266]
|
|
platform = espressif8266
|
|
lib_ignore = WiFiNINA, WiFi101, Adafruit TinyUSB Library, OneWire
|
|
|
|
; Common build environment for Atmel/Microchip SAMDx platform
|
|
[common:atsamd]
|
|
platform = atmelsam
|
|
platform_packages =
|
|
platformio/framework-arduino-samd-adafruit@^1.7.13
|
|
platformio/tool-jlink@^1.78811.0
|
|
lib_ldf_mode = chain+
|
|
lib_compat_mode = strict
|
|
lib_archive = no ; debug timer issues see https://community.platformio.org/t/choose-usb-stack-as-tiny-usb/22451/5
|
|
lib_ignore = OneWire, USBHost
|
|
|
|
; Common build environment for Arduino-Pico platforms
|
|
[common:arduinopico]
|
|
platform = https://github.com/maxgerhardt/platform-raspberrypi.git#develop
|
|
platform_packages = framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
|
|
framework = arduino
|
|
board_build.core = earlephilhower
|
|
board_build.filesystem_size = 0.5m
|
|
lib_ignore = WiFiNINA, WiFi101, Adafruit Zero DMA Library, OneWire
|
|
lib_compat_mode = soft ; can be stricter once pio detects SleepyDog on RP2040
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Individual Board Definitions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
; ESP32-x Boards ;
|
|
|
|
; Adafruit ESP32 Feather
|
|
[env:featheresp32]
|
|
extends = common:esp32
|
|
board = featheresp32
|
|
build_flags = -DARDUINO_FEATHER_ESP32
|
|
board_build.filesystem = littlefs
|
|
board_build.partitions = min_spiffs.csv
|
|
|
|
|
|
; Adafruit ESP32 Feather V2
|
|
[env:featheresp32v2]
|
|
extends = common:esp32
|
|
board = adafruit_feather_esp32_v2
|
|
board_build.partitions = default_8MB.csv
|
|
build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32_V2
|
|
board_build.filesystem = littlefs
|
|
|
|
; Adafruit ItsyBitsy ESP32
|
|
[env:itsybitsyesp32]
|
|
extends = common:esp32
|
|
board = adafruit_itsybitsy_esp32
|
|
build_flags = -DARDUINO_ADAFRUIT_ITSYBITSY_ESP32
|
|
board_build.filesystem = littlefs
|
|
|
|
; Adafruit ESP32 Feather C6
|
|
[env:adafruit_feather_esp32c6_4mbflash_nopsram]
|
|
extends = common:esp32
|
|
board = adafruit_feather_esp32c6
|
|
build_flags =
|
|
-DARDUINO_ADAFRUIT_FEATHER_ESP32C6
|
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
|
-DCORE_DEBUG_LEVEL=5
|
|
board_build.filesystem = littlefs
|
|
board_build.partitions = min_spiffs.csv
|
|
|
|
; Espressif ESP32-C6 4MB NO PSRAM esp32-c6-devkitm-1
|
|
[env:espressif_esp32-c6-devkitm-1]
|
|
extends = common:esp32
|
|
board = esp32-c6-devkitm-1
|
|
build_type = debug
|
|
build_flags =
|
|
-DARDUINO_ESPRESSIF_ESP32C6_DEVKITM_1
|
|
-DARDUINO_ADAFRUIT_FEATHER_ESP32C6
|
|
-DNDEBUG=1
|
|
-DDEBUG=1
|
|
-DESP_LOG_LEVEL=5
|
|
-DARDUINO_CORE_DEBUG_LEVEL=5
|
|
-DARDUINO_DEBUG_LEVEL=5
|
|
-DARDUINO_LOG_LEVEL=5
|
|
-DCORE_DEBUG_LEVEL=5
|
|
-DARDUHAL_LOG_LEVEL=5
|
|
board_build.filesystem = littlefs
|
|
board_build.partitions = min_spiffs.csv
|
|
|
|
; Adafruit Feather ESP32-S2
|
|
[env:featheresp32s2]
|
|
extends = common:esp32
|
|
board = featheresp32-s2
|
|
build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S2 -DBOARD_HAS_PSRAM
|
|
board_build.partitions = tinyuf2-partitions-4MB.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Adafruit Feather ESP32-S2 TFT
|
|
[env:adafruit_feather_esp32s2_tft]
|
|
extends = common:esp32
|
|
board = adafruit_feather_esp32s2_tft
|
|
build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S2_TFT -DBOARD_HAS_PSRAM
|
|
board_build.partitions = tinyuf2-partitions-4MB.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Adafruit Feather ESP32-S2 Reverse TFT
|
|
[env:adafruit_feather_esp32s2_reversetft]
|
|
extends = common:esp32
|
|
board = adafruit_feather_esp32s2_reversetft
|
|
build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S2_REVTFT -DBOARD_HAS_PSRAM
|
|
board_build.partitions = tinyuf2-partitions-4MB.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Adafruit Feather ESP32-S3 2MB PSRAM
|
|
[env:adafruit_feather_esp32s3]
|
|
extends = common:esp32
|
|
board = adafruit_feather_esp32s3
|
|
build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S3 -DBOARD_HAS_PSRAM
|
|
;set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
|
|
board_build.partitions = tinyuf2-partitions-4MB.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Adafruit Feather ESP32-S3 NO PSRAM
|
|
[env:adafruit_feather_esp32s3_nopsram]
|
|
extends = common:esp32
|
|
board = adafruit_feather_esp32s3_nopsram
|
|
build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S3_NOPSRAM
|
|
board_build.partitions = tinyuf2-partitions-8MB.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Adafruit Feather ESP32-S3 TFT
|
|
[env:adafruit_feather_esp32s3_tft]
|
|
extends = common:esp32
|
|
build_type = debug
|
|
debug_tool = esp-builtin
|
|
board = adafruit_feather_esp32s3_tft
|
|
build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S3_TFT -DBOARD_HAS_PSRAM
|
|
;set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
|
|
board_build.partitions = tinyuf2-partitions-4MB.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Adafruit Feather ESP32-S3 Reverse TFT
|
|
[env:adafruit_feather_esp32s3_reversetft]
|
|
extends = common:esp32
|
|
board = adafruit_feather_esp32s3_reversetft
|
|
build_flags = -DARDUINO_ADAFRUIT_FEATHER_ESP32S3_REVTFT -DBOARD_HAS_PSRAM
|
|
;set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
|
|
board_build.partitions = tinyuf2-partitions-4MB.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Adafruit Magtag ESP32-S2
|
|
[env:adafruit_magtag29_esp32s2]
|
|
extends = common:esp32
|
|
board = adafruit_magtag29_esp32s2
|
|
build_flags = -DARDUINO_MAGTAG29_ESP32S2 -DBOARD_HAS_PSRAM
|
|
;set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
|
|
board_build.partitions = tinyuf2-partitions-4MB.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Adafruit Metro ESP32-S2
|
|
[env:adafruit_metro_esp32s2]
|
|
extends = common:esp32
|
|
board = adafruit_metro_esp32s2
|
|
build_flags = -DARDUINO_METRO_ESP32S2 -DBOARD_HAS_PSRAM
|
|
;set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
|
|
board_build.partitions = tinyuf2-partitions-4MB.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Adafruit Metro ESP32-S3
|
|
[env:adafruit_metro_esp32s3]
|
|
extends = common:esp32
|
|
board = adafruit_metro_esp32s3
|
|
build_flags = -DARDUINO_METRO_ESP32S3 -DBOARD_HAS_PSRAM
|
|
;set partition to tinyuf2-partitions-16MB.csv as of idf 5.1
|
|
board_build.partitions = tinyuf2-partitions-16MB.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Adafruit Funhouse ESP32-S2
|
|
[env:adafruit_funhouse_esp32s2]
|
|
extends = common:esp32
|
|
board = adafruit_funhouse_esp32s2
|
|
build_flags = -DARDUINO_FUNHOUSE -DBOARD_HAS_PSRAM
|
|
;set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
|
|
board_build.partitions = tinyuf2-partitions-4MB-noota.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Adafruit Funhouse ESP32-S2
|
|
[env:adafruit_funhouse_esp32s2_debug]
|
|
extends = common:esp32
|
|
board = adafruit_funhouse_esp32s2
|
|
;lib_extra_dirs =
|
|
build_type = debug
|
|
build_flags =
|
|
-DARDUINO_FUNHOUSE
|
|
-DBOARD_HAS_PSRAM
|
|
-DCFG_TUSB_DEBUG=1
|
|
-DDEBUG=1
|
|
-DESP_LOG_LEVEL=ESP_LOG_VERBOSE
|
|
-DARDUINO_CORE_DEBUG_LEVEL=5
|
|
-DCORE_DEBUG_LEVEL=5
|
|
-DARDUHAL_LOG_LEVEL=5
|
|
; USB Configuration
|
|
; Uncomment if USB CDC on boot is needed
|
|
; -DARDUINO_USB_CDC_ON_BOOT=1
|
|
; -DARDUINO_USB_MODE=0 ; 0 for CDC + TinyUSB, 1 for Hardware CDC + JTAG
|
|
; LVGL Debugging
|
|
-DLV_USE_DEBUG=1
|
|
-DLV_USE_LOG=1
|
|
-DLV_LOG_PRINTF=1
|
|
-DLV_LOG_COLOR=1
|
|
-DLV_LOG_LEVEL=LV_LOG_LEVEL_TRACE
|
|
;set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
|
|
board_build.partitions = tinyuf2-partitions-4MB-noota.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Adafruit QT Py ESP32 Pico
|
|
[env:adafruit_qtpy_esp32]
|
|
extends = common:esp32
|
|
board = adafruit_qtpy_esp32
|
|
board_build.partitions = default_8MB.csv
|
|
board_build.filesystem = littlefs
|
|
build_type = debug
|
|
build_flags = -DARDUINO_ADAFRUIT_QTPY_ESP32
|
|
|
|
; Adafruit Mini Sparkle Motion
|
|
[env:adafruit_sparklemotionmini_esp32]
|
|
extends = common:esp32
|
|
board = adafruit_sparklemotionmini_esp32
|
|
board_build.partitions = min_spiffs.csv
|
|
board_build.filesystem = littlefs
|
|
build_flags = -DARDUINO_SPARKLEMOTIONMINI_ESP32
|
|
|
|
; Adafruit Sparkle Motion Stick
|
|
[env:adafruit_sparklemotionstick_esp32]
|
|
extends = common:esp32
|
|
board = adafruit_sparklemotionstick_esp32
|
|
board_build.partitions = min_spiffs.csv
|
|
board_build.filesystem = littlefs
|
|
build_flags = -DARDUINO_SPARKLEMOTIONSTICK_ESP32
|
|
|
|
; Adafruit QT Py ESP32-C3
|
|
[env:adafruit_qtpy_esp32c3]
|
|
extends = common:esp32
|
|
board = adafruit_qtpy_esp32c3
|
|
build_flags = -DARDUINO_ADAFRUIT_QTPY_ESP32C3
|
|
board_build.filesystem = littlefs
|
|
board_build.partitions = min_spiffs.csv
|
|
|
|
; Adafruit QT Py ESP32-S2
|
|
[env:adafruit_qtpy_esp32s2]
|
|
extends = common:esp32
|
|
board = adafruit_qtpy_esp32s2
|
|
build_flags = -DARDUINO_ADAFRUIT_QTPY_ESP32S2 -DBOARD_HAS_PSRAM
|
|
;set partition to tinyuf2-partitions-4MB.csv as of idf 5.1
|
|
board_build.partitions = tinyuf2-partitions-4MB.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Adafruit QT Py ESP32-S3 NO PSRAM
|
|
[env:adafruit_qtpy_esp32s3_nopsram]
|
|
extends = common:esp32
|
|
board = adafruit_qtpy_esp32s3_nopsram
|
|
build_flags = -DARDUINO_ADAFRUIT_QTPY_ESP32S3_NOPSRAM
|
|
board_build.partitions = tinyuf2-partitions-8MB.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Adafruit QT Py ESP32-S3 with PSRAM
|
|
[env:adafruit_qtpy_esp32s3_with_psram]
|
|
extends = common:esp32
|
|
board = adafruit_qtpy_esp32s3_n4r2
|
|
build_flags = -DARDUINO_ADAFRUIT_QTPY_ESP32S3_N4R2 -DBOARD_HAS_PSRAM
|
|
board_build.partitions = tinyuf2-partitions-4MB-noota.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
[env:adafruit_qtpy_esp32s3_with_psram_debug]
|
|
extends = common:esp32
|
|
board = adafruit_qtpy_esp32s3_n4r2
|
|
board_build.partitions = tinyuf2-partitions-4MB-noota.csv
|
|
build_type = debug
|
|
build_flags =
|
|
-DARDUINO_ADAFRUIT_QTPY_ESP32S3_N4R2
|
|
-DBOARD_HAS_PSRAM
|
|
-DCFG_TUSB_DEBUG=1
|
|
-DNDEBUG=1
|
|
-DDEBUG=1
|
|
-DESP_LOG_LEVEL=5
|
|
-DARDUINO_CORE_DEBUG_LEVEL=5
|
|
-DARDUINO_DEBUG_LEVEL=5
|
|
# -DARDUINO_DEBUG_OUTPUT=Serial
|
|
# -DARDUINO_DEBUG_BAUD=115200
|
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
|
; cdc + usb otg (tinyusb)
|
|
-DARDUINO_USB_MODE=0
|
|
; hwcdc jtag
|
|
;-DARDUINO_USB_MODE=1
|
|
-DARDUINO_LOG_LEVEL=5
|
|
-DCORE_DEBUG_LEVEL=5
|
|
-DARDUHAL_LOG_LEVEL=5
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Espressif ESP32-S3 NO PSRAM espressif_esp32s3_devkitc_1_n8
|
|
[env:espressif_esp32s3_devkitc_1_n8]
|
|
extends = common:esp32
|
|
board = esp32-s3-devkitc-1
|
|
build_flags = -DARDUINO_ESPRESSIF_ESP32S3_DEVKITC_1_N8 -DUSE_TINYUSB=1 -DARDUINO_USB_MODE=0 -DARDUINO_USB_CDC_ON_BOOT=1
|
|
board_build.partitions = noota_ffat.csv
|
|
; board_build.partitions = tinyuf2-partitions-8MB.csv
|
|
; extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Espressif ESP32-S3 NO PSRAM espressif_esp32s3_devkitc_1_n8 (DEBUG)
|
|
[env:espressif_esp32s3_devkitc_1_n8_debug]
|
|
extends = common:esp32
|
|
board = esp32-s3-devkitc-1
|
|
build_type = debug
|
|
build_flags =
|
|
-DUSE_TINYUSB=1
|
|
-DARDUINO_USB_MODE=0
|
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
|
-DARDUINO_ESPRESSIF_ESP32S3_DEVKITC_1_N8
|
|
-DDEBUG=1
|
|
-DESP_LOG_LEVEL=5
|
|
-DARDUINO_CORE_LOG_LEVEL=5
|
|
-DARDUINO_LOG_LEVEL=5
|
|
-DARDUHAL_LOG_LEVEL=5
|
|
; board_build.partitions = tinyuf2-partitions-8MB.csv
|
|
board_build.partitions = noota_ffat.csv
|
|
; extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Seeed Studio ESP32 boards:
|
|
|
|
; Xiao ESP32S3 N8R8 (SENSE)
|
|
[env:seeed-xiao_esp32s3_n8r8]
|
|
extends = common:esp32
|
|
board = seeed_xiao_esp32s3
|
|
build_flags = -DARDUINO_XIAO_ESP32S3 -DUSE_TINYUSB -DBOARD_HAS_PSRAM -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MODE=0
|
|
board_build.partitions = tinyuf2-partitions-8MB.csv
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
|
|
|
|
|
|
; ESP8266 Boards
|
|
|
|
; Adafruit Feather HUZZAH ESP8266
|
|
[env:huzzah]
|
|
extends=common:esp8266
|
|
board = huzzah
|
|
board_build.f_cpu = 80000000L
|
|
; Arduino CLI uses this from adafruit_ci#ci-wippersnapper
|
|
; esp8266:esp8266:huzzah:xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,eesz=4M2M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200
|
|
build_flags =
|
|
-Wl,--gc-sections
|
|
-Wl,-Map=output.map
|
|
-DARDUINO_ESP8266_ADAFRUIT_HUZZAH
|
|
-DDEBUG_ESP_PORT=Serial
|
|
-DVTABLES_IN_FLASH
|
|
-DNO_EXCEPTIONS
|
|
-DNO_STACK_SMASH_PROTECTION
|
|
-DSSL_ALL
|
|
-DMMU_3232
|
|
-DNON32XFER_FAST
|
|
-DDEBUG_DISABLED
|
|
-DDEBUG_LEVEL_NONE
|
|
board_build.eesz=4M2M
|
|
board_build.filesystem = littlefs
|
|
upload_port = /dev/cu.SLAB_USBtoUART
|
|
|
|
; SAMD51 Boards ;
|
|
|
|
; Adafruit PyPortal M4
|
|
[env:adafruit_pyportal_m4]
|
|
extends = common:atsamd
|
|
board = adafruit_pyportal_m4
|
|
build_flags = -DUSE_TINYUSB
|
|
-DADAFRUIT_PYPORTAL
|
|
extra_scripts = pre:rename_usb_config.py
|
|
|
|
; Adafruit PyPortal M4 Titano
|
|
[env:adafruit_pyportal_m4_titano]
|
|
extends = common:atsamd
|
|
board = adafruit_pyportal_m4_titano
|
|
build_type = debug
|
|
upload_protocol = sam-ba
|
|
; upload_protocol = jlink
|
|
debug_tool = jlink
|
|
monitor_port = auto
|
|
; monitor_port = jlink
|
|
; monitor_port = socket://localhost:19021
|
|
; debug_init_break = tbreak clearConfiguration
|
|
lib_ignore = USBHost
|
|
build_flags = -DUSE_TINYUSB
|
|
-D__SAMD51J20A__
|
|
-DCRYSTALLESS
|
|
-DADAFRUIT_PYPORTAL_M4_TITANO
|
|
-D__SAMD51__
|
|
-D__FPU_PRESENT
|
|
-DARM_MATH_CM4
|
|
-mfloat-abi=hard
|
|
-mfpu=fpv4-sp-d16
|
|
-DCORE_DEBUG_LEVEL=5
|
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
|
-DCFG_TUSB_DEBUG=1
|
|
-DDEBUG=1
|
|
-DNDEBUG=1
|
|
-DUSE_AIRLIFT=1
|
|
-g
|
|
; -DUSBCON
|
|
; -UCDC_DISABLED
|
|
; -UPLUGGABLE_USB_DISABLED
|
|
; -DCDC_ENABLED
|
|
; -DPLUGGABLE_USB_ENABLED
|
|
; -DSERIAL_DEBUG=1
|
|
; -DSERIAL_PORT=Serial1
|
|
; -DSERCOM_INSTANCE_SERIAL=1
|
|
|
|
; Adafruit Metro M4 Airlift Lite
|
|
[env:adafruit_metro_m4_airliftlite]
|
|
extends = common:atsamd
|
|
board = adafruit_metro_m4_airliftlite
|
|
build_flags = -DUSE_TINYUSB
|
|
-DADAFRUIT_METRO_M4_AIRLIFT_LITE
|
|
; extra_scripts = pre:rename_usb_config.py
|
|
upload_port = /dev/cu.usbmodem1201
|
|
|
|
; DFRobot Beetle ESP32-C3
|
|
[env:dfrobot_beetle_esp32c3]
|
|
extends = common:esp32
|
|
board = dfrobot_beetle_esp32c3
|
|
; Note: this board reuses a generic preprocessor define
|
|
; espressif/arduino-esp32@fcd4799c6de6eb5a5a8eba94818adf770238ecc0
|
|
; rather than creating one unique to the device.
|
|
build_flags = -DARDUINO_ESP32C3_DEV
|
|
board_build.filesystem = littlefs
|
|
board_build.partitions = min_spiffs.csv
|
|
|
|
|
|
[env:raspberypi_picow]
|
|
extends = common:arduinopico
|
|
board = rpipicow
|
|
build_flags =
|
|
-DUSE_TINYUSB
|
|
|
|
[env:raspberypi_picow_debug_port_only]
|
|
extends = common:arduinopico
|
|
board = rpipicow
|
|
build_flags =
|
|
-DUSE_TINYUSB
|
|
-DDEBUG_RP2040_PORT=Serial
|
|
|
|
[env:raspberypi_picow_debug]
|
|
extends = common:arduinopico
|
|
; platform = https://github.com/maxgerhardt/platform-raspberrypi.git
|
|
; platform_packages =
|
|
; framework-arduinopico @ symlink:///Users/tyeth/Projects/arduino-pico
|
|
; framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#master
|
|
board = rpipicow
|
|
build_type = debug
|
|
framework = arduino
|
|
debug_tool = cmsis-dap
|
|
upload_protocol = cmsis-dap
|
|
; board can use both Arduino cores -- we select Arduino-Pico here
|
|
board_build.core = earlephilhower
|
|
board_build.filesystem_size = 0.5m
|
|
debug_init_break = tbreak runNetFSM
|
|
build_flags =
|
|
-DDEBUG
|
|
-DWIFICC=CYW43_COUNTRY_UK
|
|
-DDEBUG_RP2040_WIRE
|
|
-DDEBUG_RP2040_SPI
|
|
-DDEBUG_RP2040_CORE
|
|
-DDEBUG_RP2040_WIFI
|
|
-DNDEBUG
|
|
-DLWIP_DEBUG=1
|
|
-DDEBUG_RP2040_PORT=Serial1
|
|
-DDEBUG_RP2040_UART_1
|
|
-DDEBUG_RP2040_UART=1
|
|
-Og
|
|
; Enable debug stack protection
|
|
-fstack-protector
|
|
; Enable Exceptions
|
|
-DPIO_FRAMEWORK_ARDUINO_ENABLE_EXCEPTIONS
|
|
; Enable RTTI
|
|
-DPIO_FRAMEWORK_ARDUINO_ENABLE_RTTI
|
|
; ; Enable default USB Stack of Pico SDK USB Stack with none of below usb options
|
|
; Adafruit TinyUSB
|
|
-DUSE_TINYUSB
|
|
; ; No USB stack
|
|
; build_flags = -DPIO_FRAMEWORK_ARDUINO_NO_USB
|
|
; -DPIO_FRAMEWORK_ARDUINO_ENABLE_IPV6
|
|
|
|
|
|
[env:raspberypi_pico2w]
|
|
extends = common:arduinopico
|
|
platform = https://github.com/maxgerhardt/platform-raspberrypi.git#develop
|
|
platform_packages =
|
|
framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
|
|
board = rpipico2w
|
|
build_flags =
|
|
-DWIFICC=CYW43_COUNTRY_UK
|
|
-DUSE_TINYUSB
|
|
; -DARDUINO_ARCH_RP2040
|
|
; -DUSBD_MAX_POWER_MA=250
|
|
; -DPICO_CYW43_SUPPORTED=1
|
|
|
|
[env:raspberypi_pico2w_debug]
|
|
extends = common:arduinopico
|
|
board = rpipico2w
|
|
build_type = debug
|
|
framework = arduino
|
|
debug_tool = cmsis-dap
|
|
upload_protocol = cmsis-dap
|
|
; board can use both Arduino cores -- we select Arduino-Pico here
|
|
board_build.core = earlephilhower
|
|
board_build.filesystem_size = 0.5m
|
|
debug_init_break = tbreak runNetFSM
|
|
build_flags =
|
|
; -UARDUINO
|
|
; -DPICO_BUILD
|
|
-DARDUINO_ARCH_RP2040
|
|
-DUSBD_MAX_POWER_MA=250
|
|
-DPICO_CYW43_SUPPORTED=1
|
|
-DWIFICC=CYW43_COUNTRY_UK
|
|
; -DDEBUG
|
|
; -DDEBUG_RP2040_WIRE
|
|
; -DDEBUG_RP2040_SPI
|
|
; -DDEBUG_RP2040_CORE
|
|
; -DDEBUG_RP2040_WIFI
|
|
; -DNDEBUG
|
|
; -DLWIP_DEBUG
|
|
; -DDEBUG_RP2040_PORT=Serial1
|
|
; -DDEBUG_RP2040_UART_1
|
|
; -DDEBUG_RP2040_UART=1
|
|
-Og
|
|
; Enable debug stack protection
|
|
-fstack-protector
|
|
; Enable Exceptions
|
|
-DPIO_FRAMEWORK_ARDUINO_ENABLE_EXCEPTIONS
|
|
; Enable RTTI
|
|
-DPIO_FRAMEWORK_ARDUINO_ENABLE_RTTI
|
|
; ; Enable default USB Stack of Pico SDK USB Stack with none of below usb options
|
|
; Adafruit TinyUSB
|
|
-DUSE_TINYUSB
|
|
; ; No USB stack
|
|
; build_flags = -DPIO_FRAMEWORK_ARDUINO_NO_USB
|
|
; -DPIO_FRAMEWORK_ARDUINO_ENABLE_IPV6
|
|
|
|
[env:adafruit_fruitjam]
|
|
board = adafruit_fruitjam
|
|
lib_ignore = WiFi, WiFi101, Adafruit Zero DMA Library
|
|
build_flags = -DUSE_TINYUSB -DADAFRUIT_FRUITJAM_RP2350 |