Skip to content

Commit

Permalink
SPI: allow WS2812 to attach to H2 SPI bus for PiBoard
Browse files Browse the repository at this point in the history
  • Loading branch information
vickash committed Sep 29, 2024
1 parent 445bfeb commit 4797032
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/denko/spi/bus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4797032

Please sign in to comment.