You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ar_ibus.md
+7
Original file line number
Diff line number
Diff line change
@@ -202,6 +202,9 @@ The following is an example of an I2C class in Arduino based on the previous pla
202
202
> [!NOTE]
203
203
> This class implements a ```isConnected()``` method that calls the ```ping()``` method of the I2C bus class being used, and if this passes, then calls the ```checkDeviceID()``` method of the superclass.
204
204
205
+
> [!NOTE]
206
+
> If your device supports repeated starts, make sure to include ```_theI2CBus.setStop(false)``` in your begin function. Otherwise this can cause issues with your device.
207
+
205
208
```c++
206
209
207
210
class myArduinoDriverI2C : public myDriverClass
@@ -214,6 +217,10 @@ class myArduinoDriverI2C : public myDriverClass
214
217
{
215
218
if (_theI2CBus.init(MY_DEVICE_ADDRESS) != kSTkErrOk)
216
219
return false;
220
+
221
+
// OPTIONAL: If your device supports repeat starts.
sentence=A utility library that other SparkFun libraries can take advantage of.
6
6
paragraph=The SparkFun Toolkit provides a common set of core functionality for use across the SparkFun Arduino Driver library. Instead of each device driver library implementing a communication layers, error types and interface, the SparkFun Toolkit library is used.
0 commit comments