increase the voltage

This commit is contained in:
awalol
2026-04-26 23:06:43 +08:00
parent 756049f3dc
commit f497472127
3 changed files with 8 additions and 3 deletions
+3 -3
View File
@@ -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)) {
+3
View File
@@ -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();