Skip to content

Commit

Permalink
Merge pull request #831 from gpiozero/is-lit-822
Browse files Browse the repository at this point in the history
Add is_lit alias to LEDCollection, close #822
  • Loading branch information
bennuttall committed Jan 20, 2020
2 parents 23be8f7 + 584d08f commit 5570f7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gpiozero/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ def leds(self):
@property
def active_high(self):
return self[0].active_high


LEDCollection.is_lit = LEDCollection.is_active


class LEDBoard(LEDCollection):
Expand Down

0 comments on commit 5570f7b

Please sign in to comment.