The issue is when running the example test script for the air sensor I have I get a TypeError:
Traceback (most recent call last): File "grove_air_quality_sensor.py", line 46, in <module> sensor_value = grovepi.analogRead(air_sensor) File "/home/pi/Dexter/GrovePi/Software/Python/grovepi.py", line 227, in analogRead return number[1] * 256 + number[2] TypeError: 'int' object has no attribute '__getitem__'
Everything lights up fine the board is fine. I think the issue is the script itself or maybe a version issue. Any help would be great. TY
Just got my new GrovePi+ board and I when through the install process using the 'Quick Start' method:
sudo curl -kL dexterindustries.com/update_grovepi | bash
tested the board using:
sudo i2cdetect -y 1
and got the OK with the following result and installed the sensor on the A0 interface:
0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- 04 -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
The issue is when running the example test script for the air sensor I have I get a TypeError:
Traceback (most recent call last): File "grove_air_quality_sensor.py", line 46, in <module> sensor_value = grovepi.analogRead(air_sensor) File "/home/pi/Dexter/GrovePi/Software/Python/grovepi.py", line 227, in analogRead return number[1] * 256 + number[2] TypeError: 'int' object has no attribute '__getitem__'
Everything lights up fine the board is fine. I think the issue is the script itself or maybe a version issue. Any help would be great. TY