cylon-beaglebone icon indicating copy to clipboard operation
cylon-beaglebone copied to clipboard

On-board LEDs USR0-3

Open lorenwest opened this issue 10 years ago • 6 comments

Is there a way I can control the on-board LEDs using cylon-beaglebone?

lorenwest avatar Dec 07 '14 19:12 lorenwest

Also, I'm curious as to why the low level interactions don't use bonescript. Is there something fundamental about bonescript that isn't stable?

lorenwest avatar Dec 07 '14 19:12 lorenwest

Hi @lorenwest ,

I was not able to control the board LEDs when I wrote the adaptor, if you point me to an example I can probably hook something up in the cylon-beaglebone adaptor to make it work.

Regarding the bonescript, that is because we use the same code to write to all GPIO in different linux boards (like raspberry-pi), so basically we are just using the linux GPIO subsystem (which I think is what bonescript uses underneath, but not sure, don't quote me on that one).

Anyways we can probably add some beaglebone specific features to the adaptor, like the LEDs you mentioned, if we have some working examples as reference.

edgarsilva avatar Dec 10 '14 22:12 edgarsilva

@edgarsilva we can control the built-in LED in Gobot https://github.com/hybridgroup/gobot/blob/dev/platforms/beaglebone/beaglebone_adaptor.go#L226-L234

deadprogram avatar Dec 10 '14 22:12 deadprogram

mmm I see, I will look into it and add it to cylon @deadprogram.

edgarsilva avatar Dec 10 '14 23:12 edgarsilva

Awesome, thanks!

deadprogram avatar Dec 10 '14 23:12 deadprogram

Thanks all for looking in to this. Soon I can turn those LEDs into a cylon eye, and the world will be MINE!

lorenwest avatar Dec 11 '14 00:12 lorenwest