Shotaro Senzaki / Mbed 2 deprecated versio_manage

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
ShotaroSenzaki
Date:
Wed Mar 23 12:10:10 2016 +0000
Parent:
17:4103f725fbcc
Parent:
16:42089f1026e0
Child:
19:22c05f882b8a
Commit message:
merged

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
main.cpp.orig Show diff for this revision Revisions of this file
--- a/main.cpp.orig	Wed Mar 23 12:06:42 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-#include "mbed.h"
-
-PwmOut mypwm(PWM_OUT);
-
-DigitalOut myled(LED1);
-DigitalOut myled2(LED2);
-
-int main() {
-    
-    mypwm.period_ms(10);
-    mypwm.pulsewidth_ms(1);
-  
-    printf("pwm set to %.2f %%\n", mypwm.read() * 100);
-    printf("add");
-    
-    while(1) {
-        myled = !myled;
-        wait(1);
-        wait(3);
-    }
-}