This is a simple program using the Mikroelectronika TFT resistive touchscreen to create a sketchpad application.

Dependencies:   SPI_TFT_ILI9341 TFT_fonts mbed

Fork of TFT_Mikroelectronika_IL9341 by Oxford CWM Team

Code to make a simple sketchpad using the touchscreen from Mikroelectronika

The Mikroelectronika touch screen is a good sized display we are using for the first time in 2016. It's got a touch panel layer and can be addressed by either SPI or parallel buses.

http://www.mikroe.com/add-on-boards/display/tft-proto/

/media/uploads/cstevens/sketchpad.jpg

Pin connections for use with an mbed

Referring to the pin names on the screen pcb

Pins:

Screenmbed nameKL25Z example
sdimosiPTD2
sdomisoPTD3
rssckPTD1
RDGNDGND
IM0GNDGND
IM13.3V3V3
IM23.3V3V3
IM33.3V3V3
CSdigitalout pinPTD5
RSTdigitaloutpinPTD0
WRdigitaloutpinPTA13

You will need 2 wires to drive the backlight on leda and ledk (anode(connect to +V via a current limiting resistor) and cathode) Link +3.3V to IM1, IM2, IM3 to setup spi communication mode link

Files at this revision

API Documentation at this revision

Comitter:
pegcjs
Date:
Tue Oct 21 10:00:17 2014 +0000
Parent:
1:e0479f60cd48
Child:
3:676adf84c914
Commit message:
updates in language

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Oct 20 11:05:02 2014 +0000
+++ b/main.cpp	Tue Oct 21 10:00:17 2014 +0000
@@ -31,7 +31,7 @@
 {
     while(1){
     int i;
-    LCD_LED = 1;            // backlite on
+    LCD_LED = 1;            // backlight on
    
     TFT.claim(stdout);        // send stdout to the TFT display
     TFT.set_orientation(1);