(SKU:DIS060008)LCM12864液晶显示屏模块

来自YwRobot Studio Wiki
跳转至: 导航搜索
12864.jpg

简介

优质LCM显示屏,内部集成控制芯片,显示效果好,操作简便 ,5线SPI接口,方便连接Arduino,占用IO少 ,背光可控,可以通过PWM调节背光亮度 ,接口标注方便使用, 兼容Arduino U8glib库文件,方便显示字符和图形。

注意:该产品没有字库,不能显示中文

产品参数

  • 尺寸:56*43*11mm
  • 固定孔:3mm
  • 孔位:2000*1500mil(50.8*38.1mm)
  • 显示尺寸:39.8*25.5mm
  • 屏幕:128*64(点阵型)
  • 颜色:白底黑字
  • 电压:5V
  • 接口:SPI
  • 平台:Arduino

使用教程

12864LINE.jpg

样例代码

#include "U8glib.h"
U8GLIB_NHD_C12864 u8g(8, 7, 6, 5, 4);	// SPI Com: SCK = 8, MOSI = 7, CS = 6, RS = 5, RST = 4

static unsigned char u8g_logo_bits[] U8G_PROGMEM = {
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xCF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0x01,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0x01,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0x3F,0xBF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xDF,0x3E,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF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,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFD,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xF9,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xF9,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFB,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFB,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF

};

void setup(void) {
  u8g.setRot180();
 
}
void loop(void) {
  u8g.firstPage();  
  do {
    u8g.drawXBMP( 0, 0, 128, 64, u8g_logo_bits);

  } while( u8g.nextPage() );
  delay(500);
}

更多

[YWRobot产品资料下载]

购买 YWRobot商城购买链接