Hi Everyone,

With the release of GoBot 1.2 I thought I would try and put together a
"metal bot" for the PiGlow on a Raspberry Pi 1. 

The PiGlow is based around a SN3218 IC that drives the 18 leds on the
board. The SN3218 communication with the Pi is via 12c.
GoBot 1.2 rewrote the i2c subsystem, but I can't get it to drive the
PiGlow at all.

My stab at getting this to work is here:
https://play.golang.org/p/_DDEiwZqt1

The code is in the style of a "metal bot" as I want to reuse this code
as part of a small project to replace some python code.
The code should turn on LED zero. But when the code runs nothing
happens. There's no terminal output indicating a non-nil error and
there are lights on the PiGlow.

The code is based on the existing PiGlow library, by Toon
Schoenmakers[1] - which does not use GoBots i2c subsystem. That
libraries test code runs fine on the board, so the PiGlow itself is
working ok. My initialisation code is based on Toon's.  

Can a friendly Gopher who has more experience of GoBot and a similar
hardware set-up, spot what I might be doing wrong?

Thanks

Owen

[1]https://github.com/schoentoon/piglow

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to