JIAWEI ZHANG / Mbed 2 deprecated ele350ku

Dependencies:   mbed

Dependents:   Exercise8_1-2-3

Fork of ele350 by JIAWEI ZHANG

Revision:
52:c245d9c98de3
Parent:
51:8bc1d7ffd3da
Child:
53:bbff5bff8b53
--- a/sine_app.cpp	Fri Dec 18 13:59:27 2015 +0000
+++ b/sine_app.cpp	Fri Dec 18 14:00:56 2015 +0000
@@ -19,7 +19,7 @@
 
 void SineApp::run()
 {
-   this->analogOut->write(this->amplitude/3.0f*0.5f*(1.0f+sin(this->frequence*6.28f*timer.read()))+1.0f);
+   this->analogOut->write(this->amplitude/3.0f*0.5f*(1.0f+sin(this->frequence*6.28f*timer.read()))+0.1f);
    
    if ( this->frequence > 50.0f ) {
    this->analogOut->write(0);