Introduction
The Arduino movement, started in 2009 with the Duemilanova, spurred great excitement about embedded and electronic among artists, designers, engineers and curious people who would otherwise only dream of adding microcontroller-based automation to their creations. The Arduino community, in several online communities and businesses, contribute to the community-owned platform by extending the capabilities of the platform by creating new libraries, shields, and even by simply teaching others and giving feedback. Due to this, it has become a very popular development choice due to its considerable support and ecosystem.
A TFT-touch shield connects the Arduino I/O pins to a 320x240 TFT color graphic panel with a resistive touch panel. By "strobing" parallel 8-bit data, the Arduino's AVR microcontroller pushes color pixel data to the panel. By measuring the voltage in the X,Y pins in the touch panel, the AVR chip can calculate the position of the touch point. Pixel drawing and touch calculation functions are included in graphic and touch libraries, such as the ones published by Adafruit Inc, and must be used in the sketch with the #declare directive.
The touch-screen-menu-library builds on top of the graphic and touch libraries and provides functions to quickly compose control panels taking care of the drawing and touch response. After entering a few lines defining the buttons and other widgets, the programmer can focus in his or her application logic. This tutorial's objective is to introduce the library explaining its general use, illustrating one example. Another document, the function reference, documents the purpose of each function in the touch-screen-menu-library.
Downloading and installing the library
...to be continued...
Add your content here. Format your content with:
- Text in bold or italic
- Headings, paragraphs, and lists
- Automatic links to other wiki pages