BAse sous ,projet 3 - soufflerue

Dependencies:   FT800_2

Dependents:   SimonBaseProgrammeSP3-STM32-F411

Files at this revision

API Documentation at this revision

Comitter:
schnf30
Date:
Tue Feb 23 10:15:34 2021 +0000
Parent:
0:660735eb3958
Commit message:
Mise a jour

Changed in this revision

affichage.cpp Show annotated file Show diff for this revision Revisions of this file
affichage.h Show annotated file Show diff for this revision Revisions of this file
diff -r 660735eb3958 -r 7a1dd20a34b6 affichage.cpp
--- a/affichage.cpp	Tue Feb 23 09:44:34 2021 +0000
+++ b/affichage.cpp	Tue Feb 23 10:15:34 2021 +0000
@@ -54,7 +54,12 @@
     TFT.WaitCmdfifo_empty();
 }
 
-
+ft_void_t drawline( ft_int32_t x0, ft_int32_t y0,ft_int32_t x1,ft_int32_t y1)
+{
+    TFT.DL(BEGIN(LINES));
+    TFT.DL(VERTEX2F(x0*16,y0*16));
+    TFT.DL(VERTEX2F(x1*16,y1*16));
+}
 
 /***********************************************************************************************************************/
 /* Construct the screen and downloasd it to the TFT */
@@ -96,6 +101,7 @@
 
     TFT.Text(28, 190, 28, 0, "Consigne flux dair");      
     TFT.Number(230, 190, 28, 0, ConsigneVitFluxAir);   
+    drawline(28,191,470,191);
 
     TFT.DL(DISPLAY());
     TFT.Swap();
diff -r 660735eb3958 -r 7a1dd20a34b6 affichage.h
--- a/affichage.h	Tue Feb 23 09:44:34 2021 +0000
+++ b/affichage.h	Tue Feb 23 10:15:34 2021 +0000
@@ -2,6 +2,7 @@
 #define affichage_h
 #include "FT_Platform.h"
 ft_void_t luminosite( ft_int32_t lum);
+ft_void_t drawline( ft_int32_t x0, ft_int32_t y0,ft_int32_t x1,ft_int32_t y1);
 void InitScreen(void);
 void AfficheEcranSp3();
 void SetConsigneVitFluxAir(unsigned char variable);