Closed jchristof closed 6 months ago
Looking at the Pigpio issues, it will not work on P5. There is no detail on when the Pigpio might be modified. There are comments stating this appears to be a large undertaking and there is no firm commitment on who/when. Also, the linuxFS on P5 is not clearly understood. As more of us actually have a P5 in our hands we can validate what does and does not function and then size the work.
Thanks for the reply - this is a RPi 4.
Oh man. I saw bookworm and jumped to p5. U clearly said p4. I do have a bookworm image waiting for a p5. I will load it into a p4 and try your code. What is the model of the 16x2 you are using and the version of pi4j ?
It's out of a FREENOVE starter kit. The tutorial docs describe it:
"The serial-to-parallel IC chip used in this module is PCF8574T (PCF8574AT), and its default I2C address is 0x27(0x3F). You can also view the RPI bus on your I2C device address through command "i2cdetect -y 1" (refer to the "configuration I2C" section below). "
In /dev crw-rw---- 1 root i2c 89, 20 Jan 18 21:17 i2c-20 crw-rw---- 1 root i2c 89, 21 Jan 18 21:17 i2c-21
Pi4j version - I cloned the main branch of the component project. https://github.com/Pi4J/pi4j-example-components
Thanks again @taartspi. I spent some time reading the manual and discovered that I needed to enable the i2c interface in raspi config. The listing of the i2c bus in /dev threw me off and I thought it was pre-enabled.
User error - needed to read the manual.
Evening. Glad you got it going. Take care
also You mentioned using ssh to connect. If you wanted VNC: When starting up bookworm I saw vnc viewers failed.
The temporary fix, raspi-config advanced Wayland, set x11.
sudo nano .config/wayvnc/config address=0.0.0.0 enable_auth=false enable_pam=true private_key_file=/home/pi/.config/wayvnc/key.pem certificate_file=/home/pi/.config/wayvnc/cert.pem
Then realVNC functioned.
RPi4 running RPiOs 64-bit Bookworm with desktop env. and recommended applications. Java is installed. Launching the components project, Intellij using remote ssh to Pi as root user. Trying to run #9 LCD example. Other launcher examples work fine such as the blinking led.
I scanned some of the Git issues and I'm confused as to whether I should be able to drive output to my 16x2. It looks like running as root should solve the issues but it's not working for me.
Could someone point out what I need to do to get I2C working?
With LinuxFsI2CProvider
With PiGpioI2CProvider