Github GitHub - beef331/picotemplate: A Nim raspberry pi pico project template
source link: https://github.com/beef331/picotemplate
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Raspberry Pi Pico template project
Dependencies:
All Nim dependencies can be fetched(after nimble is installed, I suggest using choosenim for installing Nim.) with, nimble install --depsOnly
.
Since we're using the C project all of the dependencies apply from the pico-sdk, so fetch all those aswell.
How To Use
Clone this repo, copy your nimbase.h
into the csource folder(If using choosenim can be found at ~/.choosenim/toolchains/$yourNimVersion/lib/nimbase.h
).
Navigate to the build folder and run cmake ..
(This will take some time since fetching pico-sdk through git).
Then run nimble make
and copy csource/build/pico_nim.uf2
to the pico when it's in bootsel mode.
If this errors try resaving the csource/CMakeLists
file.
Finally with that image running you can nimble listen
which should listen to the pico on the usb uart, printing the message in the pico_nim.nim
file.
Now you can write any code you want using the picostdlib
.
Licenses
The Cmake files are licensed under BSD 3-Clause
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK