Toyoshi Yoshimoto / GP2Y0E03

Files at this revision

API Documentation at this revision

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