sangaboard-firmware/platformio.ini
2021-07-18 04:53:57 +01:00

50 lines
No EOL
1.1 KiB
INI

; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env]
monitor_speed = 115200
framework = arduino
test_build_project_src = true
lib_deps =
adafruit/Adafruit TSL2591 Library @ ^1.3.1
adafruit/Adafruit ADS1X15 @ ^2.1.1
adafruit/Adafruit BusIO @ ^1.7.3
SPI
lib_ldf_mode = chain
[env:nano]
platform = atmelavr
board = nanoatmega328new
build_flags = -D MCU_NANO -lc
[env:leonardo]
platform = atmelavr
board = leonardo
monitor_speed = 115200
build_flags = -D MCU_LEONARDO
[env:pico]
platform = raspberrypi
board = pico
build_flags = -D MCU_PICO
[env:bluepill]
platform = ststm32
board = bluepill_f103c8
upload_protocol = stlink
build_flags =
-D MCU_BLUEPILL
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D USBCON
-D USBD_VID=0x0483
-D USBD_PID=0x5740
-D USB_MANUFACTURER="Unknown"
-D USB_PRODUCT="\"BLUEPILL_F103C8\""
-D HAL_PCD_MODULE_ENABLED