Treehopper Java API
io.treehopper.interfaces.I2c Interface Reference

I2c interface. More...

Inheritance diagram for io.treehopper.interfaces.I2c:
io.treehopper.HardwareI2c

Public Member Functions

byte [] sendReceive (byte address, byte[] dataToWrite, int numBytesToRead)
 
boolean isEnabled ()
 
void setEnabled (boolean enabled)
 
double getSpeed ()
 
void setSpeed (double speed)
 

Detailed Description

I2c interface.

Member Function Documentation

◆ getSpeed()

double io.treehopper.interfaces.I2c.getSpeed ( )

Implemented in io.treehopper.HardwareI2c.

◆ isEnabled()

boolean io.treehopper.interfaces.I2c.isEnabled ( )

Implemented in io.treehopper.HardwareI2c.

◆ sendReceive()

byte [] io.treehopper.interfaces.I2c.sendReceive ( byte  address,
byte []  dataToWrite,
int  numBytesToRead 
)

Implemented in io.treehopper.HardwareI2c.

◆ setEnabled()

void io.treehopper.interfaces.I2c.setEnabled ( boolean  enabled)

Implemented in io.treehopper.HardwareI2c.

◆ setSpeed()

void io.treehopper.interfaces.I2c.setSpeed ( double  speed)

Implemented in io.treehopper.HardwareI2c.


The documentation for this interface was generated from the following file: