CommentStreams:E9e49729142ab302f387d355029bf03f
Hey, it seems, the volt percentage command doesn't work. This is my cli output (Tried on 2 different devices with 2 x750-a):
root@raspberrypi:/home/pi# python x750ups.py File "x750ups.py", line 30 print "******************" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("******************")?
please help.
oot@raspberrypi:/home/pi# python2 x750ups.py
Traceback (most recent call last): File "x750ups.py", line 31, in <module> print "Voltage:%5.2fV" % readVoltage(bus) File "x750ups.py", line 11, in readVoltage read = bus.read_word_data(address, 2) IOError: [Errno 110] Connection timed out
and: sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
is the gpio port defect?
of course following is set in config.txt: dtparam=i2c_arm=on dtparam=i2c1=on
i2c activated in raspi-conf
lsmod |grep i2c i2c_bcm2835 16384 0 i2c_bcm2708 16384 0 i2c_dev 20480 0