Add pwm sound sample code

This commit is contained in:
cuu
2025-03-29 16:42:05 +08:00
parent 188f2ca65b
commit c99316b917
6 changed files with 3547 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
#ifndef PWM_SOUND_H
#define PWM_SOUND_H
#include "pico/stdlib.h"
#include "hardware/pwm.h"
#include <stdio.h>
#define PWM_CLOCK_KHZ 133000
#define AUDIO_PIN_L 26
#define AUDIO_PIN_R 27
void init_pwm(irq_handler_t);
#endif //PWM_SOUND_H