avr motor_ctrl: watchdog configuration
[ros_wild_thumper.git] / avr / motor_ctrl / last_i2c_status.rb
1 #!/usr/bin/ruby -I ~/ruby_test/.bundle/ruby/2.3.0/gems/i2c-0.4.2/lib
2
3 require 'rubygems'
4 require 'bundler/setup'
5 require "i2c"
6
7 i2c = I2C.create("/dev/i2c-2") 
8
9 a = i2c.read(0x50>>1, 1, 0xa3)
10 puts "0x%x" % a.unpack("C")