a

Dependencies:   BSP_DISCO_F429ZI LCD_DISCO_F429ZI TS_DISCO_F429ZI mbed

Files at this revision

API Documentation at this revision

Comitter:
Dom952
Date:
Sat Apr 23 17:41:29 2016 +0000
Commit message:
a

Changed in this revision

BSP_DISCO_F429ZI.lib Show annotated file Show diff for this revision Revisions of this file
LCD_DISCO_F429ZI.lib Show annotated file Show diff for this revision Revisions of this file
TS_DISCO_F429ZI.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
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BSP_DISCO_F429ZI.lib	Sat Apr 23 17:41:29 2016 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/ST/code/BSP_DISCO_F429ZI/#de9280158372
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LCD_DISCO_F429ZI.lib	Sat Apr 23 17:41:29 2016 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/ST/code/LCD_DISCO_F429ZI/#dc55a068bc1a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TS_DISCO_F429ZI.lib	Sat Apr 23 17:41:29 2016 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/ST/code/TS_DISCO_F429ZI/#4f8b6df8e235
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Apr 23 17:41:29 2016 +0000
@@ -0,0 +1,37 @@
+#include "mbed.h"
+#include "LCD_DISCO_F429ZI.h"
+#include "TS_DISCO_F429ZI.h"
+
+LCD_DISCO_F429ZI lcd;
+TS_DISCO_F429ZI ts;
+
+int main()
+{
+    BSP_LCD_SetFont(&Font24);
+    TS_StateTypeDef TS_State;
+    uint16_t x, y;
+    lcd.Clear(LCD_COLOR_BLACK);
+
+while(1)
+{
+    ts.GetState(&TS_State);
+    x = TS_State.X;
+    y = TS_State.Y;
+    for ( int i = 0; i < 4; i++ )
+    {
+        lcd.SetTextColor(LCD_COLOR_GREEN);
+        lcd.DrawRect(0,80*i,80,80);
+        if ( (TS_State.TouchDetected) && ( x > 0 ) && ( x <= 80 ) && ( y >= 80*i ) && ( y < 80*( i+1 ) ) )
+        lcd.SetTextColor(LCD_COLOR_YELLOW);
+        else lcd.SetTextColor(LCD_COLOR_BLUE);
+        lcd.FillRect(1,(80*i+1),78,78);
+    }
+    lcd.SetBackColor(LCD_COLOR_RED);
+    lcd.SetTextColor(LCD_COLOR_WHITE);
+    lcd.DisplayStringAt(0,0, (uint8_t *) "0", LEFT_MODE);
+    lcd.DisplayStringAt(0,80, (uint8_t *) "1", LEFT_MODE);
+    lcd.DisplayStringAt(0,160, (uint8_t *) "2", LEFT_MODE);
+    lcd.DisplayStringAt(0,240, (uint8_t *) "3", LEFT_MODE);
+    wait(0.1);
+}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Apr 23 17:41:29 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/c0f6e94411f5
\ No newline at end of file