Add endstops, light_sensor, test, many fixes

- Added endstop and light_sensor module
 - Improved configuration by splitting wiring configs to boards.h
 - Added a unit test for argument parsing
 - Fixed many smaller bugs
This commit is contained in:
Filip Ayazi 2021-05-25 01:40:09 +01:00
parent 8f66bb7da9
commit 35d969aadd
16 changed files with 875 additions and 64 deletions

View file

@ -8,8 +8,35 @@
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:nanoatmega328new]
[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
framework = arduino
monitor_speed = 115200
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