Ryo Od
/
CH12864F-SPI_Test
CH12864F-SPI_Test
Embed:
(wiki syntax)
Show/hide line numbers
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 }
Generated on Thu Aug 18 2022 19:58:56 by 1.7.2