查看SKU:RB-05L003 LCD12864點陣液晶擴展板的源代碼
←
SKU:RB-05L003 LCD12864點陣液晶擴展板
跳轉至:
導航
、
搜索
因為以下原因,你沒有權限編輯本頁:
您剛才請求的操作只有這個用戶組中的用戶才能使用:
用戶
您可以查看并復制此頁面的源代碼:
[[文件:RB-05L003.jpg|500px|縮略圖|右]] ==產(chǎn)品概述== 2014年最新推出的12864液晶板采用的是帶漢字庫圖形點陣液晶顯示模塊,具有串行和并行接口,背光控制開關(串行與并行模式均可使用),對比度調(diào)節(jié)旋鈕,板上集成IDC6插座和IDC14插座,可通過套件中附送的專用連接線與Arduino傳感器擴展板連接,無需再買相關轉接板,通過我們提供的例子程序,您可以用Arduino控制器做控制完成顯示8192個中文漢字(16X16點陣)、128個字符(8X16點陣)和圖形顯示(128X64點陣)功能,輕松制作Arduino互動顯示器最佳選擇。 ==規(guī)格參數(shù)== # 電源電壓:VDD+3.3V~+5.5V(內(nèi)置升壓電路,無需負壓) # 控制器:ST7920 # 點陣個數(shù):128列×64行 # 顯示顏色:藍底白字 # 可視角度:170度 # LCD類型:STN # 控制接口:8位或4位并行和3位串行 # LED背光:藍色 # 軟件功能:光標顯示、畫面移位、自定義字符、反白顯示、睡眠模式等 # 邏輯工作電壓(VDD):4.5~5.5V # 電源地(GND):0V # 工作溫度:-20℃~70℃ # 存儲溫度:-30℃~80℃ # 模塊尺寸:93×70×22mm # 視域尺寸:73×39mm ==發(fā)貨清單== * 12864 液晶擴展版 * 1個 * 6P 雙頭線 * 1條 * 14P 雙頭線 * 1條 ==12864液晶屏接口定義== * PIN1------GND 電源接入 -, 一般接0V。 * PIN2------電源接入 +, 一般接5V。 * PIN3------對比度調(diào)整端,VDD和GND接可調(diào)電阻兩端,中間抽頭接至V0。 * PIN4------RS 指令/數(shù)據(jù)選擇 * PIN5------R/W 讀寫選擇 * PIN6------E,信號使能 * PIN7------D0,數(shù)據(jù)位0 * PIN8------D1,數(shù)據(jù)位1 * PIN9------D2,數(shù)據(jù)位2 * PIN10-----D3,數(shù)據(jù)位3 * PIN11-----D4,數(shù)據(jù)位4 * PIN12-----D5,數(shù)據(jù)位5 * PIN13-----D6,數(shù)據(jù)位6 * PIN14-----D7,數(shù)據(jù)位7 * PIN15-----PSB 并行:PSB=1,可以接VCC; 串行:PSB=0,一般接GND * PIN16 ----NC,不連接 * PIN17-----~RST,模塊復位,可不連接 * PIN18 ----NC,不連接 * PIN19 ----LED+ ,背光 +,一般接5V。 * PIN20 ----LED- ,背光 -,一般接GND。 ==使用方法== ===使用硬件=== * Carduino UNO 控制器 * 1個 * LCD12864 點陣液晶擴展版 * 1個 * USB 數(shù)據(jù)線 * 1條 * V5.0傳感器擴展板 * 1個 ===例子程序=== * 12864液晶擴展板使用庫文件、相關例子程序、解碼和取模軟件<br/> * 下載鏈接:http://pan.baidu.com/s/1i4Ro93R 密碼:swso <br/> ====串行顯示漢字==== <pre style='color:blue'> #include "LCD12864RSPI.h" #define AR_SIZE( a ) sizeof( a ) / sizeof( a[0] ) unsigned char show0[]={ 0xB9, 0xFE, 0xB6, 0xFB,0xB1, 0xF5, 0xB0, 0xC2, 0xCB, 0xC9, 0xBB, 0xFA, 0xC6, 0xF7, 0xC8, 0xCB}; //哈爾濱奧松機器人 unsigned char show1[]="gharee.com"; void setup() { LCDA.Initialise(); // 屏幕初始化 delay(100); } void loop() { LCDA.CLEAR();//清屏 delay(100); LCDA.DisplayString(0,0,show0,AR_SIZE(show0));//第一行第三格開始,顯示文哈爾濱奧松機器人 delay(100); LCDA.DisplayString(2,0,show1,AR_SIZE(show1));;//第三行第二格開始,顯示網(wǎng)址gharee.com/ delay(5000); } </pre> ====串行圖片顯示==== <pre style='color:blue'> #include "LCD12864RSPI.h" #define AR_SIZE( a ) sizeof( a ) / sizeof( a[0] ) unsigned char logo0[]={ //笑臉 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xFF, 0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF, 0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x03,0xFE,0x00, 0x7F,0xC0,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x0F,0xF0,0x00, 0x0F,0xF0,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x1F,0x80,0x00, 0x01,0xF8,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x3E,0x00,0x00, 0x00,0x7C,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0xF8,0x00,0x00, 0x00,0x1F,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0xF0,0x00,0x00, 0x00,0x0F,0x80,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x03,0xE0,0x00,0x00, 0x00,0x07,0xC0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x07,0xC0,0x00,0x00, 0x00,0x01,0xE0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x07,0x80,0x00,0x00, 0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x0F,0x00,0x00,0x00, 0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x1E,0x00,0x00,0x00, 0x00,0x00,0x78,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x3C,0x00,0x00,0x00, 0x00,0x00,0x3C,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x38,0x00,0x40,0x00, 0x00,0x80,0x1C,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x78,0x03,0xF8,0x00, 0x07,0xF0,0x1E,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x70,0x07,0xFE,0x00, 0x0F,0xFC,0x0E,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xF0,0x1F,0xBF,0x00, 0x3F,0x7E,0x0F,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xE0,0x3E,0x0F,0x80, 0x7C,0x1F,0x07,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xE0,0x7C,0x07,0xC0, 0xF8,0x0F,0x87,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xE0,0xF8,0x01,0xE1, 0xF0,0x03,0xC3,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xC0,0xF0,0x01,0xE1, 0xE0,0x03,0xC3,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xC0,0xE0,0x00,0xE1, 0xC0,0x01,0xC3,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xC0,0x00,0x00,0x00, 0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00, 0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xC0,0x00,0x00,0x00, 0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xC0,0x00,0x00,0x00, 0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xC0,0x00,0x00,0x00, 0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0xE0,0x00,0x00,0x00, 0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xE0,0x00,0x00,0x00, 0x00,0x00,0x07,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xE0,0x00,0x00,0x00, 0x00,0x00,0x07,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xF0,0x00,0x0C,0x00, 0x0C,0x00,0x0F,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x70,0x00,0x1E,0x00, 0x1E,0x00,0x0E,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x78,0x00,0x1F,0x00, 0x3E,0x00,0x1E,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x38,0x00,0x07,0x80, 0xF8,0x00,0x1C,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x3C,0x00,0x03,0xE1, 0xF0,0x00,0x3C,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x1E,0x00,0x01,0xFF, 0xE0,0x00,0x78,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x0F,0x00,0x00,0xFF, 0x80,0x00,0xF0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x07,0x00,0x00,0x3F, 0x00,0x00,0xF0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x07,0x80,0x00,0x00, 0x00,0x01,0xE0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x03,0xE0,0x00,0x00, 0x00,0x07,0xC0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0xF0,0x00,0x00, 0x00,0x0F,0x80,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0xF8,0x00,0x00, 0x00,0x1F,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x3E,0x00,0x00, 0x00,0x7E,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x1F,0x80,0x00, 0x01,0xF8,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x0F,0xE0,0x00, 0x07,0xF0,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x03,0xFE,0x00, 0x3F,0xC0,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF, 0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xFF, 0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF, 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; void setup() { LCDA.Initialise(); // 屏幕初始化 delay(100); } void loop() { LCDA.DrawFullScreen(logo0); delay(5000); } </pre> ====并行顯示==== <pre style='color:blue'> #include "LCD12864R.h" #define AR_SIZE( a ) sizeof( a ) / sizeof( a[0] ) unsigned char show0[]={ 0xB9, 0xFE,0xB6, 0xFB,0xB1, 0xF5,0xB0, 0xC2,0xCB, 0xC9,0xBB, 0xFA,0xF7, 0xC8, 0xCB}; //哈爾濱奧松機器人 unsigned char show1[]="gharee.com"; void setup() { LCDA.Initialise(); // 屏幕初始化 delay(100); } void loop() { LCDA.CLEAR();//清屏 delay(100); LCDA.DisplayString(0,0,show0,AR_SIZE(show0));//第一行第三格開始,顯示文哈爾濱奧松機器人 delay(100); LCDA.DisplayString(2,0,show1,AR_SIZE(show1));;//第三行第二格開始,顯示網(wǎng)址gharee.com/ delay(5000); } </pre> ===程序效果=== 以上三個測試例程,分別通過串行和并行通信方式進行顯示,文字顯示:“奧松機器人,gharee.com”,圖片顯示為位圖,通過下載解碼和取模軟件可以輕松編程。 ==視頻演示== [[File:12864 ye jing.png|400px|左|link=http://v.youku.com/v_show/id_XMTc2Mzk2MDI4.html?from=y1.7-2]] [[File:iic1602 01.png|400px|居中|link=http://v.youku.com/v_show/id_XMjQzMjMzOTky.html?from=y1.7-2]] <br/> ==產(chǎn)品相關推薦== [[文件:erweima.png|230px|無框|右]] ===購買地址=== [http://gharee.com/goods-128.html LCD12864點陣液晶擴展板] ===周邊產(chǎn)品推薦=== [http://gharee.com/goods-663.html Raspberry Pi 樹莓派 2代 B+ 7寸液晶屏 LCD電容觸摸 高清顯示器] <br/> [http://gharee.com/goods-664.html Raspberry Pi 直插 3.5寸液晶屏 樹莓派2代 B+ 高清 可觸摸液晶屏] ===相關問題解答=== [http://www.makerspace.cn/forum.php?mod=viewthread&tid=3997&highlight=12864 Arduino驅(qū)動控制12864液晶屏]<br/> [http://www.makerspace.cn/forum.php?mod=viewthread&tid=2929&highlight=12864 12864液晶顯示程序編譯錯誤] ===相關學習資料=== [http://www.makerspace.cn/forum.ph
返回
SKU:RB-05L003 LCD12864點陣液晶擴展板
。
來自“
http://gharee.com/wiki/index.php/SKU:RB-05L003_LCD12864點陣液晶擴展板
”
導航菜單
個人工具
登錄
名字空間
頁面
討論
變換
查看
閱讀
查看源代碼
查看歷史
操作
搜索
導航
首頁
社區(qū)專頁
新聞動態(tài)
最近更改
隨機頁面
工具箱
鏈入頁面
相關更改
特殊頁面
頁面信息
隱私政策
關于ALSROBOT WiKi
免責聲明