2.4" TFT Shield with resistive touch (HCARDU0108)

Post Reply
admin
Site Admin
Posts: 866
Joined: Sun Aug 05, 2012 4:02 pm

2.4" TFT Shield with resistive touch (HCARDU0108)

Post by admin » Fri Feb 22, 2019 12:09 pm

Image




This 2.4" Colour TFT is an Arduino compatible shield that will plug directly into common types of Arduinos, including Uno, Leonardo, and Mega. It includes level shifters so no additional adaptor board is required for connecting to 5V Arduinos. The shield also includes a resistive touch screen sensor allowing your application to include touch screen controls. If using with the above Arduino devices we have also written an Arduino library (HCDisplay) to help you develop your project with minimum time and effort.

ImageImage


Specification:

Product code: HCARDU0108
Display size: 2.4 inch
Resolution: 240X320
Colours: 65535
Display controller: ILI9325
Operating voltage: 5V
Operating current: 150mA (max)
Touch screen type: resistive touchscreen
On board Micro SD slot, supports Micro SD / TF Card
Compatibility: As the SD card is connected to SPI pins of ICSP interface it is compatible with Arduino UNO R3 / Arduino Mega2560 / Arduino Leonardo
Touch Pen: length 9cm







  1. /* FILE:    HCDisplay_Hello_World
  2.    DATE:    22/02/19
  3.    VERSION: 0.1
  4.    AUTHOR:  Andrew Davies
  5.    
  6. 20/12/18 version 0.1: Original version
  7.  
  8. A simple hello world sketch to demonstrate the minimum amount of code needed to
  9. display some text to the screen.
  10.  
  11. 2.4 Inch TFT shield (SKU: HCARDU0108)
  12. 3.2 Inch TFT shield (SKU: HCARDU0109)
  13.  
  14. NOTE: TO USE THIS SKETCH YOU MUST FIRST SELECT THE VERSION OF DISPLAY YOU HAVE BY
  15. UNCOMMENTING THE APPROPRIATE LINE IN THE OPTIONS.H FILE WHICH CAN BE FOUND IN THE
  16. HCDISPLAY LIBRARY FOLDER. For windows users avoid using the Windows Notepad editor
  17. as it doesn't format things properly.  
  18.  
  19. More information about this library can be found in the software section of our support
  20. forum here:
  21.  
  22. http://forum.hobbycomponents.com/software
  23.  
  24.  
  25. You may copy, alter and reuse this code in any way you like, but please leave
  26. reference to HobbyComponents.com in your comments if you redistribute this code.
  27. This software may not be used directly for the purpose of selling products that
  28. directly compete with Hobby Components Ltd's own range of products.
  29. THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, WHETHER
  30. EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
  31. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR LACK OF NEGLIGENCE.
  32. HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR ANY DAMAGES,
  33. INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY
  34. REASON WHATSOEVER. */
  35.  
  36.  
  37. #include "HCDisplay.h"
  38.  
  39. HCDisplay HCDisplay;    //Creates an instance of the HCDisplay library
  40.  
  41.  
  42. void setup()
  43. {
  44.   HCDisplay.Init();   //Initialise the display
  45.  
  46.   HCDisplay.Pos((HCDisplay.ResX() / 2) - 48, HCDisplay.ResY() / 2);
  47.   HCDisplay.Print("Hello World!");
  48. }
  49.  
  50.  
  51.  
  52. void loop()
  53. {
  54.  
  55. }



Image


The HCDisplay library for the above sketch can be downloaded from the software section of our support forum here:

http://forum.hobbycomponents.com/viewto ... =58&t=2827


TFT LCD Shield 2.4inch ili9325 Schematic_HCARDU0108.pdf
ILI9325.pdf



Libraries, example code, and diagrams are provided as an additional free service by Hobby Components and are not sold as part of this product. We do no provide any guarantees or warranties as to their accuracy or fitness for purpose.

Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “Arduino Shields”