LCD5110
2019-04-04
Connection
Libraries
Sketch
#include <LCD5110_Graph.h>
#define PIN_CE 7
#define PIN_RST 6
#define PIN_DC 5
#define PIN_DIN 4
#define PIN_CLK 3
LCD5110 screen(PIN_CLK, PIN_DIN, PIN_DC, PIN_RST, PIN_CE);
extern uint8_t TinyFont[];
extern uint8_t SmallFont[];
extern uint8_t MediumNumbers[];
void setup() {
screen.InitLCD();
//screen.invert(true);
screen.drawRect(2, 35, 18, 45);
screen.setFont(MediumNumbers);
screen.print("123", CENTER, 14);
screen.update();
//screen.clrScr();
}
void loop() {
screen.drawRect(2, 35, 18, 45);
screen.update();
delay(500);
}