Sharp IR Sensor GP2Y0E03 Example on mbed OS with Sync and Async I2C API
$ yt target st-nucleo-f401re-gcc
$ yt install
Edit ASYNC
definition in app.cpp.
#define ASYNC 1
The value 1
for enabling asynchronous API and 0
for enabling synchronous API.
ASYNC
is 1
by default.
Change I2C_DISTANCE_ADDRESS
definition in gp2y0e03.hpp.
Set 115200 bps in order to connect to the USB serial port. The baud rate is set in config.json file.
- 1.0.1
- Add .gitignore
- Update README text
- 1.0.0
- Initial Release