Javaãã移æ¤ãã â Arduino Firmata on Ruby ã¤ã³ã¹ãã¼ã« gem install arduino_firmata Ruby 1.8.7ã¨1.9.2ã§åä½ç¢ºèªãã¦ããserialport gemã使ã£ã¦ãã®ã§JRubyã§ã¯åããªãã ã§ãããã¨ã»ä½¿ãæ¹ RubyããArduinoã®ãã¸ã¿ã«ã»ã¢ããã°ã®å ¥åºåã使ããã ä¾ãã°Twã®å é¨APIã¨æ¸©åº¦ã»ã³ãµLM35DZã¨çµã¿åãããã¨ã9è¡ã§æ¸©åº¦ãtweetã§ããããã¦ä¾¿å©ã #usr/bin/env ruby require 'rubygems' require 'arduino_firmata' require 'tw' arduino = ArduinoFirmata.connect "/dev/tty.usbmodem621" puts temp = arduino.analog_read(1)*100*5/
{{#tags}}- {{label}}
{{/tags}}