I'm trying to set the pin state of the gpio04 pin to high, but it will always be low =(.
in /sys/class/gpio a folder for gpio23 (which is 04) gets created correctly. However /sys/class/gpio/gpio23/value has always the value 0.
When I set it manually ( echo "1" > /sys/class/gpio/gpio23/value ) my led will glow correctly.
I'm using the following code as root:
Code: Select all
//...
GpioController gpio = GpioFactory.getInstance();
GpioPinDigitalOutput pin = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_04, "MyLED", PinState.LOW);
//...
pin.high() // /sys/class/gpio/gpio23/value is still 0