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

lib/StatusLed.h

Committer:
sillevl
Date:
2016-01-20
Revision:
12:4cb092df6958
Parent:
0:9f02ae958e20

File content as of revision 12:4cb092df6958:

#pragma once

#include "Color.h"
#include "mbed.h"

class StatusLed{
    public:
    StatusLed(PinName r_pin, PinName g_pin, PinName b_pin);
    
    void setColor(Color* color);
    void setColor(int color);
    void off();
    
    private:
    DigitalOut r_out;
    DigitalOut g_out;
    DigitalOut b_out;
};