Skip to content

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

Description

@Son-kun

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions