JIAWEI ZHANG / Mbed 2 deprecated ele350ku

Dependencies:   mbed

Dependents:   Exercise8_1-2-3

Fork of ele350 by JIAWEI ZHANG

Revision:
31:6f781b2ebde6
Parent:
30:93b353d3b680
Child:
34:498a218cf53e
--- a/constant_app.cpp	Wed Dec 16 10:56:25 2015 +0000
+++ b/constant_app.cpp	Wed Dec 16 12:40:50 2015 +0000
@@ -7,17 +7,14 @@
 void ConstantApp::start()
 {
     App::start();
-    this->analogOut->write(0);
+    this->analogOut->write(2.0/3.0);
     this->timer.start(); 
 
 }
 
 void ConstantApp::run()
 {
-   this->analogOut->write(1000* this->timer.read());
    
-   if (this->timer.read()>2.0f){
-       this->timer.reset();}
 }
 
 void ConstantApp::stop()