You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the code above I would expect to receive the same result value back for every call to ColorConverter.convert() because we always input the exact same value to it's argument. But in reality sometimes we are getting a different value returned from convert() sometimes. Here is a sample of the output after 1100 iterations:
{248: 1061, 63488: 39}
So the vast majority of the time it is the same, but occasionally different. The Feather ESP32-S2 TFT seems to have an overall higher rate of differing values. With print enabled I was seeing closer to 60/40 split between the differing values. The Feather RP2040 seems like it's somewhat less likely, more often being around 50ish out of 1100 different.
Description
No response
Additional information
@gamblor21 and I discussed on discord a bit and he found a potential cause and solution. Will make a PR with that after some more testing.
I tested this on a PyPortal Titano as well and it did not seem to exhibit the same behavior. I was getting the same value returned every iteration on that device.
The text was updated successfully, but these errors were encountered:
The colorspace object is never initialized and later in the code colorspace.reverse_bytes_in_word is referenced. If it is incorrectly set to non-zero the function fails.
CircuitPython version
Code/REPL
Behavior
With the code above I would expect to receive the same result value back for every call to
ColorConverter.convert()
because we always input the exact same value to it's argument. But in reality sometimes we are getting a different value returned fromconvert()
sometimes. Here is a sample of the output after 1100 iterations:So the vast majority of the time it is the same, but occasionally different. The Feather ESP32-S2 TFT seems to have an overall higher rate of differing values. With print enabled I was seeing closer to 60/40 split between the differing values. The Feather RP2040 seems like it's somewhat less likely, more often being around 50ish out of 1100 different.
Description
No response
Additional information
@gamblor21 and I discussed on discord a bit and he found a potential cause and solution. Will make a PR with that after some more testing.
I tested this on a PyPortal Titano as well and it did not seem to exhibit the same behavior. I was getting the same value returned every iteration on that device.
The text was updated successfully, but these errors were encountered: