public class SpiExample extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
INIT_CMD |
static SpiDevice |
spi |
| Constructor and Description |
|---|
SpiExample() |
| Modifier and Type | Method and Description |
|---|---|
static String |
bytesToBinary(byte[] bytes) |
static String |
bytesToHex(byte[] bytes) |
static void |
main(String[] args) |
static void |
read() |
public static SpiDevice spi
public static byte INIT_CMD
public static void main(String[] args) throws InterruptedException, IOException
InterruptedExceptionIOExceptionpublic static void read()
throws IOException
IOExceptionpublic static String bytesToBinary(byte[] bytes)
public static String bytesToHex(byte[] bytes)
Copyright © 2012–2015 Pi4J. All rights reserved.