![](/media/cache/profiles/30ba105754346aaf47509089d2287f2a.50x50_q85.png)
LCD Serial with shift register
main.cpp
- Committer:
- Suky
- Date:
- 2011-02-05
- Revision:
- 0:238a568fd867
File content as of revision 0:238a568fd867:
#include "mbed.h" #include "LCD_Serial.h" DigitalOut myled(LED1); LCDSerial myLcd(p13,p14,p15,p16); // Data, Clock, Enable, Back int main() { char k=0; myLcd.printf("\fHello mbed! Library\nLCD serial with\nshift register\nby Suky..."); myLcd.vSetBacklight(1); while(1) { myLcd.vGotoxy(20,4); myLcd.vPutc(k); if(++k==8){k=0;} myled = 1; wait(0.2); myled = 0; wait(0.2); } }