@@ -16,8 +16,16 @@ framework = arduino
1616monitor_speed = 115200
1717lib_compat_mode = strict
1818lib_deps =
19+ ; ;;;;;;;;;; FunHouse / LVGL Boards uncomment these ;;;;;;;;;;;;;;
20+ ; https://github.com/adafruit/Adafruit_HX8357_Library.git
21+ ; https://github.com/adafruit/Adafruit_ILI9341.git
22+ ; https://github.com/adafruit/Adafruit_STMPE610.git
23+ ; https://github.com/adafruit/Adafruit-ST7735-Library.git
24+ ; https://github.com/adafruit/Adafruit_TouchScreen.git
25+ ; https://github.com/brentru/lvgl.git#wippersnapper
26+ ; https://github.com/brentru/Adafruit_LvGL_Glue.git#development
27+ ; ;;;;;;;;;; All Boards need these libraries included ;;;;;;;;;;;;;;
1928 adafruit/Adafruit Zero DMA Library
20- https://github.com/adafruit/Adafruit_TinyUSB_Arduino.git
2129 adafruit/Adafruit NeoPixel
2230 adafruit/Adafruit SPIFlash
2331 adafruit/Adafruit DotStar
@@ -43,6 +51,7 @@ lib_deps =
4351 adafruit/Adafruit Si7021 Library
4452 adafruit/Adafruit VCNL4020 Library
4553 adafruit/Adafruit VCNL4040
54+ adafruit/Adafruit VCNL4200 Library
4655 adafruit/Adafruit MCP3421
4756 adafruit/Adafruit MCP9808 Library
4857 adafruit/Adafruit MCP9600 Library
@@ -78,14 +87,8 @@ lib_deps =
7887 https://github.com/Sensirion/arduino-i2c-sen5x.git
7988 https://github.com/adafruit/WiFiNINA.git
8089 https://github.com/Starmbi/hp_BH1750.git
81- ; ;;;;;;;;;; FunHouse / LVGL Boards ;;;;;;;;;;;;;;
82- https://github.com/adafruit/Adafruit_HX8357_Library.git
83- https://github.com/adafruit/Adafruit_ILI9341.git
84- https://github.com/adafruit/Adafruit_STMPE610.git
85- https://github.com/adafruit/Adafruit-ST7735-Library.git
86- https://github.com/adafruit/Adafruit_TouchScreen.git
87- https://github.com/brentru/lvgl.git# wippersnapper
88- https://github.com/brentru/Adafruit_LvGL_Glue.git# development
90+ https://github.com/adafruit/Adafruit_TinyUSB_Arduino.git
91+
8992
9093
9194; Common build environment for ESP32 platform
@@ -107,12 +110,13 @@ platform = atmelsam
107110platform_packages =
108111 platformio/framework-arduino-samd-adafruit@^1.7.13
109112 platformio/tool-jlink@^1.78811.0
110- lib_ldf_mode = deep
113+ lib_ldf_mode = chain+
114+ lib_compat_mode = strict
111115lib_archive = no ; debug timer issues see https://community.platformio.org/t/choose-usb-stack-as-tiny-usb/22451/5
112- lib_ignore = OneWire
116+ lib_ignore = OneWire, USBHost
113117
114118[common:rp2040]
115- platform = https://github.com/maxgerhardt/platform-raspberrypi.git
119+ platform = https://github.com/maxgerhardt/platform-raspberrypi.git# develop
116120; platform_packages =
117121; framework-arduinopico @ symlink:///Users/tyeth/Projects/arduino-pico
118122; framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#master
@@ -408,7 +412,23 @@ extra_scripts = pre:rename_usb_config.py
408412[env:huzzah]
409413extends =common:esp8266
410414board = huzzah
411- build_flags = -DARDUINO_ESP8266_ADAFRUIT_HUZZAH
415+ board_build.f_cpu = 80000000L
416+ ; Arduino CLI uses this from adafruit_ci#ci-wippersnapper
417+ ; 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
418+ build_flags =
419+ -Wl,--gc-sections
420+ -Wl,-Map =output.map
421+ -DARDUINO_ESP8266_ADAFRUIT_HUZZAH
422+ -DDEBUG_ESP_PORT =Serial
423+ -DVTABLES_IN_FLASH
424+ -DNO_EXCEPTIONS
425+ -DNO_STACK_SMASH_PROTECTION
426+ -DSSL_ALL
427+ -DMMU_3232
428+ -DNON32XFER_FAST
429+ -DDEBUG_DISABLED
430+ -DDEBUG_LEVEL_NONE
431+ board_build.eesz =4M2M
412432board_build.filesystem = littlefs
413433upload_port = /dev/cu.SLAB_USBtoUART
414434
@@ -418,8 +438,9 @@ upload_port = /dev/cu.SLAB_USBtoUART
418438[env:adafruit_pyportal_m4]
419439extends = common:atsamd
420440board = adafruit_pyportal_m4
421- build_flags = -DUSE_TINYUSB =1
441+ build_flags = -DUSE_TINYUSB
422442 -DADAFRUIT_PYPORTAL
443+ extra_scripts = pre:rename_usb_config.py
423444
424445; Adafruit PyPortal M4 Titano
425446[env:adafruit_pyportal_m4_titano]
@@ -463,17 +484,24 @@ build_flags = -DUSE_TINYUSB
463484[env:adafruit_metro_m4_airliftlite]
464485extends = common:atsamd
465486board = adafruit_metro_m4_airliftlite
466- build_flags = -DUSE_TINYUSB =1
487+ build_flags = -DUSE_TINYUSB
467488 -DADAFRUIT_METRO_M4_AIRLIFT_LITE
489+ ; extra_scripts = pre:rename_usb_config.py
468490upload_port = /dev/cu.usbmodem1201
469491
470492
471493[env:raspberypi_picow]
472494extends = common:rp2040
473495
496+ [env:raspberypi_picow_debug_port_only]
497+ extends = common:rp2040
498+ build_flags =
499+ -DUSE_TINYUSB
500+ -DDEBUG_RP2040_PORT =Serial
501+
474502[env:raspberypi_picow_debug]
475503extends = common:rp2040
476- platform = https://github.com/maxgerhardt/platform-raspberrypi.git
504+ ; platform = https://github.com/maxgerhardt/platform-raspberrypi.git
477505; platform_packages =
478506; framework-arduinopico @ symlink:///Users/tyeth/Projects/arduino-pico
479507; framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#master
@@ -494,7 +522,7 @@ build_flags =
494522 -DDEBUG_RP2040_CORE
495523 -DDEBUG_RP2040_WIFI
496524 -DNDEBUG
497- -DLWIP_DEBUG
525+ -DLWIP_DEBUG =1
498526 -DDEBUG_RP2040_PORT =Serial1
499527 -DDEBUG_RP2040_UART_1
500528 -DDEBUG_RP2040_UART =1
@@ -511,3 +539,63 @@ build_flags =
511539 ; ; No USB stack
512540 ; build_flags = -DPIO_FRAMEWORK_ARDUINO_NO_USB
513541 ; -DPIO_FRAMEWORK_ARDUINO_ENABLE_IPV6
542+
543+
544+ [env:raspberypi_pico2w]
545+ extends = common:rp2040
546+ platform = https://github.com/maxgerhardt/platform-raspberrypi.git# develop
547+ platform_packages =
548+ framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
549+ board = rpipico2w
550+ build_flags =
551+ -DWIFICC =CYW43_COUNTRY_UK
552+ -DUSE_TINYUSB
553+ ; -DARDUINO_ARCH_RP2040
554+ ; -DUSBD_MAX_POWER_MA=250
555+ ; -DPICO_CYW43_SUPPORTED=1
556+
557+ [env:raspberypi_pico2w_debug]
558+ extends = common:rp2040
559+ platform = https://github.com/maxgerhardt/platform-raspberrypi.git# develop
560+ platform_packages =
561+ framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
562+ ; ; framework-arduinopico @ symlink:///Users/tyeth/Projects/arduino-pico
563+ board = rpipico2w
564+ build_type = debug
565+ framework = arduino
566+ debug_tool = cmsis-dap
567+ upload_protocol = cmsis-dap
568+ ; board can use both Arduino cores -- we select Arduino-Pico here
569+ board_build.core = earlephilhower
570+ board_build.filesystem_size = 0.5m
571+ debug_init_break = tbreak runNetFSM
572+ build_flags =
573+ ; -UARDUINO
574+ ; -DPICO_BUILD
575+ -DARDUINO_ARCH_RP2040
576+ -DUSBD_MAX_POWER_MA =250
577+ -DPICO_CYW43_SUPPORTED =1
578+ -DWIFICC =CYW43_COUNTRY_UK
579+ ; -DDEBUG
580+ ; -DDEBUG_RP2040_WIRE
581+ ; -DDEBUG_RP2040_SPI
582+ ; -DDEBUG_RP2040_CORE
583+ ; -DDEBUG_RP2040_WIFI
584+ ; -DNDEBUG
585+ ; -DLWIP_DEBUG
586+ ; -DDEBUG_RP2040_PORT=Serial1
587+ ; -DDEBUG_RP2040_UART_1
588+ ; -DDEBUG_RP2040_UART=1
589+ -Og
590+ ; Enable debug stack protection
591+ -fstack-protector
592+ ; Enable Exceptions
593+ -DPIO_FRAMEWORK_ARDUINO_ENABLE_EXCEPTIONS
594+ ; Enable RTTI
595+ -DPIO_FRAMEWORK_ARDUINO_ENABLE_RTTI
596+ ; ; Enable default USB Stack of Pico SDK USB Stack with none of below usb options
597+ ; Adafruit TinyUSB
598+ -DUSE_TINYUSB
599+ ; ; No USB stack
600+ ; build_flags = -DPIO_FRAMEWORK_ARDUINO_NO_USB
601+ ; -DPIO_FRAMEWORK_ARDUINO_ENABLE_IPV6
0 commit comments