cat
command to receive the data and echo
for sending data.
stty -F /dev/ttyACM0 -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echoctl -echoke 115200 cat /dev/ttyACM0
If you face any problem in this stage inform lab instructors.
echo led1 >/dev/ttyACM0
After this command, green led on your board should turn on. If you send the code below,
echo led0 >/dev/ttyACM0
green led should be off.
main.c
file to find out how this bridge was built.
Modify main.c in a way that
name
is given to board, make it print your name.
ledb
which blinks led with a frequency of 20 Hz. In order to do this, you should decrease the waiting time of the receiver function to 10 ms.