Mydin-async-or-not
Introduction
MyDin can be programmed:
- with standard Python code (classes, functions, types, etc)... name it "the procedural way".
- with asynchronous code (known as AsyncIO)... a kind of multitasking!
The libraries provided with myDin support the both approaches for programming myDin.
In any cases, the myDin library will simplifies the access to the underlaying hardware.
For sure, experimented MicroPython user can also use the schematics and creates their own software stack from the top to the bottom.
By creating and configuring the myDin classes (see later), your code already get a direct access to all the features in the procedural way.
When calling the additional setup() and run() methods the myDin will starts asynchronous processing.
We strongly encourage to use the asynchronous approach for your projects.
Creating myDin
To properly instantiate the DIN controler, you must identifies:
- controler board
- backplane board
These information will determine the Python modules to import and the classes names to be used.