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: mbed mbed-rtos 4DGL-uLCD-SE FFT PinDetect MAX4466
main.cpp@0:fc5acbf5061c, 2015-10-23 (annotated)
- Committer:
- mgolino
- Date:
- Fri Oct 23 18:37:46 2015 +0000
- Revision:
- 0:fc5acbf5061c
- Child:
- 2:86aa2287412d
MAX4466 Hello World
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mgolino | 0:fc5acbf5061c | 1 | #include "mbed.h" |
mgolino | 0:fc5acbf5061c | 2 | #include "MAX4466.h" |
mgolino | 0:fc5acbf5061c | 3 | Serial pc (USBTX, USBRX); |
mgolino | 0:fc5acbf5061c | 4 | |
mgolino | 0:fc5acbf5061c | 5 | |
mgolino | 0:fc5acbf5061c | 6 | MAX4466 mic(p20); |
mgolino | 0:fc5acbf5061c | 7 | |
mgolino | 0:fc5acbf5061c | 8 | int main() |
mgolino | 0:fc5acbf5061c | 9 | { |
mgolino | 0:fc5acbf5061c | 10 | while (1) { |
mgolino | 0:fc5acbf5061c | 11 | mic.volume_indicator(); |
mgolino | 0:fc5acbf5061c | 12 | pc.printf("\n\r Level is %f", mic.sound_level()); |
mgolino | 0:fc5acbf5061c | 13 | } |
mgolino | 0:fc5acbf5061c | 14 | } |