Coder Social home page Coder Social logo

esp8266_ws2812b_udp's People

Contributors

hubmartin avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

esp8266_ws2812b_udp's Issues

RuntimeException: Waited 5000ms for main-FPSAWTAnimator

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.

Addition of color dots

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);
  }
  
  
}

What is Processing

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!

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.