From f497472127ea9fb6dbcc37f7aa57763dbdc68e47 Mon Sep 17 00:00:00 2001 From: awalol Date: Sun, 26 Apr 2026 23:06:43 +0800 Subject: [PATCH] increase the voltage --- README.md | 2 ++ src/audio.cpp | 6 +++--- src/main.cpp | 3 +++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6bd28e0..1276d09 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,8 @@ # 当前问题: - 声音可能有点小卡顿 +- 由于编码需要,需要对pico进行超频,当前的参数是1.2V 270MHz。个人测试最大频率是270MHz,且效果较好。 +- 若您的pico使用该超频参数无法启动,请自行增加电压或者降低频率 # 未来计划 diff --git a/src/audio.cpp b/src/audio.cpp index 95f95c8..55cf328 100644 --- a/src/audio.cpp +++ b/src/audio.cpp @@ -112,9 +112,9 @@ void audio_loop() { memcpy(pkt + 13, haptic_buf, SAMPLE_SIZE); if (!queue_is_empty(&opus_fifo)) { pkt[77] = (plug_headset ? 0x16 : 0x13) | 0 << 6 | 1 << 7; // Speaker: 0x13 - // L Headset Mono: 0x14 - // L Headset R Speaker: 0x15 - // Headset: 0x16 + // L Headset Mono: 0x14 + // L Headset R Speaker: 0x15 + // Headset: 0x16 pkt[78] = 200; opus_element opus_element{}; if (!queue_try_remove(&opus_fifo,&opus_element)) { diff --git a/src/main.cpp b/src/main.cpp index 2d69a4c..157efc3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -9,6 +9,7 @@ #include "resample.h" #include "audio.h" #include "hardware/clocks.h" +#include "hardware/vreg.h" #include "pico/cyw43_arch.h" int reportSeqCounter = 0; @@ -88,6 +89,8 @@ void tud_hid_set_report_cb(uint8_t itf, uint8_t report_id, hid_report_type_t rep } int main() { + vreg_set_voltage(VREG_VOLTAGE_1_20); + sleep_ms(1000); set_sys_clock_khz(270000, true); board_init();