Get ESP32S3 Dev Module chip info and predefined pins (arduino-esp32), tested on NodeMCU ESP-S3-12K-Kit
Exercise to get ESP32S3 Dev Module chip info and predefined pins
(arduino-esp32), tested on
NodeMCU ESP-S3-12K-Kit.
#include <Esp.h>
void setup() {
delay(500);
Serial.begin(115200);
delay(500);
Serial.println("\n\n==================================");
Serial.println("Get info and pre-defined pins in ESP32S3 Dev Module");
Serial.println("Tested on AI Thinker NodeMCU ESP-S3-12K-Kit:");
Serial.println("==================================");
Serial.printf("Chip Model: %s\n", ESP.getChipModel());
Serial.printf("Chip Revision: %d\n", ESP.getChipRevision());
Serial.printf("with %d core\n", ESP.getChipCores());
Serial.printf("Flash Chip Size : %d \n", ESP.getFlashChipSize());
Serial.printf("Flash Chip Speed : %d \n", ESP.getFlashChipSpeed());
esp_chip_info_t chip_info;
esp_chip_info(&chip_info);
Serial.printf("\nFeatures included:\n %s\n %s\n %s\n %s\n %s\n",
(chip_info.features & CHIP_FEATURE_EMB_FLASH) ? "embedded flash" : "",
(chip_info.features & CHIP_FEATURE_WIFI_BGN) ? "2.4GHz WiFi" : "",
(chip_info.features & CHIP_FEATURE_BLE) ? "Bluetooth LE" : "",
(chip_info.features & CHIP_FEATURE_BT) ? "Bluetooth Classic" : "",
(chip_info.features & CHIP_FEATURE_IEEE802154) ? "IEEE 802.15.4" : "");
Serial.println();
/*
print pre-defined pins, defined in:
.../.arduino15/packages/esp32/hardware/esp32/2.0.5/variants/esp32s3/pins_arduino.h
*/
Serial.println("================================");
Serial.println("UART pins:");
Serial.printf("\tTX: %d\n", TX);
Serial.printf("\tRX: %d\n", RX);
Serial.println("I2C pins:");
Serial.printf("\tSDA: %d\n", SDA);
Serial.printf("\tSCL: %d\n", SCL);
Serial.println("SPI pins:");
Serial.printf("\tSS : %d\n", SS);
Serial.printf("\tMOSI: %d\n", MOSI);
Serial.printf("\tMISO: %d\n", MISO);
Serial.printf("\tSCK : %d\n", SCK);
Serial.println("A pins:");
Serial.printf("\tA0 : %d\n", A0);
Serial.printf("\tA1 : %d\n", A1);
Serial.printf("\tA2 : %d\n", A2);
Serial.printf("\tA3 : %d\n", A3);
Serial.printf("\tA4 : %d\n", A4);
Serial.printf("\tA5 : %d\n", A5);
Serial.printf("\tA6 : %d\n", A6);
Serial.printf("\tA7 : %d\n", A7);
Serial.printf("\tA8 : %d\n", A8);
Serial.printf("\tA9 : %d\n", A9);
Serial.printf("\tA10 : %d\n", A10);
Serial.printf("\tA11 : %d\n", A11);
Serial.printf("\tA12 : %d\n", A12);
Serial.printf("\tA13 : %d\n", A13);
Serial.printf("\tA14 : %d\n", A14);
Serial.printf("\tA15 : %d\n", A15);
Serial.printf("\tA16 : %d\n", A16);
Serial.printf("\tA17 : %d\n", A17);
Serial.printf("\tA18 : %d\n", A18);
Serial.printf("\tA19 : %d\n", A19);
Serial.println("T pins:");
Serial.printf("\tT1 : %d\n", T1);
Serial.printf("\tT2 : %d\n", T2);
Serial.printf("\tT3 : %d\n", T3);
Serial.printf("\tT4 : %d\n", T4);
Serial.printf("\tT5 : %d\n", T5);
Serial.printf("\tT6 : %d\n", T6);
Serial.printf("\tT7 : %d\n", T7);
Serial.printf("\tT8 : %d\n", T8);
Serial.printf("\tT9 : %d\n", T9);
Serial.printf("\tT10 : %d\n", T10);
Serial.printf("\tT11 : %d\n", T11);
Serial.printf("\tT12 : %d\n", T12);
Serial.printf("\tT13 : %d\n", T13);
Serial.printf("\tT14 : %d\n", T14);
Serial.println("\n- end -");
}
void loop() {
// put your main code here, to run repeatedly:
}
output:==================================
Get info and pre-defined pins in ESP32S3 Dev Module
Tested on AI Thinker NodeMCU ESP-S3-12K-Kit:
==================================
Chip Model: ESP32-S3
Chip Revision: 0
with 2 core
Flash Chip Size : 8388608
Flash Chip Speed : 80000000
Features included:
2.4GHz WiFi
Bluetooth LE
================================
UART pins:
TX: 43
RX: 44
I2C pins:
SDA: 8
SCL: 9
SPI pins:
SS : 10
MOSI: 11
MISO: 13
SCK : 12
A pins:
A0 : 1
A1 : 2
A2 : 3
A3 : 4
A4 : 5
A5 : 6
A6 : 7
A7 : 8
A8 : 9
A9 : 10
A10 : 11
A11 : 12
A12 : 13
A13 : 14
A14 : 15
A15 : 16
A16 : 17
A17 : 18
A18 : 19
A19 : 20
T pins:
T1 : 1
T2 : 2
T3 : 3
T4 : 4
T5 : 5
T6 : 6
T7 : 7
T8 : 8
T9 : 9
T10 : 10
T11 : 11
T12 : 12
T13 : 13
T14 : 14
- end -
Comments
Post a Comment