Giter Club home page Giter Club logo

octows2811's Introduction

octows2811's People

Contributors

ivankravets avatar lukka avatar paulstoffregen avatar sgorsh avatar timethy96 avatar tjohanssonn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

octows2811's Issues

More than 1 Stripe || need fast help please

Description

I use the ArtNet Demo and only changed Ip and the leds_per_strip.
This works perfect.
But if i Change the numStripes to 2 nothing happen out of the inittest.

Hardware & Software

Teensy 3.2
W5500 Ethernet
WS2812

Arduino Sketch

Demo Sketch ArtnetOctoWS2811

Support for RGBW stripes

Nowadays, these RGBW stripes are very common and should be supported here.
So far I've seen the GRBW configuration only, so I think this one should be implemented at least.

Thank you, very much!

movie2sdcard compilation errors

Description

In new versions of Processing, myMovie is not being initialized. I believe this is because myMovie is initialized outside of setup().

I have a fix in place and would like to submit a pull request.

Steps To Reproduce Problem

/extras/VideoSDcard/Processing/movie2sdcard.pde will not compile with new versions of Processing(I'm on Windows 11).

  1. git checkout origin/master -- /extras/VideoSDcard/Processing/movie2sdcard.pde
  2. Update the paths for myMovie AND FileOutputStream
  3. Run

Hardware & Software

Board - Teensy 4.1
Shields / modules used - OctoWS2811
Processing version - v4.3
Teensyduino version - v1.58.1
Operating system & version
- Windows 11 Home
- Version: 22H2
- OS Build: 22621.2715
Any other software or hardware? n/a

Processing Sketch

git checkout origin/master -- /extras/VideoSDcard/Processing/movie2sdcard.pde

Errors or Incorrect Output

Processing video library using bundled GStreamer 1.20.3
Scanning GStreamer plugins... Done.
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at processing.core.PApplet.runSketch(PApplet.java:10074)
	at processing.core.PApplet.main(PApplet.java:9845)
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
	at processing.core.PApplet.runSketch(PApplet.java:10068)
	... 1 more
Caused by: java.lang.NullPointerException: Cannot invoke "processing.core.PSurface.stopThread()" because "this.surface" is null
	at processing.core.PApplet.dispose(PApplet.java:3413)
	at processing.core.PApplet.die(PApplet.java:3329)
	at processing.core.PApplet.die(PApplet.java:3339)
	at processing.video.Movie.initGStreamer(Unknown Source)
	at processing.video.Movie.<init>(Unknown Source)
	at movie2sdcard.<init>(movie2sdcard.java:71)
	... 7 more
RuntimeException: java.lang.reflect.InvocationTargetException

WS2811_BRG

Why no WS2811_BRG or WS2811_BGR?
Took me a while to get example "BasicTest" to show correct colors untill I added BRG for my strip.

Also I don't understand case WS2811_GBR bitmask

case WS2811_GBR:
color = ((color<<8)&0xFFFF00) | ((color>>16)&0x0000FF);
break;

Am I missing something?

Teensy 4.0

Can you add support for Teensy 4.0 ?

When I try and compile your BasicTest example for Teensy 4.0 I get this error:

OctoWS2811.cpp:85:2: error: 'GPIOD_PCOR' was not declared in this scope

VideoSDcard not working

Hi guys,

I'm trying to test out the VideoSDcard file but it is not working. The program tells me that there are files detected and image frames can be found. But as soon as leds.show and leds.begin are shown the Teensy3.6 keeps restarting. Anyone got a solution for this problem?
One other question I have is how the library is being called in the file. I see no leds called (only begin and show)

Glediator example problem

Hello,

I am using Glediator example code and the LEDs on even lines are shifted by 2 pixels:

image

The text should be "olab.lt"

There is no problem when I use this code:

#include "FastLED.h"
#define NUM_LEDS 60*18
const int dataline = 2;

CRGB leds[NUM_LEDS];
void setup() {
        Serial.begin(115200); 
     LEDS.addLeds<WS2812B, dataline>(leds, NUM_LEDS);
}
int serialGlediator() {
  while (!Serial.available()) {}
  return Serial.read();
}
void loop() {
   while (serialGlediator() != 1) {} 

   for (int i=0; i < NUM_LEDS; i++) {
     leds[i].r = serialGlediator();
     leds[i].g = serialGlediator();
     leds[i].b = serialGlediator();
   }
     FastSPI_LED.show();
}

But this is working only for leds on data pin 2. I have 2 panels on 2 pins - 2 and 14.

How can I resolve this issue?

ERROR TO COMPILE FOR ARDUINO MEGA

Hi, someone can help me, i want to use this code to control by jinx led strip ws2811... but it's throws me "error to compile for arduino mega"

Thanks!!

PlatformIO directory problem

Hi!
I installed your lib via
platformio lib install 69

But I got a compile error not finding the lib.

The problem was, that the files were in the wrong directory.
In Windows7 they were in
%USER%\.platformio\lib\OctoWS2811_ID69\OctoWS2811
but they should be in
%USER%\.platformio\lib\OctoWS2811_ID69

Copied OctoWS2811.cpp and OctoWS2811.h into OctoWS2811_ID69 and now it works as expected.

Question about license

I'm considering create a derivate work of this with support for up to 15 strips (based on pull request 20 by ewust. Would that be okay? Would I need to do more than credit you for the original work?

In other words, is there any specific license that this project is under? Is it GPL, BSD, MIT or something else entirely?

Reduce/remove LED_HEIGHT multiple of 8 constrain

Hi. We are trying to use your library to drive a lot of WS2812B LEDs. Now we are running into performance issues because of the length and height of a section of our display.

We are using on the teensy your firmware VideoDisplay.ino and drive it from openFrameworks with a port of the movie2serial.pde code.

Is there any method to reduce the "LED_HEIGHT must be a multiple of 8 constrain" and maybe get it down to 3 strips in the height?

Any help or hint would be highly appreciated.

Question about usage of Pin 15, 16, 32 in latest commits

One of the more recent commits says it frees up pin 15, 16, but uses 32 instead (for teensy 3.1/3.2)

09fcded

I can't get the latest version of the library to work. pin 15+16 are connected together, but pin 32 is floating. Does it need to be tied to something?

Discussion: Support for RGBCCT

There exist strips that support RGB + CCT now which, as far as I can tell, simply add two bytes to the base WS2811 protocol.

Would adding support for these new controller ICs be as simple as taking the existing logic for RGBW strips and adding the extra byte for the additional white channel? I'm ordering a length of this strip to attempt this implementation and will report my findings.

Teensy 4 Incorrect Pins

I just bought an OCTOWS2811 adaptor for the Teensy 4.0 and the LEFT ethernet port is showing strange colors on 1st and 4th; orange and brown, respectively.

Is there something in OCTOWs2811.h I should change?

VideoSDcard no Play

Hello,

I am new to Processing and am having issues creating a useful file from the VideoSDcard program that you have linked. It seems that everything is indeed working, it does create a .bin file from the .mov that I am asking it to translate, but there doesn't seem to be any usable content in the .bin file when I am attempting to use the OctoWS2811 library to "play it" on an L.E.D. array I have created. The other OctoWS2811 sample code seems to work nicely on my array but the SD playback does not seem to be working at all.

Any help would be greatly appreciated.
Cheers,

question

I am seeing people fleeing from ws2811 to sk6812

does this library works with that chip , Adafruit says that they are technically the same thing?

Thx

Processing example quits without error message

While helping Alysia convert files for the Space Whale project, the Processing code would show the window briefly, then exit without any indication why it failed. Turned out it couldn't write the file, probably due to a permissions issue. But no error message prints, which makes troubleshooting much harder than it should be.

Also might have a compatibility issue with setting the window size on Processing version 3. Testing needed.

How are pixels set?

When the VideoDisplay sketch in the Teensy receives a frame of data, it puts it into the “drawingMemory” then shows the LEDs. How is that supposed to work? When does the data just sent get pushed onto the LEDs?

I am running one Teensy / octo and one data wire, btw so the frame sync stuff isn’t getting used.

if (startChar == '*') {
// receive a "master" frame - we send the frame sync to other boards
// the sender is controlling the video pace. The 16 bit number is
// how far into this frame to send the sync to other boards.
unsigned int startAt = micros();
unsigned int usecUntilFrameSync = 0;
int count = Serial.readBytes((char *)&usecUntilFrameSync, 2);
if (count != 2) return;
count = Serial.readBytes((char *)drawingMemory, sizeof(drawingMemory));

if (count == sizeof(drawingMemory)) { //<<<< So we have the image date from Processing sketch

// image data is in the "drawingMemory" buffer

unsigned int endAt = micros();
unsigned int usToWaitBeforeSyncOutput = 100;
if (endAt - startAt < usecUntilFrameSync) {
usToWaitBeforeSyncOutput = usecUntilFrameSync - (endAt - startAt);
}
digitalWrite(12, HIGH);
pinMode(12, OUTPUT);
delayMicroseconds(usToWaitBeforeSyncOutput);
digitalWrite(12, LOW);
// WS2811 update begins immediately after falling edge of frame sync
digitalWrite(13, HIGH);

leds.show(); // <<<<< "Showing" the LEDs here doesn't seem to do anything!!

digitalWrite(13, LOW);
}

I am running Processing 3 on a mac under OS X 10.11.4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.