Dummies using the I2CS

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
GabrielaGarcia
Posts: 2
Joined: Sat Dec 11, 2021 6:51 pm

Dummies using the I2CS

Post by GabrielaGarcia » Sat Dec 11, 2021 6:55 pm

For somebody who is not fluent in C language, can I find some documentations there that explains in detail the design, implementation of the machine 12S? I have issues such as in my mind:
What is actually happening in the surface doing the asyncio.StreamWriter.drain()?
Which is the best practice: when and how data are often written to an output buffer that has a given size?
I will be thankful for your pointers.
.

User avatar
Mike Teachman
Posts: 155
Joined: Mon Jun 13, 2016 3:19 pm
Location: Victoria, BC, Canada

Re: Dummies using the I2CS

Post by Mike Teachman » Sun Dec 12, 2021 1:54 am

I have a repo with some resources to help understand the mysteries of I2S:
https://github.com/miketeachman/micropy ... s-examples

The repo includes a FAQ describing some rules of thumb for buffer sizing and a description of I2S operation that uses a water analogy. Hopefully that will help. If not, please post further questions.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Dummies using the I2CS

Post by pythoncoder » Sun Dec 12, 2021 11:23 am

Information on uasyncio streaming may also be found here.
Peter Hinch
Index to my micropython libraries.

Post Reply