Skip to content

Instantly share code, notes, and snippets.

View MortenStabenau's full-sized avatar

Morten MortenStabenau

View GitHub Profile
@ceccocats
ceccocats / usb_relay.sh
Created April 23, 2022 14:48
command DollaTek LCUS usb relay
#! /bin/bash
stty -F /dev/ttyUSB0 9600
while [[ $# -gt 0 ]]; do
case $1 in
--on)
echo "set on"
echo -e "\xA0\x01\x01\xA2" > /dev/ttyUSB0
shift
;;