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 QEI ros_lib_melodic
Diff: sensor/Sensor.h
- Revision:
- 2:c537f1ebad7b
- Parent:
- 1:d5adc483bce0
- Child:
- 4:cb50c6fa340b
--- a/sensor/Sensor.h Tue Oct 22 09:41:35 2019 +0000
+++ b/sensor/Sensor.h Tue Oct 22 10:05:12 2019 +0000
@@ -3,7 +3,7 @@
#include "mbed.h"
-#define DEFAULT_SENSOR_ADDRESS 0x29
+#define DEFAULT_DEVICE_ADDRESS 0x29
#define FAILURE_RESET -1
@@ -89,8 +89,19 @@
*/
int read();
+ /** Change I2C address
+ *
+ */
void changeAddress(char address);
+
+ /** Turn off the sensor
+ *
+ */
void turnOff();
+
+ /** Turn on the sensor
+ *
+ */
void turnOn();
private: