Search found 2 matches

by Trapsis
Thu Feb 21, 2019 2:41 pm
Forum: Drivers for External Components
Topic: RTTTL - Ring Tone Text Transfer Language driving a Piezo Speaker
Replies: 6
Views: 13980

Re: RTTTL - Ring Tone Text Transfer Language driving a Piezo Speaker

Thanks for the advice. This works better and will get through the tune ok, but the timing seems off. I think it is the rests (pauses) that are not working well (sorry, code block not formatted. still noob here I guess :) ) from rtttl import RTTTL import songs import time from machine import Pin, PWM...
by Trapsis
Tue Feb 19, 2019 12:30 pm
Forum: Drivers for External Components
Topic: RTTTL - Ring Tone Text Transfer Language driving a Piezo Speaker
Replies: 6
Views: 13980

Re: RTTTL - Ring Tone Text Transfer Language driving a Piezo Speaker

Very cool! Just what I'm looking for. I'm trying to adapt your code to work on an ESP32 board using the machine.PWM library. I'm still debugging it but there is not much that needed to change. It doesn't get through a whole song before failing. Here is the code if you are curious: from rtttl import ...