-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Additional Adafruit boards including the new Qualia ESP32-S3 and …
…Camera ESP32-S3 (#8696) * Add MatrixPortal ESP32-S3 (WIP) * Update bootloader files, etc. * Add MatrixPortal S3 PSRAM setup to boards.txt * fix neopixel pin * initialize bsp * ? * new variant for tft board with RGB666 40-pin display contact * fix menu name * fix neopixel pins * more pin defs * second bootloader file * fix partition * Update variants/adafruit_camera_esp32s3/pins_arduino.h Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * Update variants/adafruit_qualia_s3_rgb666/pins_arduino.h Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com> * add some #'s * hardware design mistakes? in this economy? now we can use PSRAM and SPI at the same time :) --------- Co-authored-by: Phillip Burgess <paintyourdragon@dslextreme.com> Co-authored-by: Limor "Ladyada" Fried <limor@ladyada.net> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
- Loading branch information
1 parent
c156b89
commit a0b5a09
Showing
15 changed files
with
647 additions
and
7 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# ESP-IDF Partition Table | ||
# Name, Type, SubType, Offset, Size, Flags | ||
# bootloader.bin,, 0x1000, 32K | ||
# partition table, 0x8000, 4K | ||
|
||
nvs, data, nvs, 0x9000, 20K, | ||
otadata, data, ota, 0xe000, 8K, | ||
ota_0, app, ota_0, 0x10000, 2816K, | ||
uf2, app, factory,0x2d0000, 256K, | ||
ffat, data, fat, 0x310000, 960K, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
|
||
|
||
#define USB_VID 0x239A | ||
#define USB_PID 0x8117 | ||
#define USB_MANUFACTURER "Adafruit" | ||
#define USB_PRODUCT "Camera ESP32-S3" | ||
#define USB_SERIAL "" // Empty string for MAC adddress | ||
|
||
|
||
#define EXTERNAL_NUM_INTERRUPTS 46 | ||
#define NUM_DIGITAL_PINS 48 | ||
#define NUM_ANALOG_INPUTS 20 | ||
|
||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1) | ||
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1) | ||
#define digitalPinHasPWM(p) (p < 46) | ||
|
||
static const uint8_t PIN_NEOPIXEL = 1; | ||
static const uint8_t NEOPIXEL_PIN = 1; | ||
|
||
//static const uint8_t TFT_BACKLIGHT = 41; | ||
static const uint8_t TFT_DC = 40; | ||
static const uint8_t TFT_CS = 39; | ||
static const uint8_t TFT_RESET = 38; | ||
static const uint8_t TFT_RST = 38; | ||
|
||
static const uint8_t SD_CS = 48; | ||
static const uint8_t SD_CHIP_SELECT = 48; | ||
static const uint8_t SPEAKER = 41; | ||
|
||
static const uint8_t SDA = 33; | ||
static const uint8_t SCL = 34; | ||
|
||
static const uint8_t SS = 48; | ||
static const uint8_t MOSI = 35; | ||
static const uint8_t SCK = 36; | ||
static const uint8_t MISO = 37; | ||
|
||
static const uint8_t A0 = 17; | ||
static const uint8_t A1 = 18; | ||
static const uint8_t BATT_MONITOR = 4; | ||
static const uint8_t SHUTTER_BUTTON = 0; | ||
|
||
static const uint8_t TX = 43; | ||
static const uint8_t RX = 44; | ||
|
||
static const uint8_t DAC1 = 17; | ||
static const uint8_t DAC2 = 18; | ||
|
||
#define AWEXP_SPKR_SD 0 | ||
#define AWEXP_BUTTON_SEL 1 | ||
#define AWEXP_BACKLIGHT 2 | ||
#define AWEXP_CAM_PWDN 7 | ||
#define AWEXP_SD_DET 8 | ||
#define AWEXP_SD_PWR 9 | ||
#define AWEXP_CAM_RST 10 | ||
#define AWEXP_BUTTON_OK 11 | ||
#define AWEXP_BUTTON_RIGHT 12 | ||
#define AWEXP_BUTTON_UP 13 | ||
#define AWEXP_BUTTON_LEFT 14 | ||
#define AWEXP_BUTTON_DOWN 15 | ||
|
||
#define PWDN_GPIO_NUM -1 // connected through expander | ||
#define RESET_GPIO_NUM -1 // connected through expander | ||
#define XCLK_GPIO_NUM 8 | ||
#define SIOD_GPIO_NUM SDA | ||
#define SIOC_GPIO_NUM SCL | ||
|
||
#define Y9_GPIO_NUM 7 | ||
#define Y8_GPIO_NUM 9 | ||
#define Y7_GPIO_NUM 10 | ||
#define Y6_GPIO_NUM 12 | ||
#define Y5_GPIO_NUM 14 | ||
#define Y4_GPIO_NUM 16 | ||
#define Y3_GPIO_NUM 15 | ||
#define Y2_GPIO_NUM 13 | ||
#define VSYNC_GPIO_NUM 5 | ||
#define HREF_GPIO_NUM 6 | ||
#define PCLK_GPIO_NUM 11 | ||
|
||
|
||
#endif /* Pins_Arduino_h */ |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 2021 Ha Thach (tinyusb.org) for Adafruit Industries | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
*/ | ||
|
||
|
||
#include "esp32-hal-gpio.h" | ||
#include "pins_arduino.h" | ||
|
||
extern "C" { | ||
|
||
// Initialize variant/board, called before setup() | ||
void initVariant(void) | ||
{ | ||
|
||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
10 changes: 10 additions & 0 deletions
10
variants/adafruit_qualia_s3_rgb666/partitions-16MB-tinyuf2.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# ESP-IDF Partition Table | ||
# Name, Type, SubType, Offset, Size, Flags | ||
# bootloader.bin,, 0x1000, 32K | ||
# partition table,, 0x8000, 4K | ||
nvs, data, nvs, 0x9000, 20K, | ||
otadata, data, ota, 0xe000, 8K, | ||
ota_0, app, ota_0, 0x10000, 2048K, | ||
ota_1, app, ota_1, 0x210000, 2048K, | ||
uf2, app, factory,0x410000, 256K, | ||
ffat, data, fat, 0x450000, 11968K, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
|
||
#define USB_VID 0x239A | ||
#define USB_PID 0x8147 | ||
|
||
#define USB_MANUFACTURER "Adafruit" | ||
#define USB_PRODUCT "Qualia ESP32-S3 RGB666" | ||
#define USB_SERIAL "" // Empty string for MAC adddress | ||
|
||
#define EXTERNAL_NUM_INTERRUPTS 46 | ||
#define NUM_DIGITAL_PINS 48 | ||
#define NUM_ANALOG_INPUTS 2 | ||
|
||
#define analogInputToDigitalPin(p) (((p)<NUM_ANALOG_INPUTS)?(analogChannelToDigitalPin(p)):-1) | ||
#define digitalPinToInterrupt(p) (((p)<EXTERNAL_NUM_INTERRUPTS)?(p):-1) | ||
#define digitalPinHasPWM(p) (p < 46) | ||
|
||
static const uint8_t PCA_TFT_SCK = 0; | ||
static const uint8_t PCA_TFT_CS = 1; | ||
static const uint8_t PCA_TFT_RESET = 2; | ||
static const uint8_t PCA_CPT_IRQ = 3; | ||
static const uint8_t PCA_TFT_BACKLIGHT = 4; | ||
static const uint8_t PCA_BUTTON_UP = 5; | ||
static const uint8_t PCA_BUTTON_DOWN = 6; | ||
static const uint8_t PCA_TFT_MOSI = 7; | ||
|
||
static const uint8_t TX = 16; | ||
static const uint8_t RX = 17; | ||
#define TX1 TX | ||
#define RX1 RX | ||
|
||
static const uint8_t SDA = 8; | ||
static const uint8_t SCL = 18; | ||
|
||
static const uint8_t SS = 15; | ||
static const uint8_t MOSI = 7; | ||
static const uint8_t MISO = 6; | ||
static const uint8_t SCK = 5; | ||
|
||
static const uint8_t A0 = 17; | ||
static const uint8_t A1 = 16; | ||
|
||
static const uint8_t T3 = 3; // Touch pin IDs map directly | ||
static const uint8_t T8 = 8; // to underlying GPIO numbers NOT | ||
static const uint8_t T9 = 9; // the analog numbers on board silk | ||
static const uint8_t T10 = 10; | ||
static const uint8_t T11 = 11; | ||
static const uint8_t T12 = 12; | ||
|
||
|
||
static const uint8_t TFT_R1 = 11; | ||
static const uint8_t TFT_R2 = 10; | ||
static const uint8_t TFT_R3 = 9; | ||
static const uint8_t TFT_R4 = 46; | ||
static const uint8_t TFT_R5 = 3; | ||
static const uint8_t TFT_G0 = 48; | ||
static const uint8_t TFT_G1 = 47; | ||
static const uint8_t TFT_G2 = 21; | ||
static const uint8_t TFT_G3 = 14; | ||
static const uint8_t TFT_G4 = 13; | ||
static const uint8_t TFT_G5 = 12; | ||
static const uint8_t TFT_B1 = 40; | ||
static const uint8_t TFT_B2 = 39; | ||
static const uint8_t TFT_B3 = 38; | ||
static const uint8_t TFT_B4 = 0; | ||
static const uint8_t TFT_B5 = 45; | ||
static const uint8_t TFT_PCLK = 1; | ||
static const uint8_t TFT_DE = 2; | ||
static const uint8_t TFT_HSYNC = 41; | ||
static const uint8_t TFT_VSYNC = 42; | ||
|
||
#endif /* Pins_Arduino_h */ |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 2021 Ha Thach (tinyusb.org) for Adafruit Industries | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
*/ | ||
|
||
|
||
#include "esp32-hal-gpio.h" | ||
#include "pins_arduino.h" | ||
|
||
extern "C" { | ||
|
||
// Initialize variant/board, called before setup() | ||
void initVariant(void) { | ||
// default SD_CS to input pullup | ||
pinMode(SS, INPUT_PULLUP); | ||
} | ||
|
||
} |