virtual int available();
Returns the number of bytes the read() function can read.
Number of bytes that can be read.
#include <Wire.h> void setup() { Wire.begin(); } void loop() { Wire.requestFrom(0x27,6); while((Wire.available())) { int c = Wire.read(); } }
Wire.h
TwoWire Class