Pi4J Project
Java API for accessing GPIO, PWM, I2C, SPI, UART
The Pi4J Project now includes support for BPI-M1 and BPI-M1+,also can use it on BPI-R1.
This support has just been added and only cursory tests performed, so lets call it experimental for now, but I welcome you
guys to try it out and let me know if you run into any trouble. You must use the Pi4J v1.1-SNAPSHOT builds until v1.1 gets
released. You can manually download the JARs in ZIP or the installable .DEB package from this page:
http://pi4j.com/download.html
Support includes Java programatic access and control of GPIO inputs/outputs, PWM, I2C, SPI, and UART (serial).
There is no documentation yet specifically for the Banana platforms, but apart from a few subtle differences in configuring a
platform and pin/bus addressing, its basically the same. Perhaps better than documentation ... there are a number of
examples (sample code) included in the build and available in the GitHub repo specific to each Banana platform:
BananaPi Examples:
https://github.com/Pi4J/pi4j/tree/develop/pi4j-example/src/main/java/bananapi
BananaPro (BPI-M1+) Examples
https://github.com/Pi4J/pi4j/tree/develop/pi4j-example/src/main/java/bananapro
Other notes: You don't have to install and compile WiringPi/WiringBP seperately! The Pi4J core JAR includes all the native
libraries it needs to communicate with the hardware embeded in the JAR.
Pi4J Project
83
Summary of Contents for BPI-R1
Page 5: ...BPI R1 hardware interface BPI R1 hardware interface Front Back BPI R1 hardware interface 5...
Page 6: ...Hardware connect sketch map Front Back BPI R1 hardware interface 6...
Page 7: ...BPI R1 hardware interface 7...
Page 8: ...BPI R1 hardware spec BPI R1 hardware spec 8...
Page 14: ...J13 P01 UART0 RX PB23 J13 P02 UART0 TX PB22 BPI R1 GPIO Pin define 14...
Page 28: ...please note value 0 value 1 press is 1 unpress is 0 BPI R1 IR interface 28...
Page 41: ...BPI R1 RoHS Certification BPI R1 CE FCC RoHS Certification 41...
Page 42: ...BPI R1 CE FCC RoHS Certification 42...
Page 43: ...BPI R1 Software BPI R1 support linux android and openwrt system BPI R1 Software 43...
Page 59: ...Linux kernel 3 4 BSP image 59...