Sha256: e6e6797d709204fc672998d21cd6b6a3a9b02eb577053a2b11721bb16d47d2a7
Contents?: true
Size: 442 Bytes
Versions: 7
Compression:
Stored size: 442 Bytes
Contents
# # Blink example for the LOLIN ESP32 S3 or C3, or any board where # :LED_BUILTIN is the data pin for a single on-board WS2812. # require 'bundler/setup' require 'denko' WHITE = [255, 255, 255] OFF = [0, 0, 0] board = Denko::Board.new(Denko::Connection::Serial.new) strip = Denko::LED::WS2812.new(board: board, pin: :LED_BUILTIN, length: 1) loop do strip[0] = WHITE strip.show sleep 0.5 strip[0] = OFF strip.show sleep 0.5 end
Version data entries
7 entries across 7 versions & 1 rubygems