Created
June 12, 2018 00:53
-
-
Save nicholasareed/d2e0903d094a3a55e8d9ec9cf32724c5 to your computer and use it in GitHub Desktop.
2-channel USB Relay commands
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
1: No LED (off, default) | |
echo -n -e '\xA0\x01\x00\xA1' > /dev/ttyUSB0 | |
1: LED (on) | |
echo -n -e '\xA0\x01\x01\xA2' > /dev/ttyUSB0 | |
2: No LED (off, default) | |
echo -n -e '\xA0\x02\x00\xA2' > /dev/ttyUSB0 | |
2: LED (on) | |
echo -n -e '\xA0\x02\x01\xA3' > /dev/ttyUSB0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment