Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Fast2Dev/Fast2Dev.ino')
-rw-r--r--examples/Fast2Dev/Fast2Dev.ino28
1 files changed, 14 insertions, 14 deletions
diff --git a/examples/Fast2Dev/Fast2Dev.ino b/examples/Fast2Dev/Fast2Dev.ino
index fe382c35..580d67a6 100644
--- a/examples/Fast2Dev/Fast2Dev.ino
+++ b/examples/Fast2Dev/Fast2Dev.ino
@@ -38,14 +38,14 @@ struct CRGB leds[NUM_LEDS];
// Hardware SPI - .652ms for an 86 led frame @8Mhz (3.1Mbps?), .913ms @4Mhz 1.434ms @2Mhz
// Hardware SPIr2 - .539ms @8Mhz, .799 @4Mhz, 1.315ms @2Mhz
// With the wait ordering reversed, .520ms at 8Mhz, .779ms @4Mhz, 1.3ms @2Mhz
-// LPD8806Controller<11, 13, 10> LED;
+LPD8806Controller<11, 13, 10> LED;
// LPD8806Controller<2, 1, 0> LED; // teensy pins
// Same Port, non-hardware SPI - 1.2ms for an 86 led frame, 1.12ms with large switch
// r2 - .939ms without large switch .823ms with large switch
// r3 - .824ms removing 0 balancing nop, .823 with large switch removing balancing
//LPD8806Controller<12, 13, 10> LED;
-LPD8806Controller<14, 1, 10> LED; // teensy pins
+// LPD8806Controller<14, 1, 10> LED; // teensy pins
// Different Port, non-hardware SPI - 1.47ms for an 86 led frame
// Different PortR2, non-hardware SPI - 1.07ms for an 86 led frame
@@ -54,7 +54,7 @@ LPD8806Controller<14, 1, 10> LED; // teensy pins
// Hardware SPI - .652ms for an 86 led frame @8Mhz (3.1Mbps?), .913ms @4Mhz 1.434ms @2Mhz
// With the wait ordering reversed, .520ms at 8Mhz, .779ms @4Mhz, 1.3ms @2Mhz
-// WS2801Controller<11, 13, 10> LED;
+// WS2801Controller<11, 13, 10, 0> LED;
// Same Port, non-hardware SPI - 1.2ms for an 86 led frame, 1.12ms with large switch
// WS2801Controller<12, 13, 10> LED;
@@ -64,7 +64,7 @@ LPD8806Controller<14, 1, 10> LED; // teensy pins
// TM1809Controller800Mhz<6> LED;
// UCS1903Controller400Mhz<7> LED;
-// WS2811Controller800Mhz<8> LED;
+// WS2811Controller800Mhz<6> LED;
// TM1803Controller400Mhz<5> LED;
// struct aLED { void init() { FastSPI_LED.setLeds(NUM_LEDS, (unsigned char*)leds); FastSPI_LED.setPin(8); FastSPI_LED.setChipset(CFastSPI_LED::SPI_LPD8806); FastSPI_LED.init(); FastSPI_LED.start();}; void showRGB(byte *, int) { FastSPI_LED.show();} } LED;
@@ -125,14 +125,14 @@ void loop() {
delay(20);
}
}
- // for(int i = 0; i < 64; i++) {
- // memset(leds, i, NUM_LEDS * 3);
- // LED.showRGB((byte*)leds, NUM_LEDS);;
- // delay(20);
- // }
- // for(int i = 64; i >= 0; i--) {
- // memset(leds, i, NUM_LEDS * 3);
- // LED.showRGB((byte*)leds, NUM_LEDS);;
- // delay(20);
- // }
+ for(int i = 0; i < 64; i++) {
+ memset(leds, i, NUM_LEDS * 3);
+ LED.showRGB((byte*)leds, NUM_LEDS);;
+ delay(20);
+ }
+ for(int i = 64; i >= 0; i--) {
+ memset(leds, i, NUM_LEDS * 3);
+ LED.showRGB((byte*)leds, NUM_LEDS);;
+ delay(20);
+ }
} \ No newline at end of file