The Pi4J Project now supports non-privileged access
to the basic GPIO input and output functions of the Raspberry Pi as well as serial (UART), I2C and SPI communication. What this means is that launching your Java application with "sudo
" or running as a user account with "root
" permissions is no longer required!
Please see the full article with instructions and example code here: