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 voidclose()Closes I2C portintopen(int arg)Opens I2C portintreceive(byte[] buffer, int length)Receives and reads specified length of bytes from I2Cintreceive(byte[] buffer, int length, Pixy2.Checksum cs)Receives and reads specified length of bytes from I2Cintsend(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
-
-