add mute switch

This commit is contained in:
2024-04-10 14:37:20 +02:00
parent 9a58eedcc4
commit 761de5a94d
5 changed files with 33 additions and 3 deletions

View File

@ -15,8 +15,8 @@ void spiInit() {
// BIT5: UCB0CLK
// BIT6: UCB0SOMI
// BIT7: UCB0SIMO
P1SEL |= BIT4 | BIT5 | BIT6 | BIT7;
P1SEL2 |= BIT4 | BIT5 | BIT6 | BIT7;
P1SEL |= BIT4 | BIT5 | BIT7;
P1SEL2 |= BIT4 | BIT5 | BIT7;
// most significant bit first, enable STE
UCB0CTL0 = UCSYNC | UCMSB | UCMODE_2;