JIAWEI ZHANG / Mbed 2 deprecated ele350ku

Dependencies:   mbed

Dependents:   Exercise8_1-2-3

Fork of ele350 by JIAWEI ZHANG

Revision:
36:a9f4a3409c89
Parent:
35:6855566cc941
Child:
37:83b729ea17d4
diff -r 6855566cc941 -r a9f4a3409c89 square_app.cpp
--- a/square_app.cpp	Thu Dec 17 12:50:49 2015 +0000
+++ b/square_app.cpp	Thu Dec 17 13:40:16 2015 +0000
@@ -2,13 +2,13 @@
 
 SquareApp::SquareApp(Serial* serial) : App("Square wave", serial) {
     this->analogOut = new AnalogOut (PA_4);
-    this->amplitude = 20.0f;
+    this->amplitude = 3.0f;
 }
 
 void SquareApp::start()
 {
     App::start();
-    this->analogOut->write(this->amplitude/20.0f);
+    this->analogOut->write(this->amplitude/3.0f);
     this->timer.start(); 
 
 }