M5-ProductExampleCodes
M5-ProductExampleCodes copied to clipboard
No need to wait after Wire.requestFrom().
In the files:
- M5-ProductExampleCodes/Hat/tof-hat/Arduino/ToF_Count/ToF_Count.ino
- M5-ProductExampleCodes/Unit/TOF/Arduino/MeasureDistance/MeasureDistance.ino
- M5-ProductExampleCodes/Unit/TOF/Arduino/TOF_VL53L0X/TOF_VL53L0X.ino
there is waiting after a Wire.requestFrom()
.
You may remove all these lines: while (Wire.available() < 1) delay(1);
In the files:
- M5-ProductExampleCodes/Unit/ENV/Arduino/ENV/DHT12.cpp
- M5-ProductExampleCodes/Core/m5go/m5go_lite/Arduino/ENV/DHT12.cpp
there is a delay after the Wire.requestFrom()
. That is delay is not needed for interfacing with the Wire library.
In the file:
- M5-ProductExampleCodes/Unit/EXTIO/Arduino/EXT_IO/PCA9554.cpp
you may remove this line: while (Wire.available() < 1);
Explanation: Common-mistakes#1