Skip to content

Instantly share code, notes, and snippets.

@xueliu
Created December 4, 2019 11:18
Show Gist options
  • Save xueliu/07ce3b17ac8029978766fadc465bc4a4 to your computer and use it in GitHub Desktop.
Save xueliu/07ce3b17ac8029978766fadc465bc4a4 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "21" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio21/direction
echo "1" > /sys/class/gpio/gpio21/value
sleep 5
echo "0" > /sys/class/gpio/gpio21/value
sleep 1
echo "0" > /sys/class/gpio/gpio21/value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment