Last active
July 9, 2025 16:06
-
-
Save ypelletier/047644f4fac43c3274a5c6305c14b178 to your computer and use it in GitHub Desktop.
Réception d'un signal MIDI par un Raspberry Pi Pico.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Réception d'un signal MIDI par un Raspberry Pi Pico. | |
| Ce script minimaliste affiche en hexadécimal chaque donnée reçue via MIDI. | |
| Pour plus d'infos: | |
| https://electroniqueamateur.blogspot.com/2025/07/midi-in-avec-le-raspberry-pi-pico.html | |
| ''' | |
| import machine | |
| uart = machine.UART(1,31250) | |
| while True: | |
| if (uart.any()): | |
| message = uart.read(1)[0] | |
| if (message < 0xf8): # pour éviter les messages "system real time" | |
| print(hex(message)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment