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

Committer:
boki96
Date:
Sun Feb 02 10:11:43 2020 +0000
Revision:
0:8a23399d0af4
RGB LED management library. The function inside the RGBLed object receives parameters that determine the intensity of each color in RGB (0.0 - 1.0).

Who changed what in which revision?

UserRevisionLine numberNew contents of line
boki96 0:8a23399d0af4 1 #ifndef RGB_H
boki96 0:8a23399d0af4 2 #define RGB_H
boki96 0:8a23399d0af4 3
boki96 0:8a23399d0af4 4 #include "mbed.h"
boki96 0:8a23399d0af4 5
boki96 0:8a23399d0af4 6 class RGBLed
boki96 0:8a23399d0af4 7 {
boki96 0:8a23399d0af4 8 public:
boki96 0:8a23399d0af4 9 RGBLed(PinName crvenaPin, PinName zelenaPin, PinName plavaPin);
boki96 0:8a23399d0af4 10 void prikaz(float crvena, float zelena, float plava);
boki96 0:8a23399d0af4 11 private:
boki96 0:8a23399d0af4 12 PwmOut _crvenaPin;
boki96 0:8a23399d0af4 13 PwmOut _zelenaPin;
boki96 0:8a23399d0af4 14 PwmOut _plavaPin;
boki96 0:8a23399d0af4 15 };
boki96 0:8a23399d0af4 16
boki96 0:8a23399d0af4 17 #endif