Hello everyone!
I was given a PiGlow for Christmas, and my first project was to make a (crappy) clock out of it. One weird thing though. As I was testing out manually controlling each of the 18 LEDs, I found that they are controlled 'out of order like such:
[…6…]
[…7…]
[…8…]
[…5…B.D…]
[…4…A…F…]
[…9…1…]
[…C…11…]
[…E…]
[…0…3…]
[…1…2…]
I Can’t figure out any reason why they’d be numbered this way and not say 0-5, 6-B,C-11. I finished my clock, but couldn’t figure out any pattern in this setup to make for good coding- so it’s a jumble of if/else’s for each LED. If they were sequential, I think I could figure out something clever in terms of controlling the LEDs…
On top of that, for the life of me I can’t find full documentation on smbus for python (not that I’d know how to, but I thought maybe I could change the mappings for the LEDs)
python docs smbus link: //docs.python.org/2/library/smbus … dead
i2c python docs link: http://wiki.erazor-zone.de/wiki:linux:python:smbus:doc...uhh
git kernal docs link: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/plain/Documentation/i2c/smbus-protocol … Do I read this correctly, there is no option to re-route the mapping from these commands?
Thanks for reading! This is the first thing I’ve ever programmed… so sorry if I’m missing something glaring here.