Mydin-async-or-not

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche

Introduction

MyDin can be programmed:

  1. with standard Python code (classes, functions, types, etc)... name it "the procedural way".
  2. 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 use the schematics and create their own code from top to bottom.

By creating and configure the myDin classes (see later), your code already get a direct access to all the features in the procedural way.

By calling the additional setup() and run() the myDin will starts asynchronous processing.

We strongly recommend to use the asynchronous approach for your projects.

Modèle:MyDin-TRAILER