def proximity():
"""
A measurement of the distance between the sensor and the remote,
as a percentage. 100% is approximately 70cm/27in.
"""
self.mode = MODE_IR_PROX
return self.value(0)
"self" should be the first arg here. I'm not clear on how the autogenerated parts of core.py are autogenerated though...any pointers on how to fix this?
InfraredSensor for example has
"self" should be the first arg here. I'm not clear on how the autogenerated parts of core.py are autogenerated though...any pointers on how to fix this?