I’m getting a weird error when i try to run my code which is to display the ultrasonic sensor range i have it simple
from grovepi import*
print(“testing”)
range=ultrasonicRead(2)
print(range)
i get an error
return (number[1] *256 +number[2])
TypeError: ‘int’ object is not subscriptable
i saw a fourm where someone had the same problem but they just updated the firmware and it worked for them, however it doesn’t work for me. I updated it and it still makes the same error. D; please help! thanks!