microsoft / pxt-ev3

Microsoft MakeCode editor for the LEGO MINDSTORMS EV3 Brick
https://makecode.mindstorms.com/
Other
52 stars 39 forks source link

I2C sensor starts working only after reconnection #1000

Closed THEb0nny closed 8 months ago

THEb0nny commented 3 years ago

The I2C based sensor starts working only if you reconnect it from the port. Or, when starting the program, connect to the port (which was empty). If there are two i2c sensors, then they both do not work, but when one is reconnected, they start to work. Used Hitechnic Color Sensor.

https://github.com/microsoft/pxt-ev3/pull/870

This is due to the introduction of Poller. https://github.com/microsoft/pxt-ev3/pull/870#issuecomment-808906622

THEb0nny commented 8 months ago

I solved this in beta.