B314
Baru
0 Barang item
Stok Habis
Pemberitahuan: Barang terakhir di stok!
Tanggal ketersediaan:
Product Information:
Name: LCD module
LCD Mode: FSTN / Transflective Positive Mode
Model: GMG12864-06D
Resolution: 128*64
Dimensions: 61.8*45.8*6.8(mm)
Display size: 48.6*24.28(mm)
Driver IC: ST7565R
Viewing direction: 60'clock
Working temperature: -20°C + 70°C
Storage temperature: -30°C + 80°C
Voltage: 3.3 V
Interface mode: SPI Interface
menggunakan library U8g2,
UNCOMMENT > U8G2_ST7565_ERC12864_F_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
LCD - MCU
CS - CS / 10
RSE - RESET / 8
RS - DC / 9
SCL - CLOCK / 13
SI - DATA / 11
VDD - 3.3V
VSS - GND (seri dengan VR 10K untuk adj. kontras karakter)
A - ANODA BACKLIGHT (seri dengan res. 100ohm jika mau agak redup)
K - KATODA BACKLIGHT
PIN LIBRARY DAPAT DIUBAH DAN DISESUAIKAN DENGAN PIN YANG MAU DIPAKAI
.
.
.
contoh program
#include <Arduino.h>
#include <U8g2lib.h>
#ifdef U8X8_HAVE_HW_SPI
#include <SPI.h>
#endif
#ifdef U8X8_HAVE_HW_I2C
#include <Wire.h>
#endif
U8G2_ST7565_ERC12864_F_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
void setup(void) {
u8g2.begin();
}
void loop(void) {
u8g2.clearBuffer(); // clear the internal memory
u8g2.enableUTF8Print();
u8g2.setFont(u8g2_font_6x13B_t_cyrillic);
u8g2.setCursor(4, 22);
u8g2.setContrast (80);
u8g2.print("JOGJAROBOTIKA");
u8g2.setFont(u8g2_font_cu12_t_cyrillic);
u8g2.setCursor(4, 42);
u8g2.print("Теxт 123 test");
// write something to the internal memory
u8g2.sendBuffer(); // transfer internal memory to the display
delay(1000);
}