Sha256: 6a3a1b209a13c4bf31e989bf10f79994aac5e556755ad3809c74ed622fedb3f6

Contents?: true

Size: 925 Bytes

Versions: 11

Compression:

Stored size: 925 Bytes

Contents

module ArduinoFirmata

  class Params
    def self.default
      {
        :bps => 57600,
        :bit => 8,
        :parity => 0,
        :stopbit => 1,
        :nonblock_io => false,
        :eventmachine => false
      }
    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

11 entries across 11 versions & 1 rubygems

Version Path
arduino_firmata-0.3.7 lib/arduino_firmata/const.rb
arduino_firmata-0.3.6 lib/arduino_firmata/const.rb
arduino_firmata-0.3.5 lib/arduino_firmata/const.rb
arduino_firmata-0.3.4 lib/arduino_firmata/const.rb
arduino_firmata-0.3.3 lib/arduino_firmata/const.rb
arduino_firmata-0.3.2 lib/arduino_firmata/const.rb
arduino_firmata-0.3.1 lib/arduino_firmata/const.rb
arduino_firmata-0.3.0 lib/arduino_firmata/const.rb
arduino_firmata-0.2.9 lib/arduino_firmata/const.rb
arduino_firmata-0.2.8 lib/arduino_firmata/const.rb
arduino_firmata-0.2.7 lib/arduino_firmata/const.rb