pxt-ev3 icon indicating copy to clipboard operation
pxt-ev3 copied to clipboard

Color sensor 1 is not working

Open OliviliK opened this issue 5 years ago • 2 comments

Describe the bug Color sensor in default port 3 works in simulator and EV3. Color sensor in port 1 works only in simulator, but not in EV3. In EV3, it reads the reflected light intensity only once. The firmware in EV3 is broken because the sensor red illumination light is blinking with around 0.5 Hz frequency when MakeCode is running. EV3 works properly in Port View,

To Reproduce Use the following JavaScript code music.playSoundEffect(sounds.systemDownload) forever(function () { brick.showValue("Clr1", sensors.color1.light(LightIntensityMode.Reflected), 2) brick.showValue("Clr3", sensors.color3.light(LightIntensityMode.Reflected), 4) })

Download it and observe how the color sensor 1 value is frozen and color sensor 3 value is alive.

Expected behavior It is expected that color sensor 1 value is changing. It is expected that color sensor 1 illumination light is solid. It is expected that color sensor in port 1 works like the color sensor in port 3.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome and Edge
  • Version 79.0.3945.88

Additional context If port 4 is used instead of port 1, there is no problem

OliviliK avatar Dec 26 '19 23:12 OliviliK