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.
main.cpp
00001 #include "mbed.h" 00002 #include "TextLCD.h" 00003 TextLCD lcd(PTC12,PTC13,PTC16,PTC17,PTA16,PTA17); 00004 BusOut myleds(PTB8,PTB9,PTB10,PTB11,PTE2,PTE3,PTE4,PTE5); 00005 BusOut motor(PTA1,PTA2); 00006 DigitalIn p(PTB2); 00007 00008 int main() { 00009 while(1) { 00010 if(p==1){ 00011 myleds=0xff; 00012 motor=0x1; 00013 lcd.printf("ON \n"); 00014 } 00015 else{ 00016 myleds=0x00; 00017 motor=0x0; 00018 lcd.printf("OFF\n"); 00019 } 00020 } 00021 }
Generated on Wed Jul 20 2022 18:27:01 by
1.7.2