Vlad Cazan
/
Sparkfun-SerLCD
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 00003 Serial lcd(p13,p14); 00004 00005 int main() { 00006 00007 //puts the cursor at line 0 char 0. 00008 lcd.printf("%c",0xFE); 00009 lcd.printf("%c",128); 00010 wait_ms(100); 00011 lcd.printf("CyberHades.com"); 00012 wait_ms(1000); 00013 //clear LCD 00014 lcd.printf("%c",0xFE); 00015 lcd.printf("%c",0x01); 00016 //turns on the backlight 00017 lcd.printf("%c",0x7c); 00018 lcd.printf("%c",157); 00019 00020 }
Generated on Fri Jul 15 2022 21:20:54 by 1.7.2