Nim on raspberry PI

2021-04-18 Thread boia01
And, just for what it's worth, if you didn't know where to start, you could just have used `c2nim` on `wiringPi.h` (now installed by default on Raspian) and you would have gotten this: which worked great for

Nim on raspberry PI

2021-04-18 Thread archnim
Thank you very much for your advices.

Nim on raspberry PI

2021-04-18 Thread jackhftang
I did something like this nim proc hardReset*(pin: int) = writeFile("/sys/class/gpio/export", $pin) writeFile(fmt"/sys/class/gpio/gpio{pin}/direction", "out") writeFile(fmt"/sys/class/gpio/gpio{pin}/value", "0") sleep 100 writeFile(fmt"/s

Nim on raspberry PI

2021-04-18 Thread ThomasTJdev
Hi @archnim I use my package [wiringPiNim](https://github.com/ThomasTJdev/nim_wiringPiNim). There are some small examples in the README. I know there are other RPi packages, but I can't find them on . import wiringPiNim if piSetup() >= 0: piPinMo

Nim on raspberry PI

2021-04-17 Thread archnim
Hello world. I'm happy to notice that Nim is one of the official packages on Raspberry pi OS. Please do you know any tuto on how to handle RP's GPIO pins in Nim ?

Nim on Raspberry Pi Pico

2021-04-14 Thread btol
That's great! Thanks for the template.

Nim on Raspberry Pi Pico

2021-04-13 Thread ElegantBeef
Hey, I have the solution, checkout [picotemplate](https://github.com/beef331/picotemplate) my easy to use nim project template, and [picostdlib](https://github.com/beef331/picostdlib) my Nim wrapper for the pico-sdk!

Nim on Raspberry Pi Pico

2021-04-13 Thread btol
I'm looking for some help getting Nim running on the Raspberry Pi Pico using the C/C++ SDK [1] The SDK uses CMake, which I don't have a lot of familiarity with, and I'm looking for some pointers on how to get a simple blinky-style Nim program running on the Pico, wrapping some of the the Pico C