/MCP23017_LCD12864

LCD12864 Lcd grafico

Primary LanguageC++MIT LicenseMIT

MCP23017_LCD12864

This library based on MCP23017 ( I2C I/O expander ) that would be driver for LCD12864-V2.0 ( china lcd ) with ST7920 driver ( built-in it )

LCD 12864-V.20

LCD top view LCD bottom view

MCP23017 I2C I/O expander module

MCP23017 I2C I/O expander module MCP23017 I2C I/O expander module

##Reference ( datasheet )

In parallel 8bit mode, set PSB pin on High state ( for parallel ).

Sample for displaying an image

  • MCP32017

Convert the bitmap ( in an even matrix resolution size ) that not exceed than lcd pixel's size i use LVGL online tools : LVGL-tools.

  • Upload your BMP file
  • Set color format to Indexed 2 colors
  • check Output in big-endian format on the Options
  • then click convert

You just need to copy the data array, not all of the existing source inside that files

in my sample codes

...
    lcd.clear(0,0);
    lcd.clearBuffer();
    lcd.drawBitmap(1,1,84,48,(uint8_t*)bitmapArray,1);    // image size : 84x48
    lcd.sendBuffer();**
 ...

I would say thank you very much for

https://github.com/devMorpheus/zLCD as reference for LCD7920 driver