Comments (2)
This library is updated to match the LXWiFiDMX library. However, this library is designed to work on ATmega328 processors which have far less memory than the ESP8266. That library has plenty of memory to support full merge of two streams into two universes. The Arduino Uno does not. This library does not support merging from separate network sources. In fact, there is not even an array of bytes for storing DMX values separate from that used for the incoming packet data.
from lxdmxethernet_library.
Thank you for having so quickly modified the library is really great. Can you help me please because I have a problem when you add a second Universe and poll reply library is not working properly test with neopixel library that is part of the code Please advise me exactly what wording should look like the code to work properly function poll reply thanks.
void loop() {
uint16_t r,g,b;
uint8_t i;
uint8_t read_result = Universe0->readDMXPacket(eUDP);
uint8_t read_result2 = 0;
// read a packet and if the packet is dmx, write its data to the pixels
if ( read_result ) {
for (int p=0; p<170; p++) {
// for each NeoPixel find the slot number (each takes 3 slots for RGB)
i = 3*p;
r = Universe0->getSlot(i+1); // Red
g = Universe0->getSlot(i+2); // Green
b = Universe0->getSlot(i+3); // Blue
// gamma correct
r = (r*r)/255;
g = (g*g)/255;
b = (b*b)/255;
// write to NeoPixel Driver
leds.setPixelColor(p, r, g, b);
}
// send to NeoPixel Ring
leds.show();
}
if ( read_result2 = Universe1->readDMXPacket(eUDP)); {
for (int p=170; p<340; p++) {
// for each NeoPixel find the slot number (each takes 3 slots for RGB)
i = 3*p;
r = Universe1->getSlot(i+1); // Red
g = Universe1->getSlot(i+2); // Green
b = Universe1->getSlot(i+3); // Blue
// gamma correct
r = (r*r)/255;
g = (g*g)/255;
b = (b*b)/255;
// write to NeoPixel Driver
leds.setPixelColor(p, r, g, b);
}
// send to NeoPixel Ring
leds.show();
}
}
from lxdmxethernet_library.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lxdmxethernet_library.