New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Will it be implemented: Orange Pi 3 LTS (allwinner sun50i-h6)? #103
Comments
Should be pretty straightforward as I think that device is nearly identical to the Orange Pis already supported. |
Can you share the contents of this file please: |
|
Added changes to support detection of this board. Can you share output of |
|
I was messing with the implementation in C (rpi_ws281x project).
|
Just pushed an update that might add support for this board. Are you able to clone, build and test? Otherwise I will include in 1.3.5 as experimental / untested. |
I built diozero-ws281x-java and diozera-core. I put the received JARs into the RemoteLightServer by Lars project that I had.
As I wrote earlier, on the Orange Pi 3LTS is required to-> open("/dev/spidev1.0", O_RDWR); // spidev_1.0_ (not SPI-0-0) (I was doing a test version rpi_ws281x project by jgarff ws2811.c) |
The WS281xSpi constructor allows you to specify the SPI controller and chip select: public WS281xSpi(int controller, int chipSelect, StripType stripType, int numLeds, int brightness) {
this(controller, chipSelect, Protocol.PROTOCOL_800KHZ, stripType, numLeds, brightness);
} It looks like you are using this library but I can't see where it is creating the WS281xSpi instance. |
NOW its OK:
/dev/spidev1.0 Good work! Stripe and Orange Pi 3 LTS in front of me. App is works well. There are no errors. Perfect! Thank you! |
Brilliant. |
I'm ready. |
Apologies for the delay - dug out my various H3, H5 and H6 based boards to test and ended up refactoring the code for all these SoCs after reading the data sheets. The tests are simply running the following:
I think I'm finally good to release 1.3.5 - will do so over the next couple of days. |
com.diozore.sampleapps.GpioDetect
com.diozore.sampleapps.GpioReadAll
com.diozore.sampleapps.LEDTest
com.diozore.sampleapps.perf.GpioPerfTest
and
|
I hope I called the classes correctly. |
Thank you for this. Could you just run with these 4 JAR files on the class path please: i.e. make sure not to include Also, can you turn on debugging with e.g.
|
Also I think GPIO numbers 111 and 360 would be good ones to test with for the LEDTest example. For the pinout for this board I have followed the "Orange Pi 3 LTS v1.2 pinout diagram" section in the documentation. |
com.diozero.sampleapps.SystemInformation
com.diozero.sampleapps.GpioDetect
com.diozero.sampleapps.GpioReadAll
com.diozero.sampleapps.LEDTest 111
|
Ok - I'd named the board def file incorrectly. I've fixed in head if you are able to pull and rebuild diozero-core. An easier interim option could be to create a folder called
|
Without changes com.diozero.sampleapps.SystemInformation
com.diozero.sampleapps.GpioReadAll
In fact, nothing is blinking. I don't understand.
com.diozero.sampleapps.perf.GpioPerfTest 360 5000000
|
Looking good. Apologies - for GpioReadAll and SystemInformation please add |
com.diozero.sampleapps.SystemInformation
com.diozero.sampleapps.GpioReadAll
|
There is a technique to flash the internal LED (on the board itself)? |
Excellent. I don't believe there is a way to flash the board LEDs as they are used to represent power / disk access. |
Are there any other tests required? |
No, that's great - thank you for your support. I'm just updating the documentation now for the 1.3.5 release and will mark this board as supported. |
Matthew, thank you! |
I have Orange Pi 3 LTS (allwinner sun50i-h6).
I use lib ws281x-java-*
When trying to start WS2812b strip management via SPI:
"Hardware revision not supported"
OS: debian_bullseye_desktop_xfce_linux5.16.17
cat /proc/cpuinfo
Hardware : nothing
Revision : nothing
Serial: nothing
/proc/device-tree/system - absent
there is only: cat /proc/device-tree/compatible
xunlong,orangepi-3-ltsallwinner,sun50i-h6
Are there plans to add device support to the library?
The text was updated successfully, but these errors were encountered: