class BBB::Components::Nunchuck::Decoder
Public Instance Methods
decode(bytes)
click to toggle source
# File lib/BBB/components/nunchuck.rb, line 47 def decode(bytes) bytes.map{|b| b^0x17 + 0x17} end
# File lib/BBB/components/nunchuck.rb, line 47 def decode(bytes) bytes.map{|b| b^0x17 + 0x17} end