Skip to content

Instantly share code, notes, and snippets.

@cluelessperson
Created July 16, 2020 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cluelessperson/6ca4e1ae249ba8282e043c895574079a to your computer and use it in GitHub Desktop.
Save cluelessperson/6ca4e1ae249ba8282e043c895574079a to your computer and use it in GitHub Desktop.
#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);
};
#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