Library za upravljanje RGB LEDicom. Funkcija unutar objetkta RGBLed prima parametre koji određuju intenzitet pojedine boje u RGB (0.0 - 1.0).
Dependents: SUSTAV_KONTROLE_PRISTUPA
Diff: rgb.h
- Revision:
- 0:8a23399d0af4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rgb.h Sun Feb 02 10:11:43 2020 +0000 @@ -0,0 +1,17 @@ +#ifndef RGB_H +#define RGB_H + +#include "mbed.h" + +class RGBLed +{ + public: + RGBLed(PinName crvenaPin, PinName zelenaPin, PinName plavaPin); + void prikaz(float crvena, float zelena, float plava); + private: + PwmOut _crvenaPin; + PwmOut _zelenaPin; + PwmOut _plavaPin; +}; + +#endif \ No newline at end of file