33
Dependencies: DISCO_L475VG_IOT01A_wifi
Diff: LEDcontrol.cpp
- Revision:
- 2:a460007a35c7
- Parent:
- 1:98939393d0db
- Child:
- 3:32b328935a54
--- a/LEDcontrol.cpp Tue Aug 20 10:45:16 2019 +0000 +++ b/LEDcontrol.cpp Wed Aug 21 07:25:27 2019 +0000 @@ -1,6 +1,11 @@ #include "mbed.h" #include "init_pin.h" +PwmOut pwmRed(D0); +PwmOut pwmGreen(D1); +PwmOut pwmBlue(D2); + +AnalogIn CDS(A0); float const variation = 0.00392; float red_value;