For the past few weeks, I’ve felt a need to do something new – shake things up; that sort of thing. I’ve also been yearning to learn a new programming language. I finally settled on learning node.js and to explore how it runs on a Raspberry Pi (RPi).
In the first installment of this series, we saw how we could quickly set up a Java development environment on the RPi, and wrote a simple program to demonstrate how easy it is to configure GPIO using Pi4J.
Let us now dive a little deeper into Pi4J, and understand how we can use the GPIO pins as output pins.