RPi and Java Embedded GPIO: Sensor Reading using Java Code
- by hinkmond
And, now to program the Java code for reading the fancy-schmancy static electricity sensor connected to your Raspberry Pi, here is the source code we'll use:
First, we need to initialize ourselves...
/*
* Java Embedded Raspberry Pi GPIO Input app
*/
package jerpigpioinput;
import java.io.FileWriter;
import java.io.RandomAccessFile;…