TinyCircuits Forum
General Category => General Discussion => Topic started by: DevL0rd on June 05, 2021, 04:14:22 PM
-
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.
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 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 would like to learn to do this myself aswell, once I learn I can add the rest of the boards as I have all of them in my collection.
-
Hi,
I was able to get the TinyScreen+ to work with PlatformIO by changing 'SPI1' to 'SPI' in the Tinyscreen.cpp source file @ line 487.
Also, I added 'SPI' to the platform.ini file under 'lib_deps'. See line 18 of the attached screenshot.
Let me know how this works for you!
-
It looks like this is at least nearly a solved problem. Could you post more specifics of what was done and what is and isn't working? I would like to use tinyscreen+ and tinyzero with PlatformIO.
Thanks
-
It looks like this is at least nearly a solved problem. Could you post more specifics of what was done and what is and isn't working? I would like to use tinyscreen+ and tinyzero with PlatformIO.
Thanks
This was a year ago. Things may have changed since then.
Have you tried using a TinyScreen+ or TinyZero with PlatformIO? What errors are you getting?