Pi4J / pi4j-v2

Pi4J Version 2.0
Apache License 2.0
266 stars 54 forks source link

Cant control LED-Controller using UART by Pi4j-v2 #286

Closed Son-kun closed 1 year ago

Son-kun commented 1 year ago

Using DigitalOutput I can only disable LED's controlled by LDR-CONTROLLER-LITE by Lumix on RPi CM4 using GPIO 14 (TX1) and 15(RX1).

DigitalOutputConfigBuilder builder = DigitalOutput.newConfigBuilder(context)
                .id("led")
                .name("LED")
                .address(14)
                .shutdown(DigitalState.LOW)
                .initial(DigitalState.HIGH)
                .provider("pigpio-digital-output");
output = context.create(builder)
output.toggle();

After I call getLow/getHigh/isOn/isOff - status is correct, but after call any status change, LED ring only turning off, and then after change again to on/high, LED's are not turning on, but status from getter method is updated correctly (high/on).

LED controller is connected to TX1 and RX1 (opposite to the markings on the controller). In /boot/config I have enable_uart=1

Any idea what I miss/do wrong?