circuitpython_typing – Types for the C-level protocols

circuitpython_typing.ReadableBuffer

Classes that implement the readable buffer protocol

circuitpython_typing.WriteableBuffer

Classes that implement the writeable buffer protocol

circuitpython_typing.AudioSample

Classes that implement the audiosample protocol

You can play these back with audioio.AudioOut, audiobusio.I2SOut or audiopwmio.PWMAudioOut.

circuitpython_typing.FrameBuffer

Classes that implement the framebuffer protocol

circuitpython_typing.Alarm

Classes that implement alarms for sleeping and asynchronous notification.

You can use these alarms to wake up from light or deep sleep.