From 677b9b673c90b6ec4fb0e04f280ffa17d8172554 Mon Sep 17 00:00:00 2001 From: Gregg Date: Sun, 4 Sep 2022 10:03:59 -0500 Subject: [PATCH] Update FeatherPins.h Added BUILTIN_PIXEL for S2, C3, and S3 chips --- src/FeatherPins.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/FeatherPins.h b/src/FeatherPins.h index 7072d86..b41aa7e 100644 --- a/src/FeatherPins.h +++ b/src/FeatherPins.h @@ -29,7 +29,7 @@ // Facilitates the testing of identical code on an ESP32, ESP32-S2, and ESP32-C3 using a common jig without rewiring #pragma once - + #if defined(ARDUINO_FEATHER_ESP32) enum { F13=13,F12=12,F27=27,F15=15,F32=32,F14=14,F16=16,F17=17,F21=21, // Digital Only (9 pins) @@ -44,7 +44,8 @@ F13=1,F12=3,F27=7,F15=10,F32=42,F14=11,F16=20,F17=21,F21=16, // Digital Only (9 pins) F26=17,F25=14,F34=13,F39=12,F36=18,F4=19, // A0-A5 F22=9,F23=8, // I2C SCL/SDA - F5=36,F18=35,F19=37,F33=34 // SPI SCK/SDO/SDI/CS + F5=36,F18=35,F19=37,F33=34, // SPI SCK/SDO/SDI/CS + BUILTIN_PIXEL=18 // Built-in Neo-Pixel }; #define DEVICE_SUFFIX "-S2" @@ -53,7 +54,8 @@ F27=2,F32=3,F14=10,F16=20,F17=21,F21=19, // Digital Only (6 pins) F26=0,F25=1,F4=18, // A0/A1/A5 F22=9,F23=8, // I2C SCL/SDA - F5=4,F18=6,F19=5,F33=7 // SPI SCK/SDO/SDI/CS + F5=4,F18=6,F19=5,F33=7, // SPI SCK/SDO/SDI/CS + BUILTIN_PIXEL=8 // Built-in Neo-Pixel }; #define DEVICE_SUFFIX "-C3" @@ -62,7 +64,8 @@ F13=5,F12=6,F27=7,F15=16,F32=17,F14=18,F16=37,F17=36,F21=35, // Digital Only (9 pins) F26=1,F25=2,F34=20,F39=19,F36=15,F4=4, // A0-A5 F22=9,F23=8, // I2C SCL/SDA - F5=12,F18=11,F19=13,F33=10 // SPI SCK/SDO/SDI/CS + F5=12,F18=11,F19=13,F33=10, // SPI SCK/SDO/SDI/CS + BUILTIN_PIXEL=48 // Built-in Neo-Pixel }; #define DEVICE_SUFFIX "-S3"