RGB LED (PWM)
Dependents: FRDM-KL46Z_SENSORDIG_HUMTEMP
RGBLed.h@0:627ea7b55fe3, 2019-05-31 (annotated)
- Committer:
- MayraPeA
- Date:
- Fri May 31 00:29:55 2019 +0000
- Revision:
- 0:627ea7b55fe3
Sensor de temperatura y humedad (DHT22)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MayraPeA | 0:627ea7b55fe3 | 1 | #include "mbed.h" |
MayraPeA | 0:627ea7b55fe3 | 2 | |
MayraPeA | 0:627ea7b55fe3 | 3 | class RGBLed |
MayraPeA | 0:627ea7b55fe3 | 4 | { |
MayraPeA | 0:627ea7b55fe3 | 5 | public: |
MayraPeA | 0:627ea7b55fe3 | 6 | RGBLed(PinName redpin, PinName greenpin, PinName bluepin); |
MayraPeA | 0:627ea7b55fe3 | 7 | void write(float red,float green, float blue); |
MayraPeA | 0:627ea7b55fe3 | 8 | |
MayraPeA | 0:627ea7b55fe3 | 9 | private: |
MayraPeA | 0:627ea7b55fe3 | 10 | PwmOut _redpin; |
MayraPeA | 0:627ea7b55fe3 | 11 | PwmOut _greenpin; |
MayraPeA | 0:627ea7b55fe3 | 12 | PwmOut _bluepin; |
MayraPeA | 0:627ea7b55fe3 | 13 | }; |