Example of library TextLCD_ST7565SPI: Text console library for ST7565 graphics LCD controller over SPI interface.
Dependencies: TextLCD_ST7565SPI mbed
Revision 0:895b272c0de6, committed 2015-03-02
- Comitter:
- kayekss
- Date:
- Mon Mar 02 23:12:38 2015 +0000
- Commit message:
- Initial release.
Changed in this revision
diff -r 000000000000 -r 895b272c0de6 TextLCD_ST7565SPI.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD_ST7565SPI.lib Mon Mar 02 23:12:38 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/kayekss/code/TextLCD_ST7565SPI/#1ea133b6a4de
diff -r 000000000000 -r 895b272c0de6 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 02 23:12:38 2015 +0000 @@ -0,0 +1,20 @@ +#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); + } +}
diff -r 000000000000 -r 895b272c0de6 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Mar 02 23:12:38 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1 \ No newline at end of file