Created
July 16, 2020 11:51
-
-
Save cluelessperson/6ca4e1ae249ba8282e043c895574079a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "rgb_controller_mode.h" | |
#include "rgb_controller_mode_straight.h" | |
#include "FastLED.h" | |
RGBControllerModeStraight::RGBControllerModeStraight(RGBController* controller, uint8_t r, uint8_t g, uint8_t b) { | |
RGBControllerMode::RGBControllerMode(&controller); | |
_color = CRGB(r, g, b); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef RGB_CONTROLLER_MODE_STRAIGHT_H | |
#define RGB_CONTROLLER_MODE_STRAIGHT_H | |
#include "rgb_controller_mode.h" | |
#include "rgb_controller/rgb_controller.h" | |
#include "FastLED.h" | |
class RGBControllerModeStraight: public RGBControllerMode { | |
private: | |
CRGB _color = CRGB(0,0,0); | |
public: | |
const char* name = "Straight"; | |
RGBControllerModeStraight(RGBController* controller, uint8_t r, uint8_t g, uint8_t b); | |
}; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment