@PaulELong here is a patch that should move the functionalities of P2.20 to P2.33. I didn't have a chance to test it (and I won't have it until next week), but you may want to give this a try.
You have to edit the files on the board, modifying 5 lines in total (adding 2 lines and removing 1 in Bela/include/digital_gpio_mapping.h
; adding 1 line and removing 1 line in Bela/pru/pru_rtaudio.p
). In order to modify these, the best option is to get on the board and use your favourite terminal-based editor, or you can use this hack. Here are the patches:
diff --git a/include/digital_gpio_mapping.h b/include/digital_gpio_mapping.h
index 59db6e2b..e56fd320 100644
--- a/include/digital_gpio_mapping.h
+++ b/include/digital_gpio_mapping.h
@@ -26,6 +26,7 @@ enum
P2_24_GPIO_NO = 44,
P2_25_GPIO_NO = 41,
P2_27_GPIO_NO = 40,
+ P2_33_GPIO_NO = 13,
P2_35_GPIO_NO = 86,
P1_35_GPIO_NO = 88,
P1_32_GPIO_NO = 42,
@@ -65,7 +66,7 @@ static unsigned int digitalPinsPocketBeagle[NUM_DIGITALS] = {
P2_08_GPIO_NO,
P2_10_GPIO_NO,
P2_18_GPIO_NO,
- P2_20_GPIO_NO,
+ P2_33_GPIO_NO,
P2_22_GPIO_NO,
P2_24_GPIO_NO,
P2_25_GPIO_NO,
diff --git a/include/digital_gpio_mapping.h b/include/digital_gpio_mapping.h
index 59db6e2b..e56fd320 100644
--- a/include/digital_gpio_mapping.h
+++ b/include/digital_gpio_mapping.h
@@ -26,6 +26,7 @@ enum
P2_24_GPIO_NO = 44,
P2_25_GPIO_NO = 41,
P2_27_GPIO_NO = 40,
+ P2_33_GPIO_NO = 13,
P2_35_GPIO_NO = 86,
P1_35_GPIO_NO = 88,
P1_32_GPIO_NO = 42,
@@ -65,7 +66,7 @@ static unsigned int digitalPinsPocketBeagle[NUM_DIGITALS] = {
P2_08_GPIO_NO,
P2_10_GPIO_NO,
P2_18_GPIO_NO,
- P2_20_GPIO_NO,
+ P2_33_GPIO_NO,
P2_22_GPIO_NO,
P2_24_GPIO_NO,
P2_25_GPIO_NO,
diff --git a/pru/pru_rtaudio.p b/pru/pru_rtaudio.p
index 43dc5a89..ee31e1a6 100644
--- a/pru/pru_rtaudio.p
+++ b/pru/pru_rtaudio.p
@@ -337,6 +337,7 @@ QBBC BELA_SET_GPIO_BITS_0, reg_flags, FLAG_BIT_BELA_MINI
SET_GPIO_BITS r2, r8, r7, 28, 4, r27
SET_GPIO_BITS r2, r8, r7, 20, 5, r27
SET_GPIO_BITS r2, r8, r7, 15, 6, r27
+ SET_GPIO_BITS r2, r8, r7, 13, 7, r27
SET_GPIO_BITS r2, r8, r7, 14, 8, r27
SET_GPIO_BITS r2, r8, r7, 12, 9, r27
SET_GPIO_BITS r2, r8, r7, 9, 10, r27
@@ -374,7 +375,6 @@ SET_GPIO_BITS_0_DONE:
//r3 is gpio2_oe, r5 is gpio2_setdataout, r4 is gpio2_cleardataout, r27 is the input word
//the following operations will read from r27 and update r3,r4,r5
QBBC BELA_SET_GPIO_BITS_1, reg_flags, FLAG_BIT_BELA_MINI
- SET_GPIO_BITS r3, r5, r4, 0, 7, r27
SET_GPIO_BITS r3, r5, r4, 22, 12, r27
SET_GPIO_BITS r3, r5, r4, 24, 13, r27
QBA SET_GPIO_BITS_1_DONE