dev: Getting the GPIO and such set up, starting to poke at NeoPixel
This commit is contained in:
parent
ba64e2bcf3
commit
ba27097ced
4 changed files with 237 additions and 16 deletions
6
main.cpp
6
main.cpp
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue