Skip to content
Snippets Groups Projects
Commit def0d624 authored by Matthew's avatar Matthew
Browse files

remove default arguements from implementation

parent e5859c88
No related branches found
No related tags found
3 merge requests!4Joe merge,!3Doxygen Documentation,!2Docs
#include "LEDBehaviours.h"
NumLEDs::NumLEDs(Adafruit_NeoPixel* strip, String name = "NumLEDs", uint32_t color=0xFFFFFFFF) :
NumLEDs::NumLEDs(Adafruit_NeoPixel* strip, String name, uint32_t color) :
Behaviour(name), _strip(strip), _color(color)
{ }
......@@ -24,7 +24,7 @@ char * NumLEDs::args()
{
return "<int num_leds>";
};
BrightnessLEDs::BrightnessLEDs(Adafruit_NeoPixel* strip, String name = "BrightnessLEDs", uint32_t hue=0, uint32_t sat=0) :
BrightnessLEDs::BrightnessLEDs(Adafruit_NeoPixel* strip, String name, uint32_t hue, uint32_t sat) :
Behaviour(name), _strip(strip), _hue(hue), _sat(sat)
{ }
......@@ -38,7 +38,7 @@ String BrightnessLEDs::start(String args)
return "";
};
BreathingLEDs::BreathingLEDs(Adafruit_NeoPixel* strip, String name = "BreathingLEDs", uint32_t hue=0, uint32_t sat=0) :
BreathingLEDs::BreathingLEDs(Adafruit_NeoPixel* strip, String name, uint32_t hue, uint32_t sat) :
Behaviour(name), _strip(strip), _hue(hue * 255), _sat(sat)
{ }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment