Reference
This reference guide covers the installation of U8glib library for Arduino, detailed communication protocol setup, and comprehensive API description for effective use of LCD12864 Shield, including pin configuration and display options.
Library
- Download and install the U8glib arduino Library. (About how to install the library?)
- U8glib library
Communication Protocol Description
- SPI Com: SCK = 13, MOSI = 11, CS = 10, CD = 9, RST = 8
API Description
- U8GLIB_NHD_C12864 u8g(13, 11, 10, 9, 8);: Config the driving pin for the LCD12864 Shield.
- setContrast(value): Config the contrast of the display. Recommend setting to 0 for best effect.
- setRot180(): Rotate the display direction by 180 degrees.
- drawStr(x, y, string): Draw a string at the specified (x, y) position.
- For more useful lcd driving functions, please check u8glib userreference page.
Other Supplementary Information
Was this article helpful?
