pyrocommander / Mbed 2 deprecated pyrocommander

Dependencies:   Fonts LCD_DISCO_F746NG TS_DISCO_F746NG debug mbed

Files at this revision

API Documentation at this revision

Comitter:
rondekoster
Date:
Mon Mar 14 19:12:12 2016 +0000
Parent:
3:10e5b191acc1
Commit message:
pyrocommander

Changed in this revision

BSP_DISCO_F746NG.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/BSP_DISCO_F746NG.lib	Sun Mar 13 09:35:51 2016 +0000
+++ b/BSP_DISCO_F746NG.lib	Mon Mar 14 19:12:12 2016 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/rondekoster/code/pyrocommander/#974b0eeabba0
+https://developer.mbed.org/users/rondekoster/code/pyrocommander/#c4d1bbd035e5
--- a/main.cpp	Sun Mar 13 09:35:51 2016 +0000
+++ b/main.cpp	Mon Mar 14 19:12:12 2016 +0000
@@ -5,6 +5,7 @@
 #include "stm32746g_discovery_lcd.h"
 #include "TS_DISCO_F746NG.h"
 #include "fonts.h"
+//#include "Digital11x17.h" 
 
 #define FramesPerSecond 25
 
@@ -26,6 +27,7 @@
 
 int main()
 {
+//    lcd.Font (digital11x17);
     led1 = 1;
     lcd.Clear(LCD_COLOR_DARKBLUE);
     lcd.SetBackColor(LCD_COLOR_DARKBLUE);
@@ -34,7 +36,7 @@
     lcd.DisplayStringAt(0, LINE(1), (uint8_t *)"www.Pyrocommander.com", CENTER_MODE);
     lcd.SetTextColor(LCD_COLOR_WHITE);
     lcd.DrawRect(1, 1, 478, 270);
-    lcd.SetBackColor(LCD_COLOR_DARKRED);
+    lcd.SetBackColor(LCD_COLOR_RED);
     lcd.SetTextColor(LCD_COLOR_YELLOW);
     lcd.SetFont(&Font8);
     lcd.DisplayStringAt(20, LINE(30), (uint8_t *)"Rdk Systems", RIGHT_MODE);
@@ -57,10 +59,11 @@
         m = (int) ((x % FRAMES_IN_HOUR) / FRAMES_IN_MINUTE);
         s = (int) (((x % FRAMES_IN_HOUR) % FRAMES_IN_MINUTE) / FramesPerSecond);
         f = (((x % FRAMES_IN_HOUR) % FRAMES_IN_MINUTE) % FramesPerSecond);
+
         sprintf(textBuf,"%02d:%02d:%02d:%02d", h,m,s,f);
         sprintf(getal,"%010d", x);
 
-        lcd.SetBackColor(LCD_COLOR_DARKRED);
+        lcd.SetBackColor(LCD_COLOR_DARKGREEN);
         lcd.SetTextColor(LCD_COLOR_YELLOW);
         lcd.SetFont(&Font24);
         lcd.DisplayStringAt(270, LINE(5), (uint8_t *)textBuf, LEFT_MODE);
@@ -68,6 +71,7 @@
         lcd.SetTextColor(LCD_COLOR_YELLOW);
         lcd.SetFont(&Font16);
         lcd.DisplayStringAt(270, LINE(12), (uint8_t *) getal, LEFT_MODE);
+
         led1 = !led1;
     }
 }