From 47970323a0d9c9fcfef6021fb6b7e19af9dd6538 Mon Sep 17 00:00:00 2001 From: vickash Date: Sun, 29 Sep 2024 12:56:36 -0400 Subject: [PATCH] SPI: allow WS2812 to attach to H2 SPI bus for PiBoard --- lib/denko/spi/bus.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/denko/spi/bus.rb b/lib/denko/spi/bus.rb index 319c867..d03b4e7 100644 --- a/lib/denko/spi/bus.rb +++ b/lib/denko/spi/bus.rb @@ -20,6 +20,11 @@ def listen(*args, **kwargs) args.unshift(spi_index) board.spi_listen(*args, **kwargs) end + + # This is for WS2812 strips on PiBoard. + def show_ws2812(*args) + board.show_ws2812(*args, spi_index: spi_index) + end end end end