prepare display

This commit is contained in:
2024-03-22 18:38:30 +01:00
parent 10a09e3ad3
commit a32ef8fa5b
7 changed files with 73 additions and 5 deletions

View File

@ -2,8 +2,8 @@
#include "spi.h"
void spiInit() {
// SPI in master mode
UCB0CTL0 = UCMST;
// SPI in master mode, most significant bit first
UCB0CTL0 = UCMST | UCMSB;
// SPI timing config
UCB0CTL1 = UCSSEL_3;
// Faster than 8 ends up in strange communication errors