library for m3Dpi robot, based on the Pololu 3pi and m3pi. m3Dpi has multiple distance sensors, gyroscope, compass and accelerometer sensor to be fully aware of its environment. With the addition of xbee or nrf24n01 module it has wireless communication capabilities.
Dependencies: m3pi ADXL345_I2C HMC5583L ITG3200 PCA9547 TLC59116 VL6180x RGB-fun xbee
Diff: M3Dpi.cpp
- Revision:
- 6:b60a3c005d3c
- Parent:
- 4:b2fe3a2545bf
--- a/M3Dpi.cpp Fri Dec 04 14:31:53 2015 +0000 +++ b/M3Dpi.cpp Mon Dec 07 09:30:37 2015 +0000 @@ -45,6 +45,11 @@ leds.setAll(colors); } +void M3Dpi::setLed(int index, int color) +{ + leds.setColor(index, color); +} + m3dpi::Distance M3Dpi::getDistance() { return distance.getAllDistance();