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

Dependents:   m3Dpi-helloworld

Committer:
sillevl
Date:
Wed Jan 20 17:54:16 2016 +0000
Revision:
12:4cb092df6958
Parent:
0:9f02ae958e20
update library to forked project

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sillevl 0:9f02ae958e20 1 #pragma once
sillevl 0:9f02ae958e20 2
sillevl 0:9f02ae958e20 3 #include "Color.h"
sillevl 0:9f02ae958e20 4 #include "mbed.h"
sillevl 0:9f02ae958e20 5
sillevl 0:9f02ae958e20 6 class StatusLed{
sillevl 0:9f02ae958e20 7 public:
sillevl 0:9f02ae958e20 8 StatusLed(PinName r_pin, PinName g_pin, PinName b_pin);
sillevl 0:9f02ae958e20 9
sillevl 0:9f02ae958e20 10 void setColor(Color* color);
sillevl 0:9f02ae958e20 11 void setColor(int color);
sillevl 0:9f02ae958e20 12 void off();
sillevl 0:9f02ae958e20 13
sillevl 0:9f02ae958e20 14 private:
sillevl 0:9f02ae958e20 15 DigitalOut r_out;
sillevl 0:9f02ae958e20 16 DigitalOut g_out;
sillevl 0:9f02ae958e20 17 DigitalOut b_out;
sillevl 0:9f02ae958e20 18 };