Class I2CLink
- java.lang.Object
-
- io.github.pseudoresonance.pixy2api.links.I2CLink
-
-
Constructor Summary
Constructors Constructor Description I2CLink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes I2C portint
open(int arg)
Opens I2C portint
receive(byte[] buffer, int length)
Receives and reads specified length of bytes from I2Cint
receive(byte[] buffer, int length, Pixy2.Checksum cs)
Receives and reads specified length of bytes from I2Cint
send(byte[] buffer, int length)
Writes and sends buffer over I2C
-
-
-
Method Detail
-
open
public int open(int arg)
Opens I2C port
-
receive
public int receive(byte[] buffer, int length, Pixy2.Checksum cs)
Receives and reads specified length of bytes from I2C
-
receive
public int receive(byte[] buffer, int length)
Receives and reads specified length of bytes from I2C
-
-