hubmartin / esp8266_ws2812b_udp Goto Github PK
View Code? Open in Web Editor NEWLight effects over network with Processing and ESP8266
License: MIT License
Light effects over network with Processing and ESP8266
License: MIT License
Hi, I want to try this UDP LED control but I don't know what "Processing" is or where to find it. Can you elaborate of this PC application? Where can I get it? Thanks!
Hey @hubmartin , I used your project for my christmas tree using the ESP-01.
I've changed the dots animation a little bit.
Try it out, and let me know what you think!
void dotsDraw()
{
loadPixels();
for (int pixelCount = 0; pixelCount < width; pixelCount++)
{
float b = blue(pixels[pixelCount]);
float r = red(pixels[pixelCount]);
float g = green(pixels[pixelCount]);
b -= b * 0.001;
r -= r * 0.001;
g -= g * 0.001;
pixels[pixelCount] = color(r,g,b);
}
int gSize = (int)random(2,10);
int canDraw = (int)random(0,5);
if((canDraw & 1) == 1)
{
int r = (int)random(0,width);
color c = color((int)random(0,255),(int)random(0,255),(int)random(0,255));
for(int i = r - gSize; i < r + gSize; i++)
{
if(i >= 0 && i < width)
{
//color c = color(255,210,20);
//color c = color(100,227,127);
color b = pixels[i]; //color(0,0,0);
//color b = color(0,255,0);
pixels[i] = lerpColor(c, b, map(abs(i - r), 0, gSize, 0, 1));
}
}
}
updatePixels();
for(int x = 0; x < width; x++)
{
stroke(pixels[x]);
line(x,1,x,height);
}
}
I'm attempting to run your code on Processing 3.3.7, I'm using the latest version of the libraries you included that I could find but I'm not able to get passed this error. The full error text is:
java.lang.RuntimeException: Waited 5000ms for: <6e53978c, 60947436>[count 2, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>] - <main-FPSAWTAnimator#00-Timer0-FPSAWTAnimator#00-Timer1> at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:410) at java.lang.Thread.run(Thread.java:748)
I assume its an error with opengl since they made updates to how P2D works, but I can't seem to find any solutions online.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.