Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

Commit

Permalink
cleanup pixelinvaders firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
neophob committed Oct 22, 2013
1 parent 907cb3f commit b2a9584
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ void setup() {
Serial.flush();
Serial.setTimeout(20);

//first blink: init
digitalWrite(LED_PIN, HIGH);
delay(250);
digitalWrite(LED_PIN, LOW);
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* PixelInvaders serial-led-gateway v2.0, Copyright (C) 2011-2013 michael vogt <[email protected]>
* Tested on Teensy and Arduino.
*
* THIS FIRMWARE IS UNTESTED! please give me feedback if it works!
*
* ------------------------------------------------------------------------
*
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit b2a9584

Please sign in to comment.