ev3dev-lang
ev3dev-lang copied to clipboard
HiTechnic Compass Sensor "Device is not connected"
Kernel version 4.4.87 code:
#!/usr/bin/env python3
from ev3dev.ev3 import *
from time import sleep
mB = LargeMotor('outB')
mC = LargeMotor('outC')
comp = Sensor(address='in1:i2c1', driver='ht-nxt-compass')
t = 0
while t<100:
print (comp.value())
sleep(1)
t +=1
Error:
Traceback (most recent call last):
File "./forward", line 12, in
Does the sensor show up in BrickMan under Device Browser?
Also it would be better if the bug report was filed in the ev3dev-lang-python repository.
https://github.com/ev3dev/ev3dev-lang-python/issues
Does the sensor show up in BrickMan under Device Browser?
Yes, i see him in in1:i2c1 port and i can watch values
OK, so not a driver issue. More python people will see your issue if you post it at: https://github.com/ev3dev/ev3dev-lang-python/issues