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.
Revision 1:4b06b62aca28, committed 2020-10-26
- Comitter:
- jm6wud
- Date:
- Mon Oct 26 12:30:57 2020 +0000
- Parent:
- 0:9ad6f730f411
- Commit message:
- jm6wud
Changed in this revision
| GP2Y0E03.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/GP2Y0E03.h Wed Oct 21 12:55:00 2020 +0000
+++ b/GP2Y0E03.h Mon Oct 26 12:30:57 2020 +0000
@@ -1,7 +1,8 @@
#ifndef GP2Y0E03_H
#define GP2Y0E03_H
-#include "mbed.h"
+#include <mbed.h>
+#include <I2C.h>
#define DMS_ADDR (0x80)
#define DMS_DIST (0x5E)
@@ -24,3 +25,4 @@
int readData(char regadr, char* dat);
int readDistance(int* dist);
};
+#endif // GP2Y0E03_H
\ No newline at end of file