Skip to content

machine.I2S

所属パッケージ

関数

adc_enable

machine.I2S.adc_enable()

bits

machine.I2S.bits()

deinit

machine.I2S.deinit()

init

machine.I2S.init()

nchannels

machine.I2S.nchannels()

read

machine.I2S.read()

sample_rate

machine.I2S.sample_rate()

set_adc_pin

machine.I2S.set_adc_pin()

set_dac_mode

machine.I2S.set_dac_mode()

set_pin

machine.I2S.set_pin()

start

machine.I2S.start()

stop

machine.I2S.stop()

volume

machine.I2S.volume()

write

machine.I2S.write()

定数

CHANNEL_ALL_LEFT

machine.I2S.CHANNEL_ALL_LEFT = int(2)

CHANNEL_ALL_RIGHT

machine.I2S.CHANNEL_ALL_RIGHT = int(1)

CHANNEL_ONLY_LEFT

machine.I2S.CHANNEL_ONLY_LEFT = int(4)

CHANNEL_ONLY_RIGHT

machine.I2S.CHANNEL_ONLY_RIGHT = int(3)

CHANNEL_RIGHT_LEFT

machine.I2S.CHANNEL_RIGHT_LEFT = int(0)

DAC_BOTH_EN

machine.I2S.DAC_BOTH_EN = int(3)

DAC_DISABLE

machine.I2S.DAC_DISABLE = int(0)

DAC_LEFT_EN

machine.I2S.DAC_LEFT_EN = int(2)

DAC_RIGHT_EN

machine.I2S.DAC_RIGHT_EN = int(1)

FORMAT_I2S

machine.I2S.FORMAT_I2S = int(1)

FORMAT_I2S_LSB

machine.I2S.FORMAT_I2S_LSB = int(4)

FORMAT_I2S_MSB

machine.I2S.FORMAT_I2S_MSB = int(2)

FORMAT_PCM

machine.I2S.FORMAT_PCM = int(8)

FORMAT_PCM_LONG

machine.I2S.FORMAT_PCM_LONG = int(32)

FORMAT_PCM_SHORT

machine.I2S.FORMAT_PCM_SHORT = int(16)

I2S_NUM_0

machine.I2S.I2S_NUM_0 = int(0)

I2S_NUM_1

machine.I2S.I2S_NUM_1 = int(1)

MODE_ADC_BUILT_IN

machine.I2S.MODE_ADC_BUILT_IN = int(32)

MODE_DAC_BUILT_IN

machine.I2S.MODE_DAC_BUILT_IN = int(16)

MODE_MASTER

machine.I2S.MODE_MASTER = int(1)

MODE_PDM

machine.I2S.MODE_PDM = int(64)

MODE_RX

machine.I2S.MODE_RX = int(8)

MODE_SLAVE

machine.I2S.MODE_SLAVE = int(2)

MODE_TX

machine.I2S.MODE_TX = int(4)

__bases__

machine.I2S.__bases__ = tuple((<class 'object'>,))

__name__

machine.I2S.__name__ = str('I2S')