mattjlewis / diozero

Java Device I/O library that is portable across Single Board Computers and microcontrollers. Tested with Raspberry Pi, Odroid C2, BeagleBone Black, Next Thing CHIP, Asus Tinker Board and Arduinos / Pico. Supports GPIO, I2C, SPI as well as Serial communication. Also known to work with Udoo Quad.
https://www.diozero.com
MIT License
261 stars 59 forks source link

RockPi 4a. Problems with specific gpio pin #160

Closed TimoshN closed 3 months ago

TimoshN commented 1 year ago

Hello, i have problem with gpio 112. I am able to work with it as input device but not as output.

If i try to use gpiod it is working as both.

I changed part of the code in Rock4BoardInfoProvider class to be able to run on rockpi 4a board and fix incorrect line (0->16) for gpiochip 3

GPIO, Default, 112, GPIO3_C0, 32, DIGITAL_INPUT | DIGITAL_OUTPUT, 3, 16 # 2: UART3_CTSn, 1: SPDIF_TX, GPIO3_C0

mattjlewis commented 1 year ago

Good spot - have also fixed locally. Will check in soon and include in 1.4.0