Blinky

HomePage | RecentChanges | Preferences

Difference (from prior author revision) (major diff, minor diff)

Changed: 1,11c1

Blinky




Blinking the green led on a Raspberry Pi 2 Model B with Elixir

http://www.zohaib.me/blinking-led-using-elixir-embedded-image-for-raspberry-pi/

On a Raspberry Pi 2 Model B purchased from Adafruit (with their pre-loaded card) I found that the green led is controlled with /sys/class/leds/ACT/trigger and /brightness. The ACT directory is a symlink, and the files are only writeable by root.

The 'Blinky' code works if you use /ACT/ instead of /led0/ and chmod 666 the two files it's trying to write to.

https://gist.github.com/taktran/1b691c08216dd30b70bf



HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited December 22, 2019 5:45 am by 78-93-98-198.dsl.wavetel.us (diff)
Search: