when ur adding the teensy on jinx's ad/edit device, what device type are u useing? tpm2?
Hi I am using the teensy with octo trying to use Jinx or Glediator. It appears we are missing some software so the teensy can interpret the data from Jinx or Glediator then put it to the leds... is that correct or what else am I missing?
Thanks
// MultipleStripsInOneArray - see https://github.com/FastLED/FastLED/wiki/Multiple-Controller-Examples for more info on
// using multiple controllers. In this example, we're going to set up four NEOPIXEL strips on three
// different pins, each strip will be referring to a different part of the single led array
#include "FastLED.h"
#define NUM_STRIPS 3
#define NUM_LEDS_PER_STRIP 60
#define NUM_LEDS NUM_LEDS_PER_STRIP * NUM_STRIPS
CRGB leds[NUM_STRIPS * NUM_LEDS_PER_STRIP];
// For mirroring strips, all the "special" stuff happens just in setup. We
// just addLeds multiple times, once for each strip
void setup() {
// tell FastLED there's 60 NEOPIXEL leds on pin 10, starting at index 0 in the led array
FastLED.addLeds<NEOPIXEL, 10>(leds, 0, NUM_LEDS_PER_STRIP);
// tell FastLED there's 60 NEOPIXEL leds on pin 11, starting at index 60 in the led array
FastLED.addLeds<NEOPIXEL, 11>(leds, NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP);
// tell FastLED there's 60 NEOPIXEL leds on pin 12, starting at index 120 in the led array
FastLED.addLeds<NEOPIXEL, 12>(leds, 2 * NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP);
}
void loop() {
for(int i = 0; i < NUM_LEDS; i++) {
leds[i] = CRGB::Red;
FastLED.show();
leds[i] = CRGB::Black;
delay(100);
}
}
/*
Required Connections
--------------------
pin 2: LED Strip #1 OctoWS2811 drives 8 LED Strips.
pin 14: LED strip #2 All 8 are the same length.
pin 7: LED strip #3
pin 8: LED strip #4 A 100 ohm resistor should used
pin 6: LED strip #5 between each Teensy pin and the
pin 20: LED strip #6 wire to the LED strip, to minimize
pin 21: LED strip #7 high frequency ringining & noise.
pin 5: LED strip #8
pin 15 & 16 - Connect together, but do not use
pin 4 - Do not use
pin 3 - Do not use as PWM. Normal use is ok.
*/
#include <OctoWS2811.h>
const int ledsPerStrip = 60;
DMAMEM int displayMemory[ledsPerStrip*6];
int drawingMemory[ledsPerStrip*6];
const int config = WS2811_GRB | WS2811_800kHz;
OctoWS2811 leds(ledsPerStrip, displayMemory, drawingMemory, config);
void setup() {
Serial.begin(115200);
int serialGlediator() {
while (!Serial.available()) {}//check this
return Serial.read(); //and this - not sure
leds.begin();
leds.show();
}
void loop() {
while (serialGlediator() != 1) {}
for (int i=0; i < NUM_LEDS; i++) {
/*you need to process the incoming data here. I cant test this at the moment, but you have to take the data coming in on the serial and set it to the led number. I guess that Glediator has a byte or int for each colour RGB, so you would need to have a it set some how
*/
int /*or byte?*/ r = serialGlediator();
int g = serialGlediator();
int b = serialGlediator();
leds.setPixel(i, ((r << 16) + (g << 8) + b);
/* but this may be wrong as my bit shift maths is terrible and would need a bit shift to get them into the right
*/
leds.show();
}
Does this relate to the sketch i posted in post #39? That sketch was just a guess, a mock-up for you to be getting on with, and probably have a few bits of code missing (such as declaring NUM_LEDS? i think). If all of the led strips work, with the right colours but just the wrong order, you probably need to double check the options in Glediator (which I have not used) or build an index reference which can be used to swap the data into the right order, or do a bit of maths to sort the incoming data to the right place. If you have all the led data coming through (all leds light with the right colour, but in the wrong order) you might want to use a reference array - see this post #2 here https://forum.pjrc.com/threads/2686...2811-ws2812b-pixel-panels?highlight=glediatorHi thanks very much. I tried it and it works... the diamond pattern and others work but when I use text rows 1,3 and 5 go the opposite to rows 2,4 and 6. I tried many different settings in the glediator but nothing helps. When I set it to vertical instead of horizontal the words come out right but there are now 2 rows in stead of 1 row of the same text... any thoughts?
Garnet