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:
- 1:95a7e179a181
- Parent:
- 0:3cb0bc1eb7fa
- Child:
- 2:1af4d847d589
--- a/draw.h Mon May 09 12:49:08 2016 +0000
+++ b/draw.h Tue May 10 11:50:12 2016 +0000
@@ -1,15 +1,21 @@
+// lieu de vos variables
+// NOM commençant par un 'a' comme atiti
+int atiti = 5;
-// ici zone declaration variables
-// le nom des variables doit commencer par un a atiti
-int atiti = 5;
+// lieu de vos fonctions ..appelées plus bas
-void draw() // a faire en TR
- {
- pix(atiti,1,0,0,5);
- // a faire
- for ( int tt = 0 ; tt < 32 ; tt++)
- {
- pix ( atiti, tt ; 0,5,0 );
- }
- }
\ No newline at end of file
+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
+ 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 )
+ // 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
+ // 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