]> defiant.homedns.org Git - ros_wild_thumper.git/blob - avr/motor_ctrl/last_i2c_status.py
avr motor_ctrl: watchdog configuration
[ros_wild_thumper.git] / avr / motor_ctrl / last_i2c_status.py
1 #!/usr/bin/env python
2 # -*- coding: iso-8859-15 -*-
3
4 from smbus import SMBus
5
6
7 i2c = SMBus(2)
8 s = i2c.read_byte_data(0x50>>1, 0xa3)
9 print "0x%x" % s