JIAWEI ZHANG / Mbed 2 deprecated ele350ku

Dependencies:   mbed

Dependents:   Exercise8_1-2-3

Fork of ele350 by JIAWEI ZHANG

Files at this revision

API Documentation at this revision

Comitter:
GGHHHH
Date:
Thu Dec 17 13:40:16 2015 +0000
Parent:
35:6855566cc941
Child:
37:83b729ea17d4
Commit message:
s

Changed in this revision

sine_app.cpp Show annotated file Show diff for this revision Revisions of this file
square_app.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/sine_app.cpp	Thu Dec 17 12:50:49 2015 +0000
+++ b/sine_app.cpp	Thu Dec 17 13:40:16 2015 +0000
@@ -2,13 +2,13 @@
 
 SineApp::SineApp(Serial* serial) : App("Sine wave", serial) {
     this->analogOut = new AnalogOut (PA_4);
-    this->amplitude = 20.0f;
+    this->amplitude = 3.0f;
 }
 
 void SineApp::start()
 {
     App::start();
-    this->analogOut->write(this->amplitude/20.0f);
+    this->analogOut->write(this->amplitude/3.0f);
     this->timer.start(); 
 
 }
@@ -30,4 +30,4 @@
 void SineApp::setamplitude(float newamplitude)
 {
     this->amplitude = newamplitude;
-}
\ No newline at end of file
+}
--- 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(); 
 
 }