Skip to content

Commit fcd5477

Browse files
Adds dt_overlay config instructions to README
1 parent b6f3779 commit fcd5477

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,23 @@ config :delux,
152152
}}
153153
```
154154

155+
For advanced configurations involving device tree overlays for GPIO-controlled LEDs, you can specify the overlays path and pins in the config.exs as follows:
156+
157+
``` elixir
158+
config :delux, :dt_overlays,
159+
overlays_path: "/data/gpio-led.dtbo",
160+
pins: [
161+
{"rgb-red0", 12},
162+
{"rgb-green0", 16},
163+
{"rgb-blue0", 21},
164+
{"rgb-red1", 24},
165+
{"rgb-green1", 25},
166+
{"rgb-blue1", 1}
167+
]
168+
```
169+
170+
This configuration is useful for specifying custom GPIO pins for LED indicators allowing for more flexibility in custom hardware setups. This has only been tested on an rpi0 at this time.
171+
155172
## Use
156173

157174
For sake of example, let's start the `Delux` GenServer the manual way by calling

0 commit comments

Comments
 (0)