-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PicoSystem bleepy audio #712
Conversation
Hmm, is the |
59b1757
to
174c33d
Compare
I hope we'll find a use for it one day 😆 |
174c33d
to
27c3f7e
Compare
Right, moved |
PicoSystem+ with improved audio 😄 (I did try it on the VGA board, but it's hardcoded to mono output and i2s is better) |
2efc804
to
6c1fce4
Compare
I'm sneaking a new PicoSystem-specific hardware test in here... |
FIFO fix somehow ended up in there despite being merged already? Maybe the pico-specific hardware test should have a less rainbow-y background, doing a per-pixel |
c78fb38
to
d3f713f
Compare
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA!!!!!!!!!!!!!!!!! |
Bring up PWM audio on GPIO 11, pio1 for PicoSystem. This enables audio output for the 32blit audio engine, but the transistor-amplified piezo on PicoSystem is *really* quiet. Music is probably a no-go on this feeble beeper.
In some cases the ADSR might never decay fully to 0. * If sustain volume is 0, proceed right from decay -> off * Clamp ADSR to sustain volume when sustain phase is triggered
Extract the frequency/duty cycle from the first SQUARE wave channel and route it to PWM on GPIO 11. Run the audio engine to process ADSR phases. Co-authored-by: Charlie Birks <[email protected]>
Add a hardware test for the RP2040-based PicoSystem. Since the PicoSystem has fewer buttons, no joystick and no tilt it makes more sense to ship a different hardware-test rather than IFDEF the other one to oblivion.
d3f713f
to
9b2d738
Compare
Specify `-DAUDIO_PWM:bool=true` when configuring and builds will use AUDIO_PWM instead of AUDIO_BEEP. This is intended for PicoSystems which have been end-user modified with a 20x15mm .7w 8Ohm speaker.
ebdb3d6
to
a337750
Compare
SQUARE
wave enabled channel to the piezo- quiet but beepy!