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.
Dependencies: BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG mbed
Revision 1:f034e131e408, committed 2018-06-12
- Comitter:
- Tsarvadim
- Date:
- Tue Jun 12 15:00:09 2018 +0000
- Parent:
- 0:19846e16566e
- Child:
- 2:3bb535973904
- Commit message:
- Projet acc?l?rom?tre
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Jun 12 14:28:04 2018 +0000
+++ b/main.cpp Tue Jun 12 15:00:09 2018 +0000
@@ -49,10 +49,14 @@
uint16_t x, y;
uint8_t status;
+ lcd.SetBackColor(0);
//Initialisation
+
+ lcd.SetTextColor(LCD_COLOR_WHITE);
lcd.DisplayStringAt(0, LINE(1), (uint8_t *)"Bienvenue sur AngleTarget", CENTER_MODE);
- wait(0.3);
+ wait(2);
+ lcd.SetTextColor(LCD_COLOR_BLACK);
status = ts.Init(lcd.GetXSize(), lcd.GetYSize());
if (status != TS_OK) {
lcd.Clear(LCD_COLOR_RED);
@@ -62,6 +66,7 @@
lcd.Clear(LCD_COLOR_WHITE);
}
+ lcd.SetBackColor(LCD_COLOR_WHITE);
//Affichage du menu
lcd.SetFont(&Font16);
lcd.DisplayStringAt(0, LINE(2), (uint8_t *)"Veuillez choisir une option", CENTER_MODE);
@@ -69,10 +74,20 @@
//"Bouton" jeu
lcd.SetTextColor(LCD_COLOR_BLACK);
lcd.FillRect(250, 150, 150, 100);
+ lcd.SetBackColor(LCD_COLOR_BLACK);
+ lcd.SetTextColor(LCD_COLOR_WHITE);
+ lcd.SetFont(&Font16);
+ lcd.DisplayStringAt(95,190, (uint8_t *)"Jeu", CENTER_MODE);
//"Bouton" informations
lcd.SetTextColor(LCD_COLOR_RED);
- lcd.FillRect(50,150,150,100);
+ lcd.FillRect(40,150,150,100);
+ lcd.SetBackColor(LCD_COLOR_RED);
+ lcd.SetTextColor(LCD_COLOR_WHITE);
+ lcd.SetFont(&Font16);
+ lcd.DisplayStringAt(85,190, (uint8_t *)"Info", LEFT_MODE);
+
+ lcd.SetBackColor(LCD_COLOR_WHITE);
while(1)
{
//Recuperation des informations tactiles
@@ -130,7 +145,10 @@
//Bouton jeu
lcd.SetTextColor(LCD_COLOR_BLACK);
lcd.FillRect(165, 150, 150, 100);
-
+ lcd.SetBackColor(LCD_COLOR_BLACK);
+ lcd.SetTextColor(LCD_COLOR_WHITE);
+ lcd.SetFont(&Font16);
+ lcd.DisplayStringAt(0,190, (uint8_t *)"JEU", CENTER_MODE);
do
{
ts.GetState(&TS_State);