File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
adafruit_circuitplayground Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,17 @@ def __init__(self):
71
71
72
72
super ().__init__ ()
73
73
74
+ @property
75
+ def _unsupported (self ):
76
+ """This feature is not supported on Circuit Playground Express."""
77
+ raise NotImplementedError ("This feature is not supported on Circuit Playground Express." )
78
+
79
+ # The following is a list of the features available in other Circuit Playground modules but
80
+ # not available for Circuit Playground Express. If called while using a Circuit Playground
81
+ # Express, they will result in the NotImplementedError raised in the property above.
82
+ sound_level = _unsupported
83
+ loud_sound = _unsupported
84
+
74
85
75
86
cpx = Express () # pylint: disable=invalid-name
76
87
"""Object that is automatically created on import.
You can’t perform that action at this time.
0 commit comments