For MAX32630FTHR Demo Board: Plays piano notes mapped to keyboard keys interfaced through serial port (puTTY or powershell).

Dependencies:   SDFileSystem max32630fthr USBDevice

Revision:
4:06115dc377f7
Parent:
3:3a4d2d10e298
diff -r 3a4d2d10e298 -r 06115dc377f7 main.cpp
--- a/main.cpp	Fri Jul 19 01:48:43 2019 +0000
+++ b/main.cpp	Mon Jul 29 01:08:41 2019 +0000
@@ -20,7 +20,7 @@
 DigitalIn Button(P2_3);
 
 MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3);
-PwmOut PWM(P5_6);
+PwmOut PWM(P4_0);
 AnalogIn POT(AIN_0);
 volatile int bufferPOS = 0;
 volatile unsigned int g=0;
@@ -69,7 +69,7 @@
         audioDataBuffer[i] =((1.0 + sin((double(i)/16.0*6.28318530717959)))/2.0); //formula copied from mbed example
     }
     
-    printf("Playing tone...\r\n");
+    printf("Ready for input.\r\n");
     
     int PlayingFreq = 440, attached = 0;