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
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/
Pin connections for use with an mbed
Referring to the pin names on the screen pcb
Pins:
Screen | mbed name | KL25Z example |
---|---|---|
sdi | mosi | PTD2 |
sdo | miso | PTD3 |
rs | sck | PTD1 |
RD | GND | GND |
IM0 | GND | GND |
IM1 | 3.3V | 3V3 |
IM2 | 3.3V | 3V3 |
IM3 | 3.3V | 3V3 |
CS | digitalout pin | PTD5 |
RST | digitaloutpin | PTD0 |
WR | digitaloutpin | PTA13 |
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
History
working versin with a few problems - mostly that the touch identification routine is still not 10% accurATE at telling when an actual touch has occurred.. random noise on the adcs tends to make the occasional spot apear.; fix for thi would be to detec
2016-06-15, by cstevens [Wed, 15 Jun 2016 09:00:27 +0000] rev 7
working versin with a few problems - mostly that the touch identification routine is still not 10% accurATE at telling when an actual touch has occurred.. random noise on the adcs tends to make the occasional spot apear.; fix for thi would be to detec
touch nearly working;
2016-06-14, by cstevens [Tue, 14 Jun 2016 11:01:24 +0000] rev 6
touch nearly working;
working demo;
2016-06-09, by cstevens [Thu, 09 Jun 2016 16:19:10 +0000] rev 5
working demo;
Version setup to drive the Mikroelectronics TFT_PROTO screens from farnell; These need some work as they use 80mA of backlight current.; They do have the touch screen capability though.;
2016-06-09, by cstevens [Thu, 09 Jun 2016 10:33:48 +0000] rev 4
Version setup to drive the Mikroelectronics TFT_PROTO screens from farnell; These need some work as they use 80mA of backlight current.; They do have the touch screen capability though.;
Version published 11june2015
2015-06-11, by pegcjs [Thu, 11 Jun 2015 09:23:37 +0000] rev 3
Version published 11june2015
updates in language
2014-10-21, by pegcjs [Tue, 21 Oct 2014 10:00:17 +0000] rev 2
updates in language
latest 2014
2014-10-20, by pegcjs [Mon, 20 Oct 2014 11:05:02 +0000] rev 1
latest 2014
add doku
2014-01-26, by dreschpe [Sun, 26 Jan 2014 20:55:50 +0000] rev 0
add doku