Hello,
I am having problems with connecting ERC192x64-1 display module (http://www.buydisplay.com/download/manual/ERC19264-1_Series_Manual.pdf) to Arduino Nano. I am using level shifter to supply 3.3V for everything (Logic Level Converter Module Bi-Directional Shifter 5V to 3.3V TTL 8-Channel | eBay). Communication protocol is 4-wire SPI.
So far have connected:
LCM Arduino
Pin 2 to GND
Pin 15 to 3.3V
Pin 16 to GND
Pin 17 to D11
Pin 18 to D13
Pin 27 to D9
Pin 28 to D8
Pin 29 to D10
Pin 30 to GND
Schematic --> http://www.buydisplay.com/download/interfacing/ERC19264-1_Interfacing.pdf
I tried to run following code:
#include <Arduino.h>
#include <SPI.h>
#include <U8g2lib.h>
/* Constructor */
U8G2_IST3020_ERC19264_1_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 11, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8);
/* u8g2.begin() is required and will sent the setup/init sequence to the display */
void setup(void) {
u8g2.begin();
}
/* draw something on the display with the `firstPage()`/`nextPage()` loop*/
void loop(void) {
u8g2.firstPage();
do {
u8g2.setFont(u8g2_font_ncenB14_tr);
u8g2.drawStr(0,20,"Hello World!");
} while ( u8g2.nextPage() );
delay(1000);
}
So far nothing is showing up on display.
Do I have to connect Pin 1-14 as shown in schematic?
How do I control contrast of LCD?
I guess there is a lot of mistakes so far...
I hope you could help me and guide me in the right direction.
Previously I have worked only with 16x2 Character LCD, so I am pretty inexperienced.
Robert.