public class WiringPiSPIExample extends Object
Modifier and Type | Field and Description |
---|---|
static byte |
READ_CMD |
static byte |
WRITE_CMD |
Constructor and Description |
---|
WiringPiSPIExample() |
Modifier and Type | Method and Description |
---|---|
static String |
bytesToHex(byte[] bytes) |
static void |
main(String[] args) |
static void |
read(byte register) |
static void |
write(byte register,
int data) |
public static void main(String[] args) throws InterruptedException
InterruptedException
public static void write(byte register, int data)
public static void read(byte register)
public static String bytesToHex(byte[] bytes)
Copyright © 2012–2016 Pi4J. All rights reserved.