Page 1 of 1

A simple micropython uasycio buzzer driver

Posted: Wed Jan 05, 2022 6:32 am
by Wind-stormger
This project is a simple micropython pwm buzzer driver, which supports the application of uasycio to achieve multi-channel music playback, or multi-channels merged into one to achieve chord sound playback.

The method of composing music is more in line with the editing method of numbered musical notation.

Composers can compose music in python code in this way.

Currently only tested ESP32S2 chip.

After confirming the relevant documents, it has been determined that it should be compatible with all chips launched by Espressif that already support the micropython firmware , such as ESP8266,ESP32,ESP32S2,ESP32S3,ESP32C3.

Github:https://github.com/Wind-stormger/microp ... cio-buzzer

Re: A simple micropython uasycio buzzer driver

Posted: Wed Jan 05, 2022 6:42 am
by Wind-stormger
It seems suitable for making some old video game music player.

So,I have transcribed a prelude from a video game music called Weight of the World to this. ;)

Re: A simple micropython uasycio buzzer driver

Posted: Wed Jan 05, 2022 7:01 am
by Wind-stormger
If you want to multi channels merged into one to achieve chord sound playback :)

DO it like this:
cc2.jpg
cc2.jpg (39.41 KiB) Viewed 9260 times

Re: A simple micropython uasycio buzzer driver

Posted: Mon May 23, 2022 6:34 am
by Wind-stormger
Update.

Remove inappropriate syntax (Pin.OUT).