--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CircuitPython/audiobusio.py Wed Aug 28 19:53:19 2019 +0200 @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module containing stubs for API generation of the 'audiobusio' module. +""" + +class I2SOut(): + def __init__(self, bit_clock, word_select, data, *, left_justified): + pass + + def deinit(self): + pass + + def play(self, sample, *, loop=False): + pass + + def stop(self): + pass + + @property + def playing(self): + pass + + def pause(self): + pass + + def resume(self): + pass + + @property + def paused(self): + pass + +class PDMIn(): + def __init__(self, clock_pin, data_pin, *, sample_rate=16000, bit_depth=8, + mono=True, oversample=64, startup_delay=0.11): + pass + + def deinit(self): + pass + + def record(self, destination, destination_length): + pass + + @property + def sample_rate(self): + pass