Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: serie.h
- Revision:
- 11:0b85a680ad28
- Parent:
- 10:6f9340af7926
--- a/serie.h Tue Sep 14 13:45:11 2021 +0000
+++ b/serie.h Mon Mar 28 17:50:41 2022 +0000
@@ -5,11 +5,21 @@
{ // ici on decode un exemple simple
// un 'a' met posx = 10 un 'b' met posx = 20
arecv = serie.getc();
- if (arecv == 'a') // c'est un 'a' qui arrive
- { posx = 10 ; // la position x changera
+ if (arecv == 'a')
+ {
+ ext=1;
}
- if (arecv == 'b')// c'est un 'b' qui arrive
- { posx = 20 ;
- }
+ if (arecv == 'b')
+ {
+ ext=2;
+ }
+ if (arecv == 'c')
+ {
+ ext=3;
+ }
+ if (arecv == 'd')
+ {
+ ext=0;
+ }
return;
}
\ No newline at end of file