send a number through serial USB >> blink it in binary using the default LED

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Committer:
Ladon
Date:
Sat Nov 11 15:16:46 2017 +0000
Revision:
52:fb9d943f4042
Parent:
51:38bcf5ee4cb1
Child:
53:2da3dc1461af
sorry, added some more info, change one line of code;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Ladon 52:fb9d943f4042 1 What i did to make it work is :
Ladon 51:38bcf5ee4cb1 2
Ladon 52:fb9d943f4042 3 1) open usb in file manager
Ladon 52:fb9d943f4042 4 2) run in a terminal :
Ladon 52:fb9d943f4042 5 $ stty -F /dev/ttyACM0 cs8 9600 ignbrk -brkint -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts -igncr -icrnl -onocr min 1 && cat /dev/ttyACM0
Ladon 52:fb9d943f4042 6 3) run in another terminal :
Ladon 52:fb9d943f4042 7 $ cat > /dev/ttyACM0
Ladon 51:38bcf5ee4cb1 8
Ladon 52:fb9d943f4042 9 info :
Ladon 52:fb9d943f4042 10 *) to quit, hit <Ctrl>+<C>
Ladon 52:fb9d943f4042 11 *) /dev/ttyACM0 is an example