I have a hiechnic color sensor that I'm trying to configure. The
following code doesn't seem to ever return a non-zero number:
myColor = Color20(myRobot,PORT_3)
print myColor.getSample()
advice?
I'll try get_single_shot_measurement()
> --
> You received this message because you are subscribed to the Google Groups "nxt-python" group.
> To post to this group, send email to nxt-p...@googlegroups.com.
> To unsubscribe from this group, send email to nxt-python+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nxt-python?hl=en.
>
>
from nxt.sensor.hitechnic import *
myColorSensor = Colorv2(myRobot,PORT_4)
val = myColorSensor.get_sample()
print val.red, val.blue, val.green
is this the best way to go about it?