not working

This commit is contained in:
Andrew Melvin
2015-08-27 07:30:16 +01:00
parent e620850707
commit cf00e8a41b
4 changed files with 55 additions and 19 deletions
+15 -2
View File
@@ -1,8 +1,8 @@
#include <NeoPixelBus.h>
#define pixelCount 4
#define pixelCount 300
NeoPixelBus strip = NeoPixelBus(pixelCount, 8);
NeoPixelBus strip = NeoPixelBus(pixelCount, 2);
uint16_t effectState = 0;
@@ -13,6 +13,7 @@ void setup()
SetRandomSeed();
}
uint32_t update_strip_time;
void loop()
{
@@ -33,6 +34,18 @@ void loop()
strip.Show();
delay(31); // ~30hz change cycle
}
if ( (millis() - update_strip_time > 30) ) {
strip.UpdateAnimations();
strip.Show(); // takes 6ms with 200, take 12ms with 400 ----> so 100 takes 3ms.
// one LED takes 30uS of nointeruppts, 100 takes 3ms.
update_strip_time = millis();
}
strip.FillUart();
}