Java, IoT, Programming, Software Development, Software Engineering.
console.println("Button was pressed " + pressButtonCounter+ " times"); } }); Exit. To correctly free all resources we need to do shutdown: pi4j.shutdown(); To run this app on your RasperyPi you need do following. You need attach a LED, and recent Raspbian OS image with Java 11 or newer Build