- 아두이노 TFT LCD 2.4인치 터치스크린 LCD A40
- 아두이노 우노 R3 및 메가 2560 보드용 2.4인치 TFT 터치 LCD 쉴드
- 마이크로 SD카드 슬롯이 장착되어 있음
- 디스플레이 및 터치 테스트 , 그래픽 출력 테스트 , SD카드를 이용한 BMP 파일 출력 등 다양한 프로젝트 수행 가능


- 제품 모델 2.4 인치 TFT LCD 모듈
- 아두이노 우노 R3 및 메가2560 보드 등에 장착해 사용이 가능
- 해상도 320*240
- 컨트롤러 ILI9341, 터치 기능 포함
- 인터페이스 3.3V
- 작동 온도 -20 ~ 80 도
- 보관 온도 -40 ~ 85 도
- 습도 5% ~ 95%
- Supports development boards such as Arduino UNO and Mega2560 for plug-in use without wiring
- 320X240 resolution, clear display, support for touch function
- Support 16-bit RGB 65K color display, display rich colors
- 8-bit parallel bus, faster than serial SPI refresh
- On-board 5V/3.3V level shifting IC, compatible with 5V/3.3V operating voltage
- Easy to expand the experiment with SD card slot
- Provides an Arduino library with a rich sample program
- Military-grade process standards, long-term stable work
- Provide underlying driver technical support

- 크기 50.29mm X 62.13mm

- 아두이노 TFT LCD 2.4인치 터치스크린 LCD A40 * 1개
- 터치 펜 * 1개

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | //******************************************************************************* // Project : 2_4_TFT_LCD control in Advance set // Board : Arduino Uno // By : Kit Plus //*******************************************************************************/ #include // Core graphics library #include // Hardware-specific library #include #if defined(__SAM3X8E__)# undef __FlashStringHelper::F(string_literal) #define F(string_literal) string_literal #endif //I need to change the pins below for it to work. NOt sure why #define YP A3 // must be an analog pin, use "An" notation! #define XM A2 // must be an analog pin, use "An" notation! #define YM 9 // can be a digital pin #define XP 8 // can be a digital pin #define TS_MINX 150 #define TS_MINY 120 #define TS_MAXX 920 #define TS_MAXY 940 // For better pressure precision, we need to know the resistance // between X+ and X- Use any multimeter to read it // For the one we're using, its 300 ohms across the X plate TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300); #define LCD_CS A3 #define LCD_CD A2 #define LCD_WR A1 #define LCD_RD A0 // optional #define LCD_RESET A4 // Assign human-readable names to some common 16-bit color values: #define BLACK 0x0000 #define BLUE 0x001F #define RED 0xF800 #define GREEN 0x07E0 #define CYAN 0x07FF #define MAGENTA 0xF81F #define YELLOW 0xFFE0 #define WHITE 0xFFFF Adafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET); #define BOXSIZE 40 #define PENRADIUS 3 int oldcolor, currentcolor; void setup(void) { Serial.begin(9600); Serial.println(F("Paint!")); tft.reset(); //Once again, need to hard code the code below uint16_t identifier = 0x9341; if (identifier == 0x9325) { Serial.println(F("Found ILI9325 LCD driver")); } else if (identifier == 0x9328) { Serial.println(F("Found ILI9328 LCD driver")); } else if (identifier == 0x7575) { Serial.println(F("Found HX8347G LCD driver")); } else if (identifier == 0x9341) { Serial.println(F("Found ILI9341 LCD driver")); } else if (identifier == 0x8357) { Serial.println(F("Found HX8357D LCD driver")); } else { Serial.print(F("Unknown LCD driver chip: ")); Serial.println(identifier, HEX); Serial.println(F("If using the Adafruit 2.8\" TFT Arduino shield, the line:")); Serial.println(F(" #define USE_ADAFRUIT_SHIELD_PINOUT")); Serial.println(F("should appear in the library header (Adafruit_TFT.h).")); Serial.println(F("If using the breakout board, it should NOT be #defined!")); Serial.println(F("Also if using the breakout, double-check that all wiring")); Serial.println(F("matches the tutorial.")); return; } tft.begin(identifier); tft.fillScreen(BLACK); tft.fillRect(0, 0, BOXSIZE, BOXSIZE, RED); tft.fillRect(BOXSIZE, 0, BOXSIZE, BOXSIZE, YELLOW); tft.fillRect(BOXSIZE *2, 0, BOXSIZE, BOXSIZE, GREEN); tft.fillRect(BOXSIZE *3, 0, BOXSIZE, BOXSIZE, CYAN); tft.fillRect(BOXSIZE *4, 0, BOXSIZE, BOXSIZE, BLUE); tft.fillRect(BOXSIZE *5, 0, BOXSIZE, BOXSIZE, MAGENTA); // tft.fillRect(BOXSIZE*6, 0, BOXSIZE, BOXSIZE, WHITE); tft.drawRect(0, 0, BOXSIZE, BOXSIZE, WHITE); currentcolor = RED; pinMode(13, OUTPUT); } #define MINPRESSURE 10 #define MAXPRESSURE 1000 void loop() { digitalWrite(13, HIGH); TSPoint p = ts.getPoint(); digitalWrite(13, LOW); // if sharing pins, you'll need to fix the directions of the touchscreen pins //pinMode(XP, OUTPUT); pinMode(XM, OUTPUT); pinMode(YP, OUTPUT); //pinMode(YM, OUTPUT); // we have some minimum pressure we consider 'valid' // pressure of 0 means no pressing! if (p.z > MINPRESSURE && p.z < MAXPRESSURE) { /* Serial.print("X = "); Serial.print(p.x); Serial.print("\tY = "); Serial.print(p.y); Serial.print("\tPressure = "); Serial.println(p.z); */ if (p.y < (TS_MINY - 5)) { Serial.println("erase"); // press the bottom of the screen to erase tft.fillRect(0, BOXSIZE, tft.width(), tft.height() - BOXSIZE, BLACK); } // scale from 0->1023 to tft.width p.x = 1023 - p.x; p.y = 1023 - p.y; //Code below to fix the bug of inverted coordinates p.x = map(p.x, TS_MINX, TS_MAXX, 0, tft.width()); p.y = map(p.y, TS_MINY, TS_MAXY, 0, tft.height()); //Correct offset of touch. Manual calibration p.x += 5; p.y += 18; if (p.y < BOXSIZE) { oldcolor = currentcolor; if (p.x < BOXSIZE) { currentcolor = RED; tft.drawRect(0, 0, BOXSIZE, BOXSIZE, WHITE); } else if (p.x < BOXSIZE *2) { currentcolor = YELLOW; tft.drawRect(BOXSIZE, 0, BOXSIZE, BOXSIZE, WHITE); } else if (p.x < BOXSIZE *3) { currentcolor = GREEN; tft.drawRect(BOXSIZE *2, 0, BOXSIZE, BOXSIZE, WHITE); } else if (p.x < BOXSIZE *4) { currentcolor = CYAN; tft.drawRect(BOX, PENRADIUS, currentcolor); } } } | cs |


