Sudden missing board library #define "ARDUINO_ADAFRUIT_FEATHER_ESP32S2"

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
awardblvr
 
Posts: 19
Joined: Tue Sep 24, 2013 6:53 pm

Sudden missing board library #define "ARDUINO_ADAFRUIT_FEATHER_ESP32S2"

Post by awardblvr »

Using the Feather TFT ESP32-S2 (Did L.A. just release an "S3" version???)

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
But, now when I build, this #define is MISSING (this code gets skipped during compile).

(MAC OS 11.7.1 Big Sur) searched all through

Code: Select all

$HOME/Library/Arduino15
$HOME/Documents/Arduino/Libraries
But, I cannot find where ARDUINO_ADAFRUIT_FEATHER_ESP32S2 is/was #defined.

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
Does anyone have knowledge of where the heck ARDUINO_ADAFRUIT_FEATHER_ESP32S2 should be coming from and why it is all of a sudden MISSING?

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.

User avatar
awardblvr
 
Posts: 19
Joined: Tue Sep 24, 2013 6:53 pm

Re: Sudden missing board library #define "ARDUINO_ADAFRUIT_FEATHER_ESP32S2"

Post by awardblvr »

Uh oh.. DUH!!! Found my problem.

ARDUINO_ADAFRUIT_FEATHER_ESP32S2 was not defined anywhere... (I would need to define it locally.)

I assumed it was #defined because the LC709203F code was working. But, this contained code turned on the peripheral power.. But, this was already done in earlier in my sketch... I had assumed this was happening here... But, that code is NOT even needed in my particular sketch.

So nevermind.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”