Hacker News new | ask | show | jobs
by kzisme 3249 days ago
What language did you end up using to access the sensors?

I've been ~hoping~ to use Go to access the GPIO pins, but haven't had much success - any suggestions?

2 comments

I've used https://github.com/stianeikeland/go-rpio to control my garage doors and this library https://github.com/kidoman/embd has some more advanced features which I've used for a thermostat solution.
Thanks! I'll take a look! I have an AstroHat on my Pi and I think it should be straight forward-ish using one of these.
+1 for embd. I've used it with great success.
Check out https://periph.io/, which makes GPIO access easy :)
Thanks for the suggestion! Any affiliation :) ?