Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color sensor 1 is not working #960

Open
OliviliK opened this issue Dec 26, 2019 · 2 comments
Open

Color sensor 1 is not working #960

OliviliK opened this issue Dec 26, 2019 · 2 comments

Comments

@OliviliK
Copy link

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

@THEb0nny
Copy link
Contributor

In the beta version, any sensor does not work in the first port.

@THEb0nny
Copy link
Contributor

THEb0nny commented Feb 4, 2024

I was wrong, analog sensors and i2c sensors work in the first port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants