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

[Feature] Allow floating point brightness value in light array #1547

Closed
laurensvalk opened this issue Mar 18, 2024 · 0 comments
Closed

[Feature] Allow floating point brightness value in light array #1547

laurensvalk opened this issue Mar 18, 2024 · 0 comments
Labels
bug Something isn't working enhancement New feature or request topic: sensors Issues involving sensors

Comments

@laurensvalk
Copy link
Member

Is your feature request related to a problem? Please describe.

>>> a = UltrasonicSensor(Port.F)
>>> a.lights.on(50)
>>> a.lights.on(50/2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: object 'float' isn't a tuple or list

Describe the solution you'd like
Allow floating point value, truncated to int, as we do everywhere else.

@laurensvalk laurensvalk added bug Something isn't working enhancement New feature or request topic: sensors Issues involving sensors labels Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request topic: sensors Issues involving sensors
Projects
None yet
Development

No branches or pull requests

1 participant