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 ADS1115 StepperMotor SRF05 TPA81new
Revision 20:1b0a265598c0, committed 2019-01-21
- Comitter:
- hisyamfs
- Date:
- Mon Jan 21 12:37:28 2019 +0000
- Parent:
- 19:9a7b34bedc6c
- Child:
- 21:bfb064f77f88
- Commit message:
- sound
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Jan 21 12:34:04 2019 +0000
+++ b/main.cpp Mon Jan 21 12:37:28 2019 +0000
@@ -24,11 +24,13 @@
Uvtron uv(PC_12);
// Sound
-//DigitalIn(PA_3);
+DigitalIn sound(PA_3);
int main()
{
//tpax.changeaddress(0xDC,0xDE);
+ while(sound.read()){}
+ pc.printf("Sound Detected\n");
while(1) {
pc.printf("%d", tpay.getTemp(0));
int i;