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
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ The general pattern for a device driver implementation that uses the SparkFun To
131
131
132
132
The first step is to implement a core, platform independent version of the driver that communicates to the target device using the methods of a ```sfeTkIBus``` interface. By limiting use to the IBus interface, the core implementation can use any bus type or platform that implements the sfeTkIBus interface.
133
133
134
-
>[!IMPORTANT]
134
+
>[!IMPORTANT]
135
135
> At this level, the driver is only using a ```sfeTkIBus``` interface, not any specific bus implementation.
136
136
137
137
This driver has the following unique functionality:
@@ -141,12 +141,12 @@ This driver has the following unique functionality:
141
141
142
142
#### Simple Example of an Independent Driver Implementation
143
143
144
-
>[!NOTE]
144
+
>[!NOTE]
145
145
> This code is **pseudo-code**, used to demonstrate the key concepts of the implementation pattern.
146
146
147
147
This implementation would take the following form:
148
148
149
-
```c++
149
+
```cpp
150
150
151
151
classmyDriverClass
152
152
{
@@ -205,7 +205,7 @@ The following is an example of an I2C class in Arduino based on the previous pla
205
205
> [!NOTE]
206
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
207
208
-
```c++
208
+
```cpp
209
209
210
210
class myArduinoDriverI2C : public myDriverClass
211
211
{
@@ -246,7 +246,7 @@ The following is a SPI version of the driver implemented in Arduino. While simil
246
246
> [!NOTE]
247
247
> This class implements a ```isConnected()``` method that just calls the superclasses ```checkDeviceID()``` method to determine if the device is available on the bus.
0 commit comments