From ba27097cedc504d6135f5652013d00c1581be40e Mon Sep 17 00:00:00 2001 From: "A.M. Rowsell" Date: Sun, 3 Aug 2025 13:12:09 -0400 Subject: [PATCH] dev: Getting the GPIO and such set up, starting to poke at NeoPixel --- NeoPixel.hpp | 2 +- main.cpp | 6 + nbproject/configurations.xml | 239 +++++++++++++++++++++++++++++++++-- nbproject/project.xml | 6 +- 4 files changed, 237 insertions(+), 16 deletions(-) diff --git a/NeoPixel.hpp b/NeoPixel.hpp index 94a84a8..fc3c407 100644 --- a/NeoPixel.hpp +++ b/NeoPixel.hpp @@ -7,7 +7,7 @@ #ifndef NEOPIXEL_HPP #define NEOPIXEL_HPP -#include +#include class NeoPixel { public: diff --git a/main.cpp b/main.cpp index f109b92..9625693 100644 --- a/main.cpp +++ b/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 diff --git a/nbproject/configurations.xml b/nbproject/configurations.xml index d9e09c7..a00406b 100644 --- a/nbproject/configurations.xml +++ b/nbproject/configurations.xml @@ -41,7 +41,7 @@ Makefile - + localhost PIC32MX270F256B @@ -85,7 +85,6 @@ - @@ -102,7 +101,7 @@ - + @@ -114,7 +113,7 @@ - + @@ -144,6 +143,220 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + localhost + PIC32MX270F256B + + + noID + XC32 + 4.60 + 2 + + + + + + + + + + + + + + + false + false + + + + + + + false + false + + false + + false + false + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -163,7 +376,6 @@ - @@ -180,9 +392,9 @@ - + - + @@ -195,13 +407,13 @@ - + - + - + @@ -209,7 +421,6 @@ - @@ -217,14 +428,14 @@ - + - - + + diff --git a/nbproject/project.xml b/nbproject/project.xml index b9034e7..50d0ea8 100644 --- a/nbproject/project.xml +++ b/nbproject/project.xml @@ -11,7 +11,11 @@ - default + Debug + 2 + + + Production 2