Sha256: b1184051b2a3a04997828cd507cfa95fbd396f79bb1b815e14b331808e2f8621

Contents?: true

Size: 862 Bytes

Versions: 9

Compression:

Stored size: 862 Bytes

Contents

module ArduinoFirmata

  class Params
    def self.default
      {
        :bps => 57600,
        :bit => 8,
        :parity => 0,
        :stopbit => 1
      }
    end
  end

  class Status
    CLOSE = 0
    OPEN = 1
  end

  INPUT  = 0
  OUTPUT = 1
  ANALOG = 2
  PWM    = 3
  SERVO  = 4
  SHIFT  = 5
  I2C    = 6
  LOW    = 0
  HIGH   = 1

  MAX_DATA_BYTES  = 32
  DIGITAL_MESSAGE = 0x90 # send data for a digital port
  ANALOG_MESSAGE  = 0xE0 # send data for an analog pin (or PWM)
  REPORT_ANALOG   = 0xC0 # enable analog input by pin
  REPORT_DIGITAL  = 0xD0 # enable digital input by port
  SET_PIN_MODE    = 0xF4 # set a pin to INPUT/OUTPUT/PWM/etc
  REPORT_VERSION  = 0xF9 # report firmware version
  SYSTEM_RESET    = 0xFF # reset from MIDI
  START_SYSEX     = 0xF0 # start a MIDI SysEx message
  END_SYSEX       = 0xF7 # end a MIDI SysEx message

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
arduino_firmata-0.2.5 lib/arduino_firmata/const.rb
arduino_firmata-0.2.4 lib/arduino_firmata/const.rb
arduino_firmata-0.2.3 lib/arduino_firmata/const.rb
arduino_firmata-0.2.2 lib/arduino_firmata/const.rb
arduino_firmata-0.2.1 lib/arduino_firmata/const.rb
arduino_firmata-0.2.0 lib/arduino_firmata/const.rb
arduino_firmata-0.1.8 lib/arduino_firmata/const.rb
arduino_firmata-0.1.7 lib/arduino_firmata/const.rb
arduino_firmata-0.1.6 lib/arduino_firmata/const.rb