lib/arduino_firmata/const.rb in arduino_firmata-0.0.3 vs lib/arduino_firmata/const.rb in arduino_firmata-0.0.4

- old
+ new

@@ -1,8 +1,15 @@ module ArduinoFirmata - def self.list - Dir.entries('/dev').grep(/tty\.?usb/i).map{|fname| "/dev/#{fname}"} + class Params + def self.default + { + :bps => 57600, + :bit => 8, + :parity => 0, + :stopbit => 1 + } + end end INPUT = 0 OUTPUT = 1 ANALOG = 2