![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Example of library TextLCD_ST7565SPI: Text console library for ST7565 graphics LCD controller over SPI interface.
Dependencies: TextLCD_ST7565SPI mbed
main.cpp
- Committer:
- kayekss
- Date:
- 2015-03-02
- Revision:
- 0:895b272c0de6
File content as of revision 0:895b272c0de6:
#include "mbed.h" #include "TextLCD_ST7565SPI.h" TextLCD_ST7565SPI lcd(/*MOSI*/ p5, /*SCK*/ p7, /*CS*/ p8, /*RS*/ p11, /*RST*/ p12, /*Columns*/ 21, /*Rows*/ 8); int main(void) { // Initialize LCD lcd.init(/*V0*/ 3, /*Contrast*/ 48, /*Bias*/ TextLCD_ST7565SPI::Bias1_9); lcd.locate(0, 0); lcd.printf("Hello, world"); uint32_t count = 0; lcd.locate(0, 1); while (1) { lcd.printf("\r\n%d", count++); wait(1); } }