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

Fix slice assignment and ensure int() cast is done #119

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lbt
Copy link

@lbt lbt commented Dec 1, 2024

I use the slice assignment which was removed (probably by accident) in f80276b.
This restores it.

There is also an issue in sending slices from a numpy array as even a numpy.uint32 is not accepted:
TypeError: in method 'ws2811_led_set', argument 3 of type 'uint32_t'

This could fix #115

lbt added 2 commits December 1, 2024 12:13
The caller can't cast this when value is a slice
This matters when a Numpy array is being used.

Signed-off-by: David Greaves <[email protected]>
This functionality was lost in commit:
  f80276b

Signed-off-by: David Greaves <[email protected]>
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

Successfully merging this pull request may close these issues.

TypeError: in method 'ws2811_led_set', argument 3 of type 'uint32_t'
1 participant