Skip to content

Ensure all enums are singular#23

Open
RealOrangeOne wants to merge 1 commit into
mainfrom
singular-enums
Open

Ensure all enums are singular#23
RealOrangeOne wants to merge 1 commit into
mainfrom
singular-enums

Conversation

@RealOrangeOne
Copy link
Copy Markdown
Member

Fixes #15

@RealOrangeOne RealOrangeOne requested a review from a team June 5, 2025 17:14
Comment thread sr/robot3/kch.py
Comment on lines +28 to +29
class RobotLEDPin(IntEnum):
"""Pin for a corresponding LED channel"""
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a pin

Suggested change
class RobotLEDPin(IntEnum):
"""Pin for a corresponding LED channel"""
class RobotLedGpio(IntEnum):
"""GPIO for a corresponding LED channel"""

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the GPIO pin number, right? That feels accurate enough

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is the GPIO number which differs from the pin number.

https://raspi.tv/2013/rpi-gpio-basics-4-setting-up-rpi-gpio-numbering-systems-and-inputs

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Unify around enums being singular

2 participants