We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba62fed commit 0c59f6aCopy full SHA for 0c59f6a
src/ruby/app/tasks/rgb_task.rb
@@ -17,6 +17,11 @@
17
puts "Starting rgb task ..."
18
when :initializing
19
case $rgb.effect
20
+ when :off
21
+ off = hsv2rgb(0, 0, 0)
22
+ $rgb.pixel_size.times do |i|
23
+ $rgb.set_pixel_at(i, off)
24
+ end
25
when :swirl
26
step = 360.0 / $rgb.pixel_size
27
$rgb.pixel_size.times do |i|
src/ruby/app/tasks/usb_task.rb
@@ -18,7 +18,10 @@
puts "Autoreload is ready."
puts "Suspending keymap."
suspend_keymap
- $rgb.status = :null if $rgb
+ if $rgb
+ $rgb.effect = :off
+ $rgb.status = :null
$encoders = Array.new
autoreload_tick = 1000
elsif autoreload_tick == 1
0 commit comments