For Nabeel

Dependencies:   mbed mbed-http ESP8266

RGBLED.h

Committer:
sekefors
Date:
2022-03-26
Revision:
12:2c3550f16e6d

File content as of revision 12:2c3550f16e6d:

#ifndef MBED_RGBLED_H
#define MBED_RGBLED_H

#include "mbed.h"

//Class to control an RGB LED using three PWM pins

class RGBLed
{
public:
    RGBLed(PinName redpin, PinName greenpin, PinName bluepin);
    void write(float red,float green, float blue);
private:
    PwmOut _redpin;
    PwmOut _greenpin;
    PwmOut _bluepin;
};
 


#endif