Skip to content

R-Pi On-board LED CLI #42

@rjcorwin

Description

@rjcorwin

It turns out we can control one of the LEDs on the R-Pi board. Wouldn't it be cool to have a CLI with an API like the blink1 cli?

# turn off the default behavior of the LED
echo none >/sys/class/leds/led0/trigger
# Turn it on
echo 1 >/sys/class/leds/led0/brightness
# Turn it off
echo 0 >/sys/class/leds/led0/brightness

from the third comment here ->
https://www.raspberrypi.org/forums/viewtopic.php?f=31&t=12530

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions