User Tools

Site Tools


getting_the_wiring_right

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
getting_the_wiring_right [2018/08/11 01:54] frchrisgetting_the_wiring_right [2022/08/03 11:24] frchris
Line 1: Line 1:
-In my Preinstalled BlueJ IDE, the Pi4J library that was preinstalled in the directory ''/usr/share/bluej/userlib/'' had older versions that did not recognize my new pi 3 B+. After [[http://wiringpi.com/wiringpi-updated-for-the-pi-v3plus/|installing the latest WiringPi]] and [[http://pi4j.com/install.html|intalling the latest Pi4J]], + 
 +====== Getting the Wiring Right ====== 
 + 
 +In 2018 the Preinstalled BlueJ IDE, the Pi4J library that was in the directory ''/usr/share/bluej/userlib/''  did not recognize my new pi 3 B+. After [[http://wiringpi.com/wiringpi-updated-for-the-pi-v3plus/|installing the latest WiringPi]] and [[http://pi4j.com/install.html|intalling the latest Pi4J]], 
 I still had to I still had to
 <code> <code>
Line 7: Line 10:
 because the new ''jar'' files of the Pi4j were stored in ''/opt/pi4j/lib/'' and ignored by BlueJ because of the old version in ''/usr/share/bluej/userlib/'' because the new ''jar'' files of the Pi4j were stored in ''/opt/pi4j/lib/'' and ignored by BlueJ because of the old version in ''/usr/share/bluej/userlib/''
  
-Descriptions of the [[http://pi4j.com/pins/model-3b-plus-rev1.html|new pin out numbers]] and [[http://pi4j.com/usage.html|usage]] are at [[http://Pi4j.org]].+Descriptions of the [[http://pi4j.com/pins/model-3b-plus-rev1.html|new pin out numbers]] and [[http://pi4j.com/usage.html|usage]] are at [[http://Pi4j.com]].
  
  {{http://pi4j.com/images/j8header-3b.png}}  {{http://pi4j.com/images/j8header-3b.png}}
Line 43: Line 46:
 </code> </code>
 The kit I bought from CanaKit had wriiten the BCM numbers, but I needed to program with the wPi numbers. The kit I bought from CanaKit had wriiten the BCM numbers, but I needed to program with the wPi numbers.
 +
 +In 2022 I got a Raspberry Pi4 400. Unfortunately, it was so new, the old gpio -v gave me the message "Oops - unable to determine board type... model: 19"
 +
 +I found some help at [[https://pi4j.com/1.4/install.html]].  I followed the "Easy Method" which produced the {{ ::pi4j-core.jar}} file that I needed.  In order for BlueJ to find it, I copied it over to the proper directory:
 +
 +<code>sudo cp /opt/pi4j/lib/*.jar /usr/share/bluej/userlib/</code>
 +
 +[[https://pi4j.com/1.3/pins/rpi-400.html| GPIO pins on the 400]]
 +
 +
getting_the_wiring_right.txt · Last modified: 2022/08/03 11:25 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki