Interfacing Arduino DG LCD Nokia 5110
Interfacing Arduino DG LCD Nokia 5110
com]
Ukuran 84*48
Tegangan 3,3 V
Controller : PCD8544
Kebutuhan Hardware :
Schematics
2 Inkubatek [supported by : www.tokotronik.com]
3.3 V VCC
5V BL
GND GND
3 1 (RST)
4 2 (CE / CS)
5 3 (DC)
6 4 (DIN)
7 5 (CLK/SCK)
3 Inkubatek [supported by : www.tokotronik.com]
Source Code/Sketch :
/*************************************
* www.tokotronik.com
* ***********************************/
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>
void setup() {
display.begin();
display.setContrast(50);
delay(100);
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(BLACK);
display.setCursor(0,0);
display.setCursor(0,10);
display.println("NOKIA 5110");
display.setCursor(0,20);
display.println("tokotronik");
display.setTextSize(2);
display.setCursor(0,30);
display.println("JOGJA");
display.display();
void loop() {
Jalannya Alat :
5 Inkubatek [supported by : www.tokotronik.com]
“NOKIA 5110”
“tokotronik”
“JOGJA”
Untuk merubah isi text cukup ganti string pada baris programnya.
6 Inkubatek [supported by : www.tokotronik.com]