Home Blog Page 13

Java GPIO push button example

Connect a push button to a GPIO pin and check for a button press Schematic Code import com.pi4j.io.gpio.GpioController; import com.pi4j.io.gpio.GpioFactory; import com.pi4j.io.gpio.GpioPinDigitalInput; import com.pi4j.io.gpio.PinPullResistance; import com.pi4j.io.gpio.RaspiPin; import com.pi4j.io.gpio.event.GpioPinDigitalStateChangeEvent; import com.pi4j.io.gpio.event.GpioPinListenerDigital; public class pushbutton { ...

Java clock speeds example

Another example using the pi4j library, this time displaying various clock speeds on your system import com.pi4j.system.NetworkInfo; import com.pi4j.system.SystemInfo; import java.io.IOException; import java.text.ParseException; public class clockinfo { ...

Display hardware info using Java

This code example shows how to display some hardware information using the pi4l java library import com.pi4j.system.NetworkInfo; import com.pi4j.system.SystemInfo; import java.io.IOException; import java.text.ParseException; public class hardwareinfo { ...

Java operating system information

This examples uses pi4j library to display operating system information import com.pi4j.system.NetworkInfo; import com.pi4j.system.SystemInfo; import java.io.IOException; import java.text.ParseException; public class osinfo { ...

Basic Java GPIO example on your Raspberry PI

The first step is to verify if you have java installed , to do this open a command prompt and type the following java -version This...

RasPi Check android app

Simple app for checking the status of your Raspberry Pi. RasPi Check shows you overclocking information and free memory, runtime, disk status and lots of...

GPIO Tool For Raspberry Pi Android app

The first android app I'm looking at allows you to experiment with the GPIO header on your raspberry pi. The app supports the  Quick2Wire Interface,...

Raspberry PI LDR example

In this example we connected an LDR to our Raspberry Pi, we will connect the output to a GPIO pin and detect whether its...

Raspberry Pi and Max7219 7 segment display

In a previous example we connected a Max7219 8x8 LED matrix display to our Raspberry Pi, you can also purchase a 7 segment display...

Raspberry Pi 2 and an 8×8 LED matrix

As part of my arduino/general microcontroller development I purchase a variety of interesting boards and modules, oneof these is a 8x8 LED array which...