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: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,6 +152,23 @@ config :delux,
152
152
}}
153
153
```
154
154
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 a rpi0 at this time.
171
+
155
172
## Use
156
173
157
174
For sake of example, let's start the `Delux` GenServer the manual way by calling
0 commit comments