CH12864F-SPI_Test

Dependencies:   mbed st7565LCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "st7565LCD.h"
00003 
00004 //ST7565(PinName mosi, PinName sclk, PinName cs, PinName rst, PinName a0);
00005 ST7565 gLCD(SPI_MOSI, SPI_SCK, SPI_CS, D9, D8);
00006 
00007 int main()
00008 {
00009     gLCD.begin(0x10);
00010     
00011     while (true) {
00012         gLCD.drawstring(0, 0, "Hello World.");
00013         gLCD.display();
00014         wait(0.1);
00015     }
00016 }