|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface II2C
Interface I2C provides access to Inter-Integrated Circuit (I-squared-C) pins on the demo sensor board, allowing connection of an external device that conforms to the I2C protocol and the use of such an external device by a program runing on the SPOT.
| Method Summary | |
|---|---|
boolean |
isIdle()
Check if the connection is idle |
byte |
receive(boolean ack)
|
void |
start()
Generates the starting bit-sequence |
void |
stop()
Generates the stopping bit-sequence |
boolean |
transmit(byte d)
|
| Method Detail |
|---|
void start()
throws IOException
IOException
boolean transmit(byte d)
throws IOException
d - a byte to be transmitted
IOException
byte receive(boolean ack)
throws IOException
ack - indicates whether an ack is to be transmitted
IOException
void stop()
throws IOException
IOException
boolean isIdle()
throws IOException
IOException
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||