Method: BBB::Pins::IO::PinMapper#initialize

Defined in:
lib/BBB/pins/io/pin_mapper.rb

#initialize(hash) ⇒ PinMapper

Initialize a JSONPinMapper

Parameters:

  • hash (Hash)

    Hash that was converted from json with the keys pinIndex, uart and i2c.



32
33
34
# File 'lib/BBB/pins/io/pin_mapper.rb', line 32

def initialize(hash)
  @data = hash
end