dev: Getting the GPIO and such set up, starting to poke at NeoPixel

This commit is contained in:
A.M. Rowsell 2025-08-03 13:12:09 -04:00
commit ba27097ced
Signed by untrusted user who does not match committer: amr
GPG key ID: E0879EDBDB0CA7B1
4 changed files with 237 additions and 16 deletions

View file

@ -60,6 +60,12 @@
volatile uint8_t spi_rx_buffer[8];
// dummy open to get rid of linker error
extern "C" int open(const char *buf, int flags, int mode) {
// Always return failure — no file system.
return -1;
}
void sendChar(uint8_t c) {
U1TXREG = c;
while(!U1STAbits.TRMT); // wait for transmission