Created
February 5, 2016 16:09
-
-
Save samclane/05e9b395bf6aff059038 to your computer and use it in GitHub Desktop.
backup copy of aliases that control led functionality by sending hex bytes as commands to arduino through serial port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# LED Control Aliases | |
alias led_green="echo -e -n '\x10' > /dev/ttyACM1" | |
alias led_dim="echo -e -n '\x20' > /dev/ttyACM1" | |
alias led_blue="echo -e -n '\x50' > /dev/ttyACM1" | |
alias led_off="echo -e -n '\x60' > /dev/ttyACM1" | |
alias led_red="echo -e -n '\x90' > /dev/ttyACM1" | |
alias led_bright="echo -e -n '\xA0' > /dev/ttyACM1" | |
alias led_smooth="echo -e -n '\xC8' > /dev/ttyACM1" | |
alias led_white="echo -e -n '\xD0' > /dev/ttyACM1" | |
alias led_fade="echo -e -n '\xD1' > /dev/ttyACM1" | |
alias led_on="echo -e -n '\xE0' > /dev/ttyACM1" | |
alias led_strobe="echo -e -n '\xE1' > /dev/ttyACM1" | |
alias led_flash="echo -e -n '\xF0' > /dev/ttyACM1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment