]> defiant.homedns.org Git - ros_wild_thumper.git/blobdiff - avr/motor_ctrl/last_i2c_status.py
avr motor_ctrl: watchdog configuration
[ros_wild_thumper.git] / avr / motor_ctrl / last_i2c_status.py
diff --git a/avr/motor_ctrl/last_i2c_status.py b/avr/motor_ctrl/last_i2c_status.py
new file mode 100755 (executable)
index 0000000..a96c8ce
--- /dev/null
@@ -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