increase the voltage
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
|
||||
# 当前问题:
|
||||
- 声音可能有点小卡顿
|
||||
- 由于编码需要,需要对pico进行超频,当前的参数是1.2V 270MHz。个人测试最大频率是270MHz,且效果较好。
|
||||
- 若您的pico使用该超频参数无法启动,请自行增加电压或者降低频率
|
||||
|
||||
# 未来计划
|
||||
|
||||
|
||||
+3
-3
@@ -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)) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user