Skip to content

Commit 56a1e31

Browse files
author
Qinghao Shi
committed
update snippets make the compile job pass
1 parent c85fc65 commit 56a1e31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/api/drivers/driver_interfaces.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class LEDAnimator {
7272
}
7373

7474
LEDAnimator(mbed::interface::DigitalOut *red, mbed::interface::DigitalOut *green, mbed::interface::DigitalOut *blue) : _red(red), _green(green), _blue(blue), _internally_created(false) {
75-
...
75+
7676
}
7777

7878
~LEDAnimator() {
@@ -90,7 +90,7 @@ private:
9090
mbed::interface::DigitalOut *_blue;
9191

9292
bool _internally_created;
93-
}
93+
};
9494
```
9595
9696
Now it is possible for your existing library to use the external GPIO expander without any knowledge that it is external. As long as your `my_company::I2CExpander::DigitalOut` class implements the `mbed::interface::DigitalOut` interface properly, your code will work as it did before. You can even have some of the GPIO be internal or external if your design calls for it!
@@ -103,7 +103,7 @@ The inheritance of a driver from the new driver interface is conditional upon `F
103103
104104
When `FEATURE_EXPERIMENTAL_API` is disabled, the following type alias is made instead:
105105
106-
```c++
106+
```
107107
using mbed::interface::DigitalOut = mbed::DigitalOut;
108108
```
109109

0 commit comments

Comments
 (0)