TouchScreen Class
Introduction

One of the great features of the Embedded Master TFT Development System is the TouchScreen that is added. It allows you to make more complex user interfaces. On the .NET Micro Framework version 2.5 there are no drivers available. On the new 3.0 version you have the Ink class.
This class allows you to use the TouchScreen with the .NET Micro Framework, version 2.5. When initialized it provides you with an OnTouchScreen click event. Also you can let the user calibrate their screen by letting them tap on two points on the screen.
Main features that are included:
- Automatic calibration of the TouchScreen
- OnTouchScreen click event
- Normal (More accurate) and Fast mode
Below you can download an example program showcasing how to use the TouchScreen class and how to calibrate the screen.
Here is a movie displaying the example program.
Download:
The full Visual Studio 2005 Solution can be downloaded here: MFTouchScreenTest.zip
Updated EggBasket Game
I’ve updated a game for the Embedded Master to use the TouchScreen class. This took me about 5 minutes. The original application can be found at the GHI Electronics Page
Here is a movie of the modified game: Download it!
should the comment on line : static private AnalogIn.AnalogInputPin xAin = AnalogIn.AnalogInputPin.AIN3; // (=yPlusPort)
be the (=yMinPort)?
since the pinout description for the tft module says : E7*\P0.26\ADC3\AOUT\UART_RXD3 ?
/**
* Define ports used for Touchscreen.
*
* Top layer (X)
*
**/
static private Cpu.Pin xPlusPort = EmbeddedMaster.Pins.E6x;
static private Cpu.Pin xMinPort = EmbeddedMaster.Pins.E8x;
static private AnalogIn.AnalogInputPin xAin = AnalogIn.AnalogInputPin.AIN3; // (=yPlusPort)
/**
* Define ports used for Touchscreen.
*
* Bottom layer (Y)
*
**/
static private Cpu.Pin yPlusPort = EmbeddedMaster.Pins.E5x;
static private Cpu.Pin yMinPort = EmbeddedMaster.Pins.E7x;
static private AnalogIn.AnalogInputPin yAin = AnalogIn.AnalogInputPin.AIN2; // (=xPlusPort)
hi
should the comment on line:
static private AnalogIn.AnalogInputPin xAin = AnalogIn.AnalogInputPin.AIN3; // (=yPlusPort)
yMinPort instead of yPlusPort (pinout from master module: E7*\P0.26\ADC3\AOUT\UART_RXD3) ?
yMinPort is defined as :
static private Cpu.Pin yMinPort = EmbeddedMaster.Pins.E7x;
oh sorry, i havent seen my first comment – you can delete my comments from january 10
thx