4180 LabTeam - Spring '18 / Mbed 2 deprecated Lab1_Part9

Dependencies:   mbed

Fork of Lab1_Part9 by Barry Johnson-Smith

Files at this revision

API Documentation at this revision

Comitter:
bjs9
Date:
Wed Jan 31 18:21:06 2018 +0000
Parent:
2:29ca1063cbc3
Child:
4:e4aed7bf3e21
Commit message:
change in code

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Jan 31 18:17:41 2018 +0000
+++ b/main.cpp	Wed Jan 31 18:21:06 2018 +0000
@@ -13,7 +13,7 @@
     const double pi = 3.141592653589793238462;
     while (1) {
         for(int i= 0; i < 20; i++ ){
-        aout = sin(100 *pi  * i/20);
+        aout = sin(2 *pi  * i/20);
         //printf("aout = %1.2f volts\n",aout.read());
         }
     }