Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SuppressWarnings("unused")
- public static void main(String args[]) throws InterruptedException{
- int fd = Spi.wiringPiSPISetup(0, 10000000);
- if(fd <= -1){
- System.out.println("SPI Setup Failed");
- return;
- }
- byte[] SendPacket = new byte[]{(byte)159, (byte)0};
- int check = Spi.wiringPiSPIDataRW(0, SendPacket, 2);
- if(check <= -1){
- System.out.println("SPI DataRW Failed");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement