From b2a95840c9c9f57628fd8ce6c586838cc2044e1b Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 22 Oct 2013 18:16:16 +0200 Subject: [PATCH] cleanup pixelinvaders firmware --- .../pixelinvaders/neoLedLPD6803Spi/neoLedLPD6803Spi.ino | 7 +++++++ .../pixelinvaders/neoLedWS2801Spi/neoLedWS2801Spi.ino | 4 +--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/integration/ArduinoFw/pixelinvaders/neoLedLPD6803Spi/neoLedLPD6803Spi.ino b/integration/ArduinoFw/pixelinvaders/neoLedLPD6803Spi/neoLedLPD6803Spi.ino index d0e70db3..5fbadd45 100644 --- a/integration/ArduinoFw/pixelinvaders/neoLedLPD6803Spi/neoLedLPD6803Spi.ino +++ b/integration/ArduinoFw/pixelinvaders/neoLedLPD6803Spi/neoLedLPD6803Spi.ino @@ -108,6 +108,7 @@ void setup() { Serial.flush(); Serial.setTimeout(20); + //first blink: init digitalWrite(LED_PIN, HIGH); delay(250); digitalWrite(LED_PIN, LOW); @@ -135,6 +136,12 @@ void setup() { rainbow(); // display some colors serialDataRecv = 0; //no serial data received yet + + //second blink: init done + delay(250); + digitalWrite(LED_PIN, HIGH); + delay(250); + digitalWrite(LED_PIN, LOW); } uint8_t dataFrame; diff --git a/integration/ArduinoFw/pixelinvaders/neoLedWS2801Spi/neoLedWS2801Spi.ino b/integration/ArduinoFw/pixelinvaders/neoLedWS2801Spi/neoLedWS2801Spi.ino index 8f78be6f..ebb37b03 100644 --- a/integration/ArduinoFw/pixelinvaders/neoLedWS2801Spi/neoLedWS2801Spi.ino +++ b/integration/ArduinoFw/pixelinvaders/neoLedWS2801Spi/neoLedWS2801Spi.ino @@ -2,7 +2,6 @@ * PixelInvaders serial-led-gateway v2.0, Copyright (C) 2011-2013 michael vogt * Tested on Teensy and Arduino. * - * THIS FIRMWARE IS UNTESTED! please give me feedback if it works! * * ------------------------------------------------------------------------ * @@ -190,8 +189,7 @@ void updatePixels() { for (uint8_t i=0; i < nrOfPixels; i++) { uint32_t color = convert15bitTo24bit(packetBuffer[ofs]<<8 | packetBuffer[ofs+1]); - leds[ledOffset++] = CRGB(color); -// leds[ledOffset++] = color; + leds[ledOffset++] = CRGB(color); ofs+=2; }