File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
ports/raspberrypi/common-hal/audiobusio Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 19
19
#include "bindings/rp2pio/StateMachine.h"
20
20
21
21
const uint16_t i2s_program [] = {
22
- /*
22
+
23
+ /* From i2s.pio:
24
+
23
25
.program i2s
24
26
.side_set 2
25
27
@@ -55,7 +57,8 @@ const uint16_t i2s_program[] = {
55
57
56
58
57
59
const uint16_t i2s_program_left_justified [] = {
58
- /*
60
+ /* From i2s_left.pio:
61
+
59
62
.program i2s
60
63
.side_set 2
61
64
@@ -91,7 +94,8 @@ const uint16_t i2s_program_left_justified[] = {
91
94
92
95
// Another version of i2s_program with the LRCLC and BCLK pin swapped
93
96
const uint16_t i2s_program_swap [] = {
94
- /*
97
+ /* From i2s_swap.pio:
98
+
95
99
.program i2s
96
100
.side_set 2
97
101
@@ -128,7 +132,8 @@ const uint16_t i2s_program_swap[] = {
128
132
// Another version of i2s_program_left_justified with the LRCLC and BCLK pin
129
133
// swapped.
130
134
const uint16_t i2s_program_left_justified_swap [] = {
131
- /*
135
+ /* From i2s_swap_left.pio:
136
+
132
137
.program i2s
133
138
.side_set 2
134
139
Original file line number Diff line number Diff line change 1
1
.pio files right now are compiled by hand with pico-sdk/tools/pioasm and inserted into I2SOut.c
2
+
3
+ i2s.pio regular pin order, not left_justified
4
+ i2s_left.pio regular pin order, left_justified
5
+
6
+ i2s_swap.pio swapped pin order, not left_justified
7
+ i2s_swap_left.pio swapped pin order, left_justified
You can’t perform that action at this time.
0 commit comments