diff options
m--------- | laks | 0 | ||||
-rw-r--r-- | main.cpp | 3 |
2 files changed, 2 insertions, 1 deletions
diff --git a/laks b/laks -Subproject eaf304f02a234171c2b994138f1bc54338dcd97 +Subproject e31ddf951f6dfc052e3387f5c52e671ff14115f @@ -21,7 +21,7 @@ Pin& usb_vbus = PA9; Pin& usb_dm = PA11; Pin& usb_dp = PA12; -const uint32_t audio_buf_size = 256; +const uint32_t audio_buf_size = 1024; uint16_t audio_buf[audio_buf_size]; uint32_t audio_buf_pos = 0; @@ -211,6 +211,7 @@ int main() { dac_nreset.on(); I2C1.write_reg(0x4a, 0x02, 0x9e); + I2C1.write_reg(0x4a, 0x06, (0 << 7) | (1 << 6) | (0 << 4) | (1 << 2) | (3 << 0)); // Initialize USB. usb_vbus.set_mode(Pin::Input); |