RGB LED (PWM)
Dependents: FRDM-KL46Z_SENSORDIG_HUMTEMP
RGBLed.h
- Committer:
- MayraPeA
- Date:
- 2019-05-31
- Revision:
- 0:627ea7b55fe3
File content as of revision 0:627ea7b55fe3:
#include "mbed.h" 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; };