lcd5110_viewfont.pde
来自「LCD5110_Basic」· PDE 代码 · 共 56 行
PDE
56 行
// LCD5110_ViewFont (C)2011 Henning Karlsen// web: http://www.henningkarlsen.com/electronics//// This program is a demo of the included full font.//// This program requires a Nokia 5110 LCD module.//// It is assumed that the LCD module is connected to// the following pins using a levelshifter to get the// correct voltage to the module.// SCK - Pin 8// MOSI - Pin 9// DC - Pin 10// RST - Pin 11// CS - Pin 12//#include <LCD5110_Basic.h>LCD5110 myGLCD(8,9,10,11,12);extern uint8_t SmallFont[];void setup(){ myGLCD.InitLCD(); myGLCD.setFont(SmallFont);}void loop(){ myGLCD.clrScr(); myGLCD.print("Upper case:", LEFT, 0); myGLCD.print("ABCDEFGHIJKLM", CENTER, 16); myGLCD.print("NOPQRSTUVWXYZ", CENTER, 24); delay (5000); myGLCD.clrScr(); myGLCD.print("Lower case:", LEFT, 0); myGLCD.print("abcdefghijklm", CENTER, 16); myGLCD.print("nopqrstuvwxyz", CENTER, 24); delay (5000); myGLCD.clrScr(); myGLCD.print("Numbers:", LEFT, 0); myGLCD.print("0123456789", CENTER, 16); delay (5000); myGLCD.clrScr(); myGLCD.print("Special:", LEFT, 0); myGLCD.print("!\"#$%&'()*+,-.", CENTER, 16); myGLCD.print("/:;<=>?@[\\]^_`", CENTER, 24); myGLCD.print("{|}~", CENTER, 32); delay (5000);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?