Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nicholasareed/d2e0903d094a3a55e8d9ec9cf32724c5 to your computer and use it in GitHub Desktop.
Save nicholasareed/d2e0903d094a3a55e8d9ec9cf32724c5 to your computer and use it in GitHub Desktop.
2-channel USB Relay commands
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