![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Refactoring Ironcup 2020
Dependencies: mbed mbed-rtos MotionSensor EthernetInterface
LED/LED.hpp
- Committer:
- starling
- Date:
- 2020-09-21
- Revision:
- 0:8f5db5085df7
File content as of revision 0:8f5db5085df7:
#ifndef __LED__ #define __LED__ #include "mbed.h" class LED { private: int RGB_LED_ON; //active Low int RGB_LED_OFF; //active Low int MAIN_RGB_LED_ON; //active HIGH int MAIN_RGB_LED_OFF; // Leds Objects DigitalOut red_led_main; DigitalOut green_led_main; DigitalOut blue_led_main; DigitalOut red_led_nxp; DigitalOut green_led_nxp; DigitalOut blue_led_nxp; public: enum{ BLACK, RED, GREEN, BLUE, WHITE, PURPLE, YELLOW, AQUA}; LED(PinName red_main, PinName green_main, PinName blue_main, PinName red_nxp, PinName green_nxp, PinName blue_nxp); void set_leds_color_nxp(int color); void turn_leds_off_nxp(); void set_leds_color_main(int color); void turn_leds_off_main(); }; #endif //__LED__