JIAWEI ZHANG / Mbed 2 deprecated ele350ku

Dependencies:   mbed

Dependents:   Exercise8_1-2-3

Fork of ele350 by JIAWEI ZHANG

Revision:
56:49640c23b101
Parent:
55:2260345179e1
Child:
57:53e6a0e9825c
--- a/sine_app.cpp	Fri Dec 18 16:28:10 2015 +0000
+++ b/sine_app.cpp	Fri Dec 18 16:30:49 2015 +0000
@@ -21,7 +21,7 @@
 
 void SineApp::run()                                                                   //(Overriden) Method that is called repeatedly when the app starts.//
 {
-   this->analogOut->write(this->amplitude/3.0f*0.5f*(1.2f+sin(this->frequence*6.28f*timer.read())));  //Set the output to the sin expression.// 
+   this->analogOut->write(this->amplitude/3.0f*0.5f*(1.0f+sin(this->frequence*6.28f*timer.read())));  //Set the output to the sin expression.// 
    
    if ( this->frequence > 50.0f ) {                                                   //Define the max frequence value and check it.//
    this->analogOut->write(0);                                                         //If >max value, output 0.//