Replies: 1 comment 8 replies
-
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am trying to come up with a solution to replace LEGO color distance sensor as these are no longer available to buy. My thought was to use WeDo 2.0 Infrared Motion Sensor with CityHub.
But it does not seem to work. When I try to identify the device using the example code from documentation I am getting output as "Port.A WeDo 2.0 Infrared Motion Sensor". But when I try to use the class of pybricks.pupdevices import InfraredSensor and then "ir = InfraredSensor(Port.A)" I am getting message that device is not connected. I thought it will be easy replacement but maybe the class is only for Powered Up devices ? But I have not seen Powered Up infrared sensor ever ?
Thanks.
Pavel Cakl
Beta Was this translation helpful? Give feedback.
All reactions