We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Lines 161-164 In the raised error the message adds a 0x to the self.chip_id which is in decimal. In my case the error message read
0x
self.chip_id
RuntimeError: Seesaw hardware ID returned 0x67 is not correct! Please check your wiring.
The 67 decimal, which is 0x43 in hex.
67
0x43
The text was updated successfully, but these errors were encountered:
Looks like this happened when changing to F string format done in this PR: https://github.com/adafruit/Adafruit_CircuitPython_seesaw/pull/118/files
The previous format syntax included {:x} to format the result as hex. A similar format specifier is missing in the current library's f-string syntax.
format
{:x}
It's a simple fix though:
>>> foo = 67 >>> f"0x{foo}" '0x67' >>> f"0x{foo:x}" '0x43' >>>
Sorry, something went wrong.
I can create a PR to fix it
Fixed an error message that was using the wrong number system. See is…
6229da8
…sue adafruit#128.
No branches or pull requests
Lines 161-164
In the raised error the message adds a
0x
to theself.chip_id
which is in decimal. In my case the error message readThe
67
decimal, which is0x43
in hex.The text was updated successfully, but these errors were encountered: