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: HC_SR04_Ultrasonic_Library mbed
Fork of Nucleo_UltrasonicHelloWorld by
Revision 2:1be6e9ba5793, committed 2015-03-05
- Comitter:
- VegardMidt
- Date:
- Thu Mar 05 09:03:51 2015 +0000
- Parent:
- 1:4a5586eb1765
- Commit message:
- Ultrasound;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Dec 04 08:04:55 2014 +0000
+++ b/main.cpp Thu Mar 05 09:03:51 2015 +0000
@@ -1,6 +1,15 @@
#include "mbed.h"
#include "ultrasonic.h"
+digitalIn Signal(D12);
+digitalIn Trig();
+digitalIn Echo();
+
+digitalOut Threshold(D13);
+digitalOut HVOff(D11);
+digitalOut Tx1(D10);
+digitalOut Tx2(D9);
+
void dist(int distance)
{
//put code here to happen when the distance is changed
--- a/mbed.bld Thu Dec 04 08:04:55 2014 +0000 +++ b/mbed.bld Thu Mar 05 09:03:51 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/9ad691361fac \ No newline at end of file
