adafruit / adafruit/Adafruit_CircuitPython_seesaw

Error message prints wrong number system

Open
#128 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
68
Forks
37
PR merge metrics
No merged PRs in 30d

Description

[Lines 161-164](https://github.com/adafruit/Adafruit_CircuitPython_seesaw/blob/main/adafruit_seesaw/seesaw.py#L161-L164)
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

```
RuntimeError: Seesaw hardware ID returned 0x67 is not correct! Please check your wiring.
```
The `67` decimal, which is `0x43` in hex.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in adafruit_seesaw/seesaw.py at lines 161-164, where the hardware ID error is raised. Check how self.chip_id is represented versus the 0x prefix, then verify that the error reports the ID in the correct number system; no test file is mentioned in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.