platformio / platform-atmelsam

Atmel SAM: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelsam
Apache License 2.0
78 stars 105 forks source link

Please add support for tinyscreen+ #161

Open DevL0rd opened 3 years ago

DevL0rd commented 3 years ago

I am using this as my platfomio.ini

[env:tinyscreen+]
platform = atmelsam
board = zeroUSB
framework = arduino
; change microcontroller
board_build.mcu = samd21g18a
lib_deps = 
    tinycircuits/TinyScreen@^1.1.0
    tinycircuits/Wireling@^0.1.1

I get the issue where the variable &SPI1 is not defined at line 604 of TinyScreen.cpp. If I remove the line however code compiles and uploads, and it is running according to the serial monitor output, however the screen does not function. I even got the 9-axis sensor working :D

I am unsure how to properly add support for this. if there is any other information I can provide to help, let me know. The libraries are all here in platform.io from tinycircuits but the board support does not exist, however it does for the original TinyDuino.

I am using this board as a way to learn some lowerlevel c programming. But the arduino ide is horrible and would love for this to work here.