feature: modify i2s interface/implementation to better match specification

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2024-12-08 10:37:30 +01:00
committed by Ron Evans
parent 6110f0bc1b
commit 5701bf81f3
18 changed files with 173 additions and 70 deletions
+2 -2
View File
@@ -13,11 +13,11 @@ func main() {
Stereo: true,
})
data := make([]uint32, 64)
data := make([]uint16, 64)
for {
// get the next group of samples
machine.I2S0.Read(data)
machine.I2S0.ReadMono(data)
println("data", data[0], data[1], data[2], data[4], "...")
}