mirror of
https://github.com/clockworkpi/PicoCalc.git
synced 2026-05-05 16:24:32 +02:00
Add pwm sound sample code
This commit is contained in:
15
Code/picocalc_helloworld/pwm_sound/pwm_sound.h
Normal file
15
Code/picocalc_helloworld/pwm_sound/pwm_sound.h
Normal 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
|
||||
Reference in New Issue
Block a user