@@ -16,8 +16,16 @@ framework = arduino
16
16
monitor_speed = 115200
17
17
lib_compat_mode = strict
18
18
lib_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 ;;;;;;;;;;;;;;
19
28
adafruit/Adafruit Zero DMA Library
20
- https://github.com/adafruit/Adafruit_TinyUSB_Arduino.git
21
29
adafruit/Adafruit NeoPixel
22
30
adafruit/Adafruit SPIFlash
23
31
adafruit/Adafruit DotStar
@@ -43,6 +51,7 @@ lib_deps =
43
51
adafruit/Adafruit Si7021 Library
44
52
adafruit/Adafruit VCNL4020 Library
45
53
adafruit/Adafruit VCNL4040
54
+ adafruit/Adafruit VCNL4200 Library
46
55
adafruit/Adafruit MCP3421
47
56
adafruit/Adafruit MCP9808 Library
48
57
adafruit/Adafruit MCP9600 Library
@@ -78,14 +87,8 @@ lib_deps =
78
87
https://github.com/Sensirion/arduino-i2c-sen5x.git
79
88
https://github.com/adafruit/WiFiNINA.git
80
89
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
+
89
92
90
93
91
94
; Common build environment for ESP32 platform
@@ -107,12 +110,13 @@ platform = atmelsam
107
110
platform_packages =
108
111
platformio/framework-arduino-samd-adafruit@^1.7.13
109
112
platformio/tool-jlink@^1.78811.0
110
- lib_ldf_mode = deep
113
+ lib_ldf_mode = chain+
114
+ lib_compat_mode = strict
111
115
lib_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
113
117
114
118
[common:rp2040]
115
- platform = https://github.com/maxgerhardt/platform-raspberrypi.git
119
+ platform = https://github.com/maxgerhardt/platform-raspberrypi.git# develop
116
120
; platform_packages =
117
121
; framework-arduinopico @ symlink:///Users/tyeth/Projects/arduino-pico
118
122
; framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#master
@@ -408,7 +412,23 @@ extra_scripts = pre:rename_usb_config.py
408
412
[env:huzzah]
409
413
extends =common:esp8266
410
414
board = 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
412
432
board_build.filesystem = littlefs
413
433
upload_port = /dev/cu.SLAB_USBtoUART
414
434
@@ -418,8 +438,9 @@ upload_port = /dev/cu.SLAB_USBtoUART
418
438
[env:adafruit_pyportal_m4]
419
439
extends = common:atsamd
420
440
board = adafruit_pyportal_m4
421
- build_flags = -DUSE_TINYUSB =1
441
+ build_flags = -DUSE_TINYUSB
422
442
-DADAFRUIT_PYPORTAL
443
+ extra_scripts = pre:rename_usb_config.py
423
444
424
445
; Adafruit PyPortal M4 Titano
425
446
[env:adafruit_pyportal_m4_titano]
@@ -463,17 +484,24 @@ build_flags = -DUSE_TINYUSB
463
484
[env:adafruit_metro_m4_airliftlite]
464
485
extends = common:atsamd
465
486
board = adafruit_metro_m4_airliftlite
466
- build_flags = -DUSE_TINYUSB =1
487
+ build_flags = -DUSE_TINYUSB
467
488
-DADAFRUIT_METRO_M4_AIRLIFT_LITE
489
+ ; extra_scripts = pre:rename_usb_config.py
468
490
upload_port = /dev/cu.usbmodem1201
469
491
470
492
471
493
[env:raspberypi_picow]
472
494
extends = common:rp2040
473
495
496
+ [env:raspberypi_picow_debug_port_only]
497
+ extends = common:rp2040
498
+ build_flags =
499
+ -DUSE_TINYUSB
500
+ -DDEBUG_RP2040_PORT =Serial
501
+
474
502
[env:raspberypi_picow_debug]
475
503
extends = common:rp2040
476
- platform = https://github.com/maxgerhardt/platform-raspberrypi.git
504
+ ; platform = https://github.com/maxgerhardt/platform-raspberrypi.git
477
505
; platform_packages =
478
506
; framework-arduinopico @ symlink:///Users/tyeth/Projects/arduino-pico
479
507
; framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#master
@@ -494,7 +522,7 @@ build_flags =
494
522
-DDEBUG_RP2040_CORE
495
523
-DDEBUG_RP2040_WIFI
496
524
-DNDEBUG
497
- -DLWIP_DEBUG
525
+ -DLWIP_DEBUG =1
498
526
-DDEBUG_RP2040_PORT =Serial1
499
527
-DDEBUG_RP2040_UART_1
500
528
-DDEBUG_RP2040_UART =1
@@ -511,3 +539,63 @@ build_flags =
511
539
; ; No USB stack
512
540
; build_flags = -DPIO_FRAMEWORK_ARDUINO_NO_USB
513
541
; -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