It WAS building just fine, including from the example on "Measuring Battery" with
Code: Select all
// For the Feather ESP32-S2, we need to enable I2C power first!
// this section can be deleted for other boards
#if defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2)
// turn on the I2C power by setting pin to opposite of 'rest state'
pinMode(PIN_I2C_POWER, INPUT);
delay(1);
bool polarity = digitalRead(PIN_I2C_POWER);
pinMode(PIN_I2C_POWER, OUTPUT);
digitalWrite(PIN_I2C_POWER, !polarity);
#endif
(MAC OS 11.7.1 Big Sur) searched all through
Code: Select all
$HOME/Library/Arduino15
$HOME/Documents/Arduino/Libraries
BTW.. My #include file order is:
Code: Select all
#include "SimpleEspNowConnection.h"
#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_ST7789.h> // Hardware-specific library for ST7789
#include <SPI.h>
#include <EasyButton.h>
#include "Adafruit_LC709203F.h"
#include <Adafruit_NeoPixel.h>
#include <vector>
#include <movingAvg.h> // https://github.com/JChristensen/movingAvg
And Yes, as a trial, I went to $HOME/Library/Arduino15, and deleted all ESP32 stuff and re-loaded the ESP32 board library from Espressif (Ver 2.0.5 INSTALLED) .. To no avail.