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:01dccff562c7, committed 2016-04-25
- Comitter:
- namazunlv100
- Date:
- Mon Apr 25 10:06:49 2016 +0000
- Commit message:
- ??????????????????????
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Mon Apr 25 10:06:49 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/TextLCD/#308d188a2d3a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Apr 25 10:06:49 2016 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "TextLCD.h"
+
+DigitalIn p(PTB2);
+BusOut myled(PTB8,PTB9,PTB10,PTB11,PTE2,PTE3,PTE4,PTE5);
+BusOut moter(PTA1,PTA2);
+PwmOut pwm(PTD4);
+TextLCD lcd(PTC12,PTC13,PTC16,PTC17,PTA16,PTA17);
+
+int main() {
+ while(1) {
+ if(p==1){
+ lcd.printf("yes\n");
+ pwm=1.0f;
+ moter=2;
+ myled=0xff;
+ }
+ else{
+ lcd.printf("no\n");
+ pwm=1.0f;
+ moter=0;
+ myled=0x00;
+ }
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Apr 25 10:06:49 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f \ No newline at end of file