Skip to content

Commit a232f8a

Browse files
committed
Add I²C Example
1 parent d4a188c commit a232f8a

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ I offer you a fully assembled and tested Doorman-S3 which comes with the Stock F
3737
- USB-C port for easy flashing (and because USB-C is cool 😎)
3838
- It's super small (37mm x 37mm) and fits almost everywhere
3939
- Configurable WS2812B RGB LED to indicate specific events
40-
- 2 additional GPIO via Screw Terminal for easy expansion with your own sensors and devices
40+
- 2 additional GPIO via Screw Terminal for easy expansion with your own sensors and devices (i.e. I²C)
4141
- 1 Relay via Screw Terminal to switch up to 40V (max. 2.5A) for oldschool intercom systems
4242
- 1 External Button via Screw Terminal (G + BTN)
4343
- Bridge Rectifier for the Bus-wire input to correct polarity

docs/guide/firmware/additions.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,21 @@ binary_sensor: // [!code ++] // [!code focus]
4141
```
4242
:::
4343
44+
::: details Use I²C Sensors
45+
If you want to add Sensors via the I²C bus you can use the two free GPIO Pins and add the I²C component to your configuration.\
46+
Now you can attach your Sensors to the two free I²C GPIO Pins.
47+
```yaml
48+
<!--@include: minimal.example.yaml-->
49+
50+
i2c: // [!code ++] // [!code focus]
51+
sda: GPIO40 // [!code ++] // [!code focus]
52+
scl: GPIO48 // [!code ++] // [!code focus]
53+
scan: true // [!code ++] // [!code focus]
54+
id: i2c_bus // [!code ++] // [!code focus]
55+
```
56+
:::
57+
58+
4459
## Advanced Examples
4560
### Home Assistant
4661
::: details Sending Bus commands

docs/guide/what-is-doorman.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ You just received your Doorman? Skip to the [Quickstart](getting-started).
2525
- USB-C port for easy flashing (and because USB-C is cool 😎)
2626
- It's super small and fits almost everywhere
2727
- Configurable WS2812B RGB LED to indicate specific events
28-
- 2 additional GPIO for easy expansion with your own sensors and devices
28+
- 2 additional GPIO for easy expansion with your own sensors and devices (i.e. I²C)
2929
- 1 solid state relay to switch up to 40V (max. 2.5A) for oldschool intercom systems
3030
- 1 External Button (G + BTN)
3131
- Bridge Rectifier for the Bus-wire input to correct polarity

0 commit comments

Comments
 (0)