I saw this lcd on amazon and the only info I found on amazon for it is it was used for motor control. Does anyone know any more about this LCD? Can it run the “hello world” sketch or something similar. I was thinking about using it to display multiple sensor values. If not I was going to use the 4x20 lcd.
a link would be useful, don't you think?
ILS - Universal LCD 12864 3D Printer Display Screen With Encoder For CR-10/CR-7 Model https://www.amazon.com/dp/B07912HG1L/ref=cm_sw_r_cp_api_kWjGAbWYS9K54
This is a ST7920 128x64 display. It will work with my old u8glib or the newer u8g2.
See for example here: u8glib MOD for G LCD JHD12864F screen + RAMPS 1 4 + Arduino Mega 2560 R3 for LCD screen and kit test - YouTube
The refered amazon display comes with an extra PCB, which makes the product a little bit expensive. If you do not want to build a 3D printer, then the plain ST7920 display should be sufficient for "hello world". The plan display is available from many internet marketplaces or electronic stores for less then $10 (search for ST7920).
Oliver
thankYouSir
I purchased the LCM12864 from YWRobot
Manufacturer information
http://wiki.ywrobot.net/index.php?title=(SKU:ARD080602_)Arduino_LCM12864_Shield_液晶显示屏模块扩展板
I was able to get the device to work by starting with standard examples added to my Arduino IDE after installing U8GLIB and U8G2 libraries. The examples were generic and worked with many devices. User has to uncomment lines for device based upon chipset, etc. It was also necessary to modify the pin numbers because the manufacturer gets to decide what is wired where.
Modify pin numbers to:
U8GLIB_NHD_C12864 u8g(8, 7, 6, 5, 4); // SPI Com: SCK = 8, MOSI = 7, CS = 6, A0 = 5, RST = 4
Update.
Examples work from U8glib library. Uno can do Hello world in Chinese but Japanese font too big.
U8G2_ST7565_NHD_C12864_F_4W_SW_SPI u8g2(U8G2_R2, /ck/ 8, /dt/ 7, /cs/ 6, /dc/ 5, /rs/ 4); works as a constructor
Had to add u8g2.setContrast(63); to setup. Or black screen.
Some sample sketches turned off backlight in setup with pinMode(9,OUTPUT); and digitalWrite(9,0); Comment these two lines and backlight came on.