Onishi Itsuki / Mbed 2 deprecated mbed_PWM_control

Dependencies:   mbed

Revision:
3:e877a237c329
Parent:
2:3c335fcdd7f4
Child:
4:9c39770e13e6
--- a/main.cpp	Thu Jul 16 05:44:13 2020 +0000
+++ b/main.cpp	Thu Jul 16 05:59:32 2020 +0000
@@ -161,7 +161,7 @@
     init_state();
     wait(1);
     pc.printf("+");
-    ticker.attach_us(PWM_processor, 500.0f/128.0f);
+    ticker.attach_us(PWM_processor, 500.0f/39.0f);
     pc.printf("+");
 
     while(1) {
@@ -172,10 +172,10 @@
 //        }
 
 //      code for test
-        if(test_count%100000 == 0) {
-            pc.printf("+");
-            test_count = 1;
-        }
+//        if(test_count%1 == 0) {
+        pc.printf("+");
+//            test_count = 0;
+//        }
 //      end of code for test
 
     }