Sha256: 240be56aef1ceb01c971de6c2467d32589c13d850ca62cc74f1b53ed92176492

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

require 'rf_rgb'

# Set all keys based on a passed-in mapping
colors = {
  # Any key not specified will be set to the default value of the mapping.
  # If no default is set in the mapping, will default to 000000 (i.e. not lit)
  default: '11aa43',

  a: 'ff00ff',
  s: 'ff00ff',
  d: 'ff00ff',
  f: 'ff00ff',

  j: '00ffff',
  k: '00ffff',
  l: '00ffff',
  semicolon: '00ffff'
}

RfRgb::Keyboard.run_and_release do |keyboard|
  keyboard.colors = colors
  keyboard.save
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rf_rgb-0.9.0 examples/set_colors_complex.rb
rf_rgb-0.8.5 examples/set_colors_complex.rb