Arduino 記事本 10 : LCD模組_01
網頁筆記本-010 Arduino 記事本 10 : LCD模組 LCD購: LT 的 KT-28觸控面板 ( http://www.ltc.com.tw/ ) 產品網頁 http://www.ltc.com.tw/product_info.php/products_id/60790 網頁可下載使用說明書&工具函式庫 將 函數庫內3個資料夾 Copy 至arduino主程式目錄下的libraries內 開啟 [Arduino程式 -> 範例 -> Adafruit_TFTLCD -> graphicstest] 程式 // IMPORTANT: Adafruit_TFTLCD LIBRARY MUST BE SPECIFICALLY // CONFIGURED FOR EITHER THE TFT SHIELD OR THE BREAKOUT BOARD. // SEE RELEVANT COMMENTS IN Adafruit_TFTLCD.h FOR SETUP. #include < Adafruit_GFX . h > // Core graphics library #include < Adafruit_TFTLCD . h > // Hardware-specific library // The control pins for the LCD can be assigned to any digital or // analog pins...but we'll use the analog pins as this allows us to // double up the pins with the touch screen (see the TFT paint example). #define LCD_CS A3 // Chip Select goes to Analog 3 #define LCD_CD A2 // Command/Data goes to Analog 2 #define LCD_WR A1 // LCD Write goes to Analog 1 #define LC