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: draw.h
- Revision:
- 2:1af4d847d589
- Parent:
- 1:95a7e179a181
- Child:
- 3:25e9386596c1
diff -r 95a7e179a181 -r 1af4d847d589 draw.h
--- a/draw.h Tue May 10 11:50:12 2016 +0000
+++ b/draw.h Thu May 12 12:11:23 2016 +0000
@@ -7,15 +7,19 @@
void draw() // exemple d'une chose a faire ( pas de delai dans cette boucle)
{
- pix(atiti+4,1,0,0,5); // pixel bleu en x = 5+4 et y = 1
+ pix(atiti+4,0,0,0,5); // pixel bleu en x = 5+4 et y = 1
ptnum(15,15,atiti); // ecrit 05 en 15 15 ( centre
}
- // voici les 2 fonctions utilisables
- // pix ( x , y , r , v , b ) dessine un puxel de couleur en xy
- // x et y position du pixel a dessiner ( 0 à 31 )
+ // voici les 3 fonctions utilisables
+
+ // pix ( x , y , r , v , b ) dessine un pixel de couleur en xy
+ // x et y position du pixel à dessiner ( 0 à 31 )
// r v b quantité de 0 à 7 du r v b .. 7 c'est lumineux
- // ptnum(x, y , nombre ) ecri un nombre en position x y
+ // ptnum(x, y , nombre ) écrit un nombre a la position x y
// x et y position ou ecrire ( 0 a 31)
- // nombre ou variable .. un entier compris entre 0 et 99
\ No newline at end of file
+ // nombre ou variable .. un entier compris entre 0 et 99
+
+ // accx accy int de -15 à +15 acceleration xy
+ // à tester pix(15+accx,15+accy,0,0,5); ( il faut l'extension
\ No newline at end of file