ILI9325 based TFT Arduino shield on KL25Z
Dependencies: TFTLCD_8bit mbed
This is for cheap touch screen TFT from Thiha Electronics (http://www.thiha-elec.com/shield.html).
Revision 7:8ba4518ba2f8, committed 2014-12-03
- Comitter:
- ThihaElectronics
- Date:
- Wed Dec 03 17:09:27 2014 +0000
- Parent:
- 6:f7d4a6a500f3
- Commit message:
- added line, circle, triangle drawing
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Dec 03 16:57:50 2014 +0000 +++ b/main.cpp Wed Dec 03 17:09:27 2014 +0000 @@ -9,6 +9,10 @@ //CS, RESET, RS, WR int main() { + int ii,height,width; + + height = lcd.GetHeight(); + width = lcd.GetWidth(); // initialize display - place it in standard portrait mode and set background to black and // foreground to white color. lcd.Initialize(); @@ -17,9 +21,8 @@ // print something on the screen lcd.Print( "Hello, World!", CENTER, 50); // align text to center horizontally and use starndard colors - - -/* + wait(2); + lcd.ClearScreen(); // for(ii=0;ii<240;ii++) @@ -32,13 +35,16 @@ // lcd.DrawLine(0, 0, 320, ii,COLOR_GREEN); ii = ii+10; } + wait(2); lcd.DrawCircle(height/4, width/4, 20, COLOR_GREEN); + wait(2); lcd.FillCircle(height/2, width/2, 50, COLOR_GREEN); + wait(2); lcd.FillTriangle(height/4, width/4,(height/4)+20, (width/4)+40,(height/4)-20, (width/4)+40, COLOR_RED); -*/ + while ( 1 ) { } } \ No newline at end of file