X-Git-Url: https://defiant.homedns.org/gitweb/?p=ros_wild_thumper.git;a=blobdiff_plain;f=avr%2Fmotor_ctrl%2Flast_i2c_status.py;fp=avr%2Fmotor_ctrl%2Flast_i2c_status.py;h=a96c8cece683fafa4e95a3ba8c08022d13bf4a75;hp=0000000000000000000000000000000000000000;hb=5d5f12eaf31287bcbaf01ff211b1366bd48c0658;hpb=5265263d46b9396252d852a763e68913ad3a913e diff --git a/avr/motor_ctrl/last_i2c_status.py b/avr/motor_ctrl/last_i2c_status.py new file mode 100755 index 0000000..a96c8ce --- /dev/null +++ b/avr/motor_ctrl/last_i2c_status.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python +# -*- coding: iso-8859-15 -*- + +from smbus import SMBus + + +i2c = SMBus(2) +s = i2c.read_byte_data(0x50>>1, 0xa3) +print "0x%x" % s