| Number | Pin Label | Pin Description |
| 1 | LCD_RST | LCD bus reset signal, low level reset |
| 2 | LCD_CS | LCD bus chip select signal, low level enable |
| 3 | LCD_RS | LCD bus command / data selection signal, low level: command, high level: data |
| 4 | LCD_WR | LCD bus write signal |
| 5 | LCD_RD | LCD bus read signal |
| 6 | GND | Power ground |
| 7 | 5V | 5V power input |
| 8 | 3V3 | 3.3V power input, this pin can be disconnected |
| 9 | LCD_D0 | LCD 8-bit data Bit0 |
| 10 | LCD_D1 | LCD 8-bit data Bit1 |
| 11 | LCD_D2 | LCD 8-bit data Bit2 |
| 12 | LCD_D3 | LCD 8-bit data Bit3 |
| 13 | LCD_D4 | LCD 8-bit data Bit4 |
| 14 | LCD_D5 | LCD 8-bit data Bit5 |
| 15 | LCD_D6 | LCD 8-bit data Bit6 |
| 16 | LCD_D7 | LCD 8-bit data Bit7 |
| 17 | SD_SS | SD card SPI bus chip select signal, low level enable |
| 18 | SD_DI | SD card SPI bus MOSI signal |
| 19 | SD_DO | SD card SPI bus MISO signal |
| 20 | SD_SCK | SD card SPI bus clock signal |
|
|
Arduino UNO direct insertion picture |
Arduino Mega2560 direct insertion picture |

| |
| 품명/모델명 | [상세설명참조] | ||
|---|---|---|---|
| 인증유형/인증번호 | 해당없음 | ||
| 정격전압/소비전력 | [상세설명참조] | ||
| 제조년월 | [상세설명참조] | ||
| 제조자/수입품여부/수입자 | [상세설명참조] | ||
| 제조국 | [상세설명참조] | ||
| 크기/무게 | [상세설명참조] | ||
| 주요 사양 | [상세설명참조] | ||
| 품질보증기준 | [상세설명참조] | ||
| A/S 책임자와 전화번호 | [상세설명참조] | ||
상품이 장바구니에 담겼습니다.
바로 확인하시겠습니까?