Skip to content

Instantly share code, notes, and snippets.

@avipars
Last active September 9, 2024 21:09
Show Gist options
  • Save avipars/3fad71e5182188bea6ef6ed0d499713d to your computer and use it in GitHub Desktop.
Save avipars/3fad71e5182188bea6ef6ed0d499713d to your computer and use it in GitHub Desktop.
Pi Zero W LED Control
#!/bin/bash
# turn on LED
echo 1 | sudo tee /sys/class/leds/ACT/brightness
# turn off LED
echo 0 | sudo tee /sys/class/leds/ACT/brightness
# heatbeat blink
echo heartbeat | sudo tee /sys/class/leds/ACT/trigger
# back to normal
echo mmc0 | sudo tee /sys/class/leds/ACT/trigger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment