Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Commit

Permalink
version 1.0 improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerTimoJ committed Nov 28, 2018
1 parent 653bd84 commit 8216588
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 50 deletions.
Binary file modified LED Matrix Control 2/.vs/LED Matrix Control 2/v15/.suo
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
54 changes: 8 additions & 46 deletions LMCS Arduino/LEDMatrixSerial/LEDMatrixSerial.ino
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#include "FastLED.h"

// How many leds in your matrix?
#define NUM_LEDS 512
//You must include a reference to the FastLED library to use this code. http://fastled.io/

int width = 32;
int height = 16;
const int width = 32;
const int height = 16;
const int DATA_PIN = 3;


const int NUM_LEDS = width * height;
int drawIndex = 0;
int x;
int y;
Expand All @@ -14,42 +16,12 @@ char drawIn[5];
char frameIn[NUM_LEDS * 3];


// For led chips like Neopixels, which have a data line, ground, and power, you just
// need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock,
// ground, and power), like the LPD8806 define both DATA_PIN and CLOCK_PIN
#define DATA_PIN 3

// Define the array of leds
CRGB leds[NUM_LEDS];

void setup() {
// Uncomment/edit one of the following lines for your leds arrangement.
// FastLED.addLeds<TM1803, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<TM1804, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<TM1809, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<WS2812, DATA_PIN, RGB>(leds, NUM_LEDS);

FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);
// FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
// FastLED.addLeds<APA104, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<UCS1903, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<UCS1903B, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<GW6205, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<GW6205_400, DATA_PIN, RGB>(leds, NUM_LEDS);

// FastLED.addLeds<WS2801, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<SM16716, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<LPD8806, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<P9813, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<APA102, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<DOTSTAR, RGB>(leds, NUM_LEDS);

// FastLED.addLeds<WS2801, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<SM16716, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<LPD8806, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<P9813, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<APA102, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<DOTSTAR, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);

for (int i = 0; i < NUM_LEDS; i++)
{
Expand All @@ -60,9 +32,7 @@ void setup() {
Serial.begin(1000000);
}

void loop() {

}
void loop() {}

void serialEvent() {
pixelType = Serial.read();
Expand All @@ -81,7 +51,6 @@ void serialEvent() {

break;


case 1:

//clear mode
Expand All @@ -99,13 +68,6 @@ void serialEvent() {
Serial.readBytes((char*)leds, NUM_LEDS * 3);
FastLED.show();
break;

case 3:

int brightnessLED = Serial.read();
FastLED.setBrightness(brightnessLED);
FastLED.show();
break;
}
Serial.write(16);
}
8 changes: 8 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
# LMCS2
LED Matrix Control Software 2

Setup

1. configure the arduino sketch to match your matrix setup.
2. upload the arduino sketch.
3. load the software and set the width and height.
4. create a new pixel order and save it.
5. connect to the arduino.

0 comments on commit 8216588

Please sign in to comment.