19 lines
643 B
Bash
Executable File
19 lines
643 B
Bash
Executable File
#!/bin/bash
|
|
source common.sh
|
|
|
|
echo -e "\r\nT\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B" > $hcs
|
|
|
|
echo -e "C\x00\x01\x00\n\n\n" > /dev/ttyACM0
|
|
echo -e "C\x01\x00\x80\n\n\n" > /dev/ttyACM0
|
|
echo -e "C\x02\x04\x00\n\n\n" > /dev/ttyACM0
|
|
echo -e "C\x03\x08\x00\n\n\n" > /dev/ttyACM0
|
|
echo -e "C\x04\x10\x00\n\n\n" > /dev/ttyACM0
|
|
echo -e "C\x05\x20\x00\n\n\n" > /dev/ttyACM0
|
|
echo -e "C\x06\x40\x00\n\n\n" > /dev/ttyACM0
|
|
echo -e "C\x07\x80\x00\n\n\n" > /dev/ttyACM0
|
|
echo -e "C\x08\x00\x01\n\n\n" > /dev/ttyACM0
|
|
echo -e "C\x09\x00\x02\n\n\n" > /dev/ttyACM0
|
|
echo -e "C\x0a\x00\x04\n\n\n" > /dev/ttyACM0
|
|
echo -e "C\x0b\x00\x08\n\n\n" > /dev/ttyACM0
|
|
|