Comments (6)
Hi, what aspect of diozero are you referring to here?
from diozero.
diozero-ws281x-java. I'm trying to use WS281xTest.java to set the channel same as in https://github.com/jgarff/rpi_ws281x/blob/master/python/examples/strandtest.py
from diozero.
I've just committed code that hopefully fixes this. Could you test and close the issue if it works please (I need to dig out my neopixels...). I'm in the processing of pushing the new snapshot build to maven central too.
Thanks, Matt
from diozero.
Great, thanks I'll check. (I have just finished building my own jni for setting the channel). I'll test it first thing tomorrow!
from diozero.
OK it works. The only thing I had to fix is in com_diozero_ws281xj_WS281x.c from
jobject direct_buffer = (*env)->NewDirectByteBuffer(env, led_string.channel[0].leds, numLeds*sizeof(ws2811_led_t));
to
jobject direct_buffer = (*env)->NewDirectByteBuffer(env, led_string.channel[channel].leds, numLeds*sizeof(ws2811_led_t));
from diozero.
Great, thanks for testing. I've committed that change, I'll push a new snapshot build tonight and close this issue when done.
from diozero.
Related Issues (20)
- Refactor StepperMotors for broader usage HOT 2
- Probable bug in new StepperMotor setups HOT 3
- How to realize infrared reception HOT 1
- RockPi 4a. Problems with specific gpio pin HOT 1
- WS2811 Led doesn't work on Tinker board R2.0 HOT 1
- WS2811 in tinkerboard HOT 5
- SSDOled won't work for I2C channel HOT 5
- I2C devices are not thread-safe HOT 7
- Using pigpio without root HOT 1
- closing serial port causes close eventloop and shutdown HOT 1
- Enhancement request/offer: SN3218 HOT 1
- Enhancement Request: active braking for PwmMotor HOT 1
- PCA9685 has troubles with certain servo angles HOT 5
- BUG: Updates to board info causing errors/messages HOT 5
- SsdOled "display" methods are confusing
- Add board info support for Raspberry Pi 5 HOT 3
- MockFactory throws warning exceptions when run on non-supported systems (non-critical)
- Emhancement: Make I2C devices "shareable" HOT 1
- Can't close and re-open MFRC522 HOT 3
- Support IRQ triggering for more efficient MFRC22 tag reading HOT 1
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 diozero.