First

Dependencies:   UniGraphic mbed

Revision:
6:459d1eb2cc23
Parent:
2:a88824178246
--- a/LCD1.cpp	Thu Jan 14 22:03:54 2016 +0000
+++ b/LCD1.cpp	Thu Jan 14 22:52:20 2016 +0000
@@ -7,13 +7,12 @@
 #include "Arial24x23.h"
 #include "pavement_48x34.h"
 
-Serial pc(USBTX, USBRX);
+//Serial pc(USBTX, USBRX);
 
 PinName dataBus[]= {p30, p29, p28, p27, p26, p25, p24, p23};
 ILI932x myLCD(BUS_8, dataBus, p15, p17, p16, p14, p20, "myLCD", 240, 320); // Bus 8 bit, bus pin array, CS, RST, DC, WR, RD, name, xpixels, ypixels
 
 char orient=3;
-int x,y;
 
 int pos1=160;
 int pos2=120;
@@ -24,12 +23,16 @@
 {
     myLCD.set_orientation(orient);
     myLCD.background(Black); 
-    myLCD.cls();    
+    myLCD.cls();     
 }
 
 void LCD1(int x,int y)
 {
-    myLCD.cls();
-    myLCD.circle(160,120,12,White);
-    myLCD.fillcircle(x,y,6,Red);  
+    myLCD.fillcircle(x,y,6,Black);  
+}
+
+void LCD2(int x,int y)
+{
+    myLCD.fillcircle(x,y,6,Red);
+    myLCD.circle(160,120,12,White);  
 }
\ No newline at end of file