[SOLVED] Object not subscriptable in GrovePi

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!.

ok solved…after a firmware update

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!

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

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