Skip to content

Commit

Permalink
update echo-usart example o use spawn instead of await - Related #4
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnyCaroline committed Jul 9, 2018
1 parent c378bfb commit b9b0a36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ceu-maker/examples/both/echo-usart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ After checking that ```v==high``` the Arduino sends via serial port the string d
#include "usart.ceu"
#include "string.ceu"

await Usart(3);
spawn Usart(3);
```
It starts by including ```usart.ceu``` and ```string.ceu``` that, just like in Arduino code, wraps the functionalities for serial communication and string manipulation. The ```await Usart(3)``` set up the serial communication for port 3. To check which port your Arduino is connected, check Windows Device Manager.
It starts by including ```usart.ceu``` and ```string.ceu``` that, just like in Arduino code, wraps the functionalities for serial communication and string manipulation. The ```spawn Usart(3)``` set up the serial communication for port 3. To check which port your Arduino is connected, check Windows Device Manager.
```
loop do
Expand Down
2 changes: 1 addition & 1 deletion ceu-maker/examples/both/echo-usart/main.ceu
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

emit WINDOW_SET_TITLE("Echo app"); // sets the window title

await Usart(3);
spawn Usart(3);

loop do
var[5] byte buffer;
Expand Down

0 comments on commit b9b0a36

Please sign in to comment.