Examples of pure Python props using asyncio.
With AsyncioProp flavor, you code props that do not need a graphical interface:
- sensors and actuators (GPIO and I2C shieds)
- sound (playsound, pydub or native player like aplay, mplayer and mpg123)
The asyncio framework allows writing non-blocking Python programs that multitask seamlessly.
AsyncioProp props hides the complexity of the asyncio framework and adds MQTT asynchronous messaging to facilitate your coding.
You will choose your sound solution according to the latency required for the prop to play an audio file.
You will find installation and usage instructions in the PyProps library INSTALLATION.md
For most the common console props (without graphical interface), for example:
- educational example which echoes messages and make a LED blinking (PyBlinkEcho)
- detect vibrations to trigger a crying doll (PyCryingDollProp)
- detect RFID tag with a NFC I2C shield
- play sound
Faure Systems (Mar 30th, 2020)