Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:5571d9923fcf, committed 2016-04-26
- Comitter:
- TANI1
- Date:
- Tue Apr 26 07:55:41 2016 +0000
- Commit message:
- LCD
Changed in this revision
diff -r 000000000000 -r 5571d9923fcf TextLCD.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Tue Apr 26 07:55:41 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/TextLCD/#308d188a2d3a
diff -r 000000000000 -r 5571d9923fcf main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Apr 26 07:55:41 2016 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" +#include "TextLCD.h" +TextLCD lcd(PTC12,PTC13,PTC16,PTC17,PTA16,PTA17); +BusOut myleds(PTB8,PTB9,PTB10,PTB11,PTE2,PTE3,PTE4,PTE5); +BusOut motor(PTA1,PTA2); +DigitalIn p(PTB2); + +int main() { + while(1) { + if(p==1){ + myleds=0xff; + motor=0x1; + lcd.printf("ON \n"); + } + else{ + myleds=0x00; + motor=0x0; + lcd.printf("OFF\n"); + } + } +}
diff -r 000000000000 -r 5571d9923fcf mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Apr 26 07:55:41 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f \ No newline at end of file