Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem max32630fthr USBDevice
Revision 4:06115dc377f7, committed 2019-07-29
- Comitter:
- Lugs
- Date:
- Mon Jul 29 01:08:41 2019 +0000
- Parent:
- 3:3a4d2d10e298
- Commit message:
- presentation version
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;