One possibility to control a display saving pin ;)
Example
#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);
}
}
LCD Serial with shift register
Library
LCD Serial with shift register
No tags
|
6 comments
Please login to post comments.
Nice work..btw you have given 5V supply to shift register..won't it create problem with MBED ?