beshaya / FDC1004

Arduino Library for FDC1004 Capacitance to Digital Sensor
12 stars 7 forks source link

The Wire.beginTransmission() and Wire.endTransmission() should not be used together with Wire.requestFrom(). #6

Open Koepel opened 6 years ago

Koepel commented 6 years ago

In the function "FDC1004::read16()", there is a Wire.beginTransmission() before the Wire.requestFrom() and a Wire.endTransmission() after a Wire.requestFrom(). Those can be removed. Explanation: Common-mistakes, number 2 and 3.