Disable meowboy buzzer
Some checks failed
ci / build (push) Has been cancelled

This commit is contained in:
Qubot 2026-06-25 20:36:00 +08:00
parent 90f061d9c0
commit 400e248b4f
2 changed files with 5 additions and 17 deletions

View File

@ -42,9 +42,7 @@
#if defined(RG_TARGET_MEOWBOY)
#undef RG_AUDIO_USE_BUZZER_PIN
#define RG_AUDIO_USE_BUZZER_PIN 14
#define RG_AUDIO_BUZZER_LEDC_CHANNEL LEDC_CHANNEL_1
#define RG_AUDIO_BUZZER_LEDC_TIMER LEDC_TIMER_1
#define RG_AUDIO_USE_BUZZER_PIN 0
#endif
#ifndef RG_PROJECT_NAME
#define RG_PROJECT_NAME "Retro-Go"

View File

@ -53,19 +53,9 @@ Note that there are some restrictions on how high the PWM frequency can be, and
#define SOURCE_CLOCK_MIN_DIVIDER 2 // divider must be [2-65536], according to the docs
#define SOURCE_CLOCK_FREQUENCY 80000000
#define SOURCE_CLOCK_MAX_FREQUENCY SOURCE_CLOCK_FREQUENCY/SOURCE_CLOCK_MIN_DIVIDER
#ifndef RG_AUDIO_BUZZER_LEDC_SPEED_MODE
#define RG_AUDIO_BUZZER_LEDC_SPEED_MODE LEDC_LOW_SPEED_MODE
#endif
#ifndef RG_AUDIO_BUZZER_LEDC_CHANNEL
#define RG_AUDIO_BUZZER_LEDC_CHANNEL LEDC_CHANNEL_0
#endif
#ifndef RG_AUDIO_BUZZER_LEDC_TIMER
#define RG_AUDIO_BUZZER_LEDC_TIMER LEDC_TIMER_0
#endif
#define LEDC_PWM_SPEED_MODE RG_AUDIO_BUZZER_LEDC_SPEED_MODE
#define LEDC_PWM_CHANNEL RG_AUDIO_BUZZER_LEDC_CHANNEL
#define LEDC_PWM_TIMER RG_AUDIO_BUZZER_LEDC_TIMER
#define LEDC_PWM_SPEED_MODE LEDC_LOW_SPEED_MODE
#define LEDC_PWM_CHANNEL LEDC_CHANNEL_0
#define LEDC_PWM_TIMER LEDC_TIMER_0
#define GENERAL_PURPOSE_TIMER_GROUP TIMER_GROUP_0
#define GENERAL_PURPOSE_TIMER TIMER_0
@ -189,7 +179,7 @@ static bool buzzer_init(int device, int sampleRate)
precompute_sine_wave(sampleRate);
#endif
sampleQueue = xQueueCreate(cacheSamples*2, sizeof(int16_t));
sampleQueue = xQueueCreate(cacheSamples*2, sizeof(int16_t*));
if (!sampleQueue) {
RG_LOGE("could not create sampleQueue");
return false;