Skip to content

file attinyx16.py update text info please #132

@PaulskPt

Description

@PaulskPt

I am using an Adafruit Gamepad QT (ID 5743).
While diving into this Adafruit_Circuitpython_seesaw module I found that a remark in the file attinyx16.py,
lines 16-19 are not up-to-date. These lines contain currently the following text:

    This class is automatically used by `adafruit_seesaw.seesaw.Seesaw` when
    a ATtinyx16 Breakout (PID 5690, PID 5681) is detected.

    It is also a reference for the capabilities of each pin.

however the code in file seesaw.py, class seesaw init() contains (also) these lines:

        elif (pid in (_5690_PID, _5681_PID, _5743_PID)) or (
            self.chip_id
            in (_ATTINY816_HW_ID_CODE, _ATTINY806_HW_ID_CODE, _ATTINY1616_HW_ID_CODE)

so this code checks also for _5743_PID, which represents the Adafruit Gamepad QT board.

I suggest to change the lines 16-19 in file attinyx16.py into:

    This class is automatically used by `adafruit_seesaw.seesaw.Seesaw` when
    a ATtinyx16 Breakout (PID 5690, PID 5681, PID 5743) is detected.

    It is also a reference for the capabilities of each pin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions