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.
Diff: include/SR04.h
- Revision:
- 6:9eb153e1d472
- Parent:
- 5:1afe17a20a5b
--- a/include/SR04.h Thu Aug 13 15:52:19 2015 +0000
+++ b/include/SR04.h Sat Aug 15 11:47:53 2015 +0000
@@ -3,6 +3,7 @@
DigitalOut pinTrigg(PC_10);
DigitalIn pinEcho(PC_12);
const char* distMsg = "Actual distance: %g \n\r";
+float actualDistance = 0;
float pulseIn(DigitalIn pin)
{
Timer durationTimer;