Sha256: 53f44ef9a70aef7fefad09b48bc5eb0c7ef5aa4a6c2d8c2f7535ad0b88cb3ed8

Contents?: true

Size: 424 Bytes

Versions: 14

Compression:

Stored size: 424 Bytes

Contents

#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'rubygems'
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)
require 'babascript'
require 'arduino_firmata'

arduino = ArduinoFirmata.connect

if arduino.analog_read(0) > 80
  BabaScript.baba do
    明るくなったから起こしてくださいby橋本
    それと朝食におにぎり買ってきてください("#{rand(5)}個", "しゃけ味")
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
babascript-0.3.1 samples/sample_arduino.rb
babascript-0.3.0 samples/sample_arduino.rb
babascript-0.2.6 samples/sample_arduino.rb
babascript-0.2.5 samples/sample_arduino.rb
babascript-0.2.4 samples/sample_arduino.rb
babascript-0.2.3 samples/sample_arduino.rb
babascript-0.2.2 samples/sample_arduino.rb
babascript-0.2.1 samples/sample_arduino.rb
babascript-0.2.0 samples/sample_arduino.rb
babascript-0.1.1 samples/sample_arduino.rb
babascript-0.1.0 samples/sample_arduino.rb
babascript-0.0.5 samples/sample_arduino.rb
babascript-0.0.4 samples/sample_arduino.rb
babascript-0.0.3 samples/sample_arduino.rb