Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added NotImplementedError to Express module.
  • Loading branch information
kattni committed Jan 10, 2020
commit fcbf9b883818a4989d66236ff5c6bbbf7840ea25
11 changes: 11 additions & 0 deletions adafruit_circuitplayground/express.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ def __init__(self):

super().__init__()

@property
def _unsupported(self):
"""This feature is not supported on Circuit Playground Express."""
raise NotImplementedError("This feature is not supported on Circuit Playground Express.")

# The following is a list of the features available in other Circuit Playground modules but
# not available for Circuit Playground Express. If called while using a Circuit Playground
# Express, they will result in the NotImplementedError raised in the property above.
sound_level = _unsupported
loud_sound = _unsupported


cpx = Express() # pylint: disable=invalid-name
"""Object that is automatically created on import.
Expand Down