[SOLVED] Object not subscriptable in GrovePi

grovepi
firmware

#1

Iam using grove+ in phyton… But i looks like a have a hardware problem…??

when i try to run the light sensor script i got th following error:

sensor_value = grovepi.analogRead(light_sensor)
File “/home/pi/Documents/roedi/Python/grovepi.py”, line 227, in analogRead
return number[1] * 256 + number[2]
TypeError: ‘int’ object is not subscriptable

(ultrasonic ranger …exactly the same story…) led and buttons and LCD are working…
whats going on…please help!.


Object not subscriptable (anaologRead)
This makes no sense - Ultrasonic Ranger
#2

ok solved…after a firmware update


#3

Hi @degreef.ruud,

I was just writing you a reply saying that you need to reflash the firmware.
I’m glad it was solved faster than I initially thought,

Thank you!


#4

Thank you for the quick reply… i was afraid i fried the shield…:slight_smile:


#5

This topic was automatically closed after 25 hours. New replies are no longer allowed.