A simple micropython uasycio buzzer driver

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
User avatar
Wind-stormger
Posts: 17
Joined: Fri Nov 05, 2021 6:59 am

A simple micropython uasycio buzzer driver

Post by Wind-stormger » Wed Jan 05, 2022 6:32 am

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

User avatar
Wind-stormger
Posts: 17
Joined: Fri Nov 05, 2021 6:59 am

Re: A simple micropython uasycio buzzer driver

Post by Wind-stormger » Wed Jan 05, 2022 6:42 am

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. ;)

User avatar
Wind-stormger
Posts: 17
Joined: Fri Nov 05, 2021 6:59 am

Re: A simple micropython uasycio buzzer driver

Post by Wind-stormger » Wed Jan 05, 2022 7:01 am

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 9033 times

User avatar
Wind-stormger
Posts: 17
Joined: Fri Nov 05, 2021 6:59 am

Re: A simple micropython uasycio buzzer driver

Post by Wind-stormger » Mon May 23, 2022 6:34 am

Update.

Remove inappropriate syntax (Pin.OUT).

Post Reply