BAse sous ,projet 3 - soufflerue
Dependents: SimonBaseProgrammeSP3-STM32-F411
Diff: affichage.cpp
- Revision:
- 1:7a1dd20a34b6
- Parent:
- 0:660735eb3958
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();