Page 1 of 1

Go library for Revolution Pi

Posted: 02 Feb 2018, 00:56
by mezz
Hi world,

I have ported the piControl C interface to the Go language:

https://github.com/mezzato/revpi

All the details are on the page.

Since C and Python seemed to be the languages of choice (and this makes perfect sense in many cases) but I prefer Go to write extensive code for the Raspberry Pi I decided to port the system calls of the piControl to Go. It turned out to be a straightforward task.

If you like Go approach to concurrency and you need modern Web libraries you may find this project useful.
The project can be compiled cross-platform and besides the Go code there are CMake files to cross-compile the piControl and piTest C code as well.

Enrico

Re: Go library for Revolution Pi

Posted: 03 Feb 2018, 06:45
by volker
many thumbs up for sharing this with us! Great Job, well done!

Re: Go library for Revolution Pi

Posted: 20 Apr 2020, 12:01
by martijngerrits
This is great!!!!! :D Exactly what I was looking for. I hope this still works.

I will definitely look into this once I feel confident that the BalenaOS images will work on the RevPi Connect+