diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2014-02-13 09:42:00 +0400 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2014-02-13 09:42:00 +0400 |
commit | cb259bc471f9d5a2de54d2ebdd567e5b54c9b86a (patch) | |
tree | 889b932c9087f13a6ad8714344b4ec9ff485cc7f /FastLED.cpp | |
parent | 5c027944a5f04fba509167cba558c2af3975c36b (diff) |
Switch brightness over to CRGB as well
Diffstat (limited to 'FastLED.cpp')
-rw-r--r-- | FastLED.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/FastLED.cpp b/FastLED.cpp index 7d78a8b4..b5a6a9d7 100644 --- a/FastLED.cpp +++ b/FastLED.cpp @@ -14,7 +14,7 @@ uint32_t CRGB::Squant = ((uint32_t)((__TIME__[4]-'0') * 28))<<16 | ((__TIME__[6] CFastLED::CFastLED() { // clear out the array of led controllers m_nControllers = NUM_CONTROLLERS; - m_nScale = 255; + m_Scale = CRGB::White; memset8(m_Controllers, 0, m_nControllers * sizeof(CControllerInfo)); } @@ -47,7 +47,7 @@ CLEDController *CFastLED::addLeds(CLEDController *pLed, return NULL; } -void CFastLED::show(uint8_t scale) { +void CFastLED::show(CRGB scale) { for(int i = 0; i < m_nControllers; i++) { if(m_Controllers[i].pLedController != NULL) { m_Controllers[i].pLedController->show(m_Controllers[i].pLedData + m_Controllers[i].nOffset, @@ -58,7 +58,7 @@ void CFastLED::show(uint8_t scale) { } } -void CFastLED::showColor(const struct CRGB & color, uint8_t scale) { +void CFastLED::showColor(const struct CRGB & color, CRGB scale) { for(int i = 0; i < m_nControllers; i++) { if(m_Controllers[i].pLedController != NULL) { m_Controllers[i].pLedController->showColor(color, m_Controllers[i].nLeds, scale); @@ -84,3 +84,6 @@ void CFastLED::clearData() { } } } + +void CFastLED::delay(unsigned long ms) { +} |