Skip to content

Commit 0e3cc7f

Browse files
committed
testing of mermaid on GH
1 parent 6f4ba12 commit 0e3cc7f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/ar_ibus.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,29 @@ For bus communication, the SparkFun Toolkit is designed to provide a common impl
88

99
This pattern allows an application to develop against the common bus interface without regard to the underlying bus type or implementation. This *plug-in* nature of this model enables core application reuse across a range of bus devices. What to use a different bus type? Just use a different driver.
1010

11+
```mermaid
12+
---
13+
title: Design Pattern Bus Interface
14+
---
15+
classDiagram
16+
class MyApplication
17+
18+
class IBus
19+
<<Interface>> IBus
20+
IBus : writeData(...)
21+
IBus : readRegister(...)
22+
IBus : writeRegister(...)
23+
24+
MyApplication --> IBus
25+
26+
IBus <|-- IBusType
27+
28+
note for MyApplication "Application/library that <br>uses the IBus Interface"
29+
note for IBus "Defines the bus interface"
30+
note for IBusType "Specific implementation type <br> methods [I2C, SPI, UART,...]"
31+
32+
```
33+
1134
This pattern is show in the following diagram:
1235

1336
![Driver Pattern](images/tk_ibus_p1.png)

0 commit comments

Comments
 (0)