Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

a bug of v1.4 #535

Description

@lixiaoxin1989

I use CM4, ubuntu server 20.10 64 bit, wiringpi 2.60, pi4j 1.4.

Run the following code will cause the eth0 lost its ipv4 address, so the eth0 will not work untill reboot.

import com.pi4j.io.gpio.GpioController;
import com.pi4j.io.gpio.GpioFactory;
import com.pi4j.io.gpio.GpioPinDigitalOutput;
import com.pi4j.io.gpio.PinState;
import com.pi4j.io.gpio.RaspiPin;

GpioController gpio = GpioFactory.getInstance();
GpioPinDigitalOutput pin1 = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_17, "", PinState.LOW);
pin1.high();

But it's OK if run as following:

import com.pi4j.wiringpi.Gpio;

Gpio.wiringPiSetup();
Gpio.pinMode(17, Gpio.OUTPUT);
Gpio.digitalWrite(17, 1);

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