CircuitPython/audiopwmio.py

changeset 7
e336d6afc5a6
parent 6
81a2208f13e4
--- a/CircuitPython/audiopwmio.py	Wed Aug 28 19:53:19 2019 +0200
+++ b/CircuitPython/audiopwmio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -8,6 +8,9 @@
 """
 
 class PWMAudioOut():
+    playing = 0
+    paused = 0
+    
     def __init__(self, left_channel, *, right_channel=None,
                  quiescent_value=0x8000):
         pass
@@ -21,16 +24,8 @@
     def stop(self):
         pass
     
-    @property
-    def playing(self):
-        pass
-    
     def pause(self):
         pass
     
     def resume(self):
         pass
-    
-    @property
-    def paused(self):
-        pass

eric ide

mercurial