Merge branch 'master' into release/v3.1.x
This commit is contained in:
commit
35549272b3
23 changed files with 2463 additions and 50 deletions
65
.github/scripts/find_new_boards.sh
vendored
65
.github/scripts/find_new_boards.sh
vendored
|
|
@ -2,59 +2,39 @@
|
||||||
|
|
||||||
# Get inputs from command
|
# Get inputs from command
|
||||||
owner_repository=$1
|
owner_repository=$1
|
||||||
pr_number=$2
|
base_ref=$2
|
||||||
|
|
||||||
url="https://api.github.com/repos/$owner_repository/pulls/$pr_number/files"
|
# Download the boards.txt file from the base branch
|
||||||
echo $url
|
curl -L -o boards_base.txt https://raw.githubusercontent.com/$owner_repository/$base_ref/boards.txt
|
||||||
|
|
||||||
# Get changes in boards.txt file from PR
|
# Compare boards.txt file in the repo with the modified file from PR
|
||||||
Patch=$(curl $url | jq -r '.[] | select(.filename == "boards.txt") | .patch ')
|
diff=$(diff -u boards_base.txt boards.txt)
|
||||||
|
|
||||||
# Extract only changed lines number and count
|
# Check if the diff is empty
|
||||||
substring_patch=$(echo "$Patch" | grep -o '@@[^@]*@@')
|
if [ -z "$diff" ]
|
||||||
|
then
|
||||||
|
echo "No changes in boards.txt file"
|
||||||
|
echo "FQBNS="
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
params_array=()
|
# Extract added or modified lines (lines starting with '+' or '-')
|
||||||
|
modified_lines=$(echo "$diff" | grep -E '^[+-][^+-]')
|
||||||
|
|
||||||
IFS=$'\n' read -d '' -ra params <<< $(echo "$substring_patch" | grep -oE '[-+][0-9]+,[0-9]+')
|
# Print the modified lines for debugging
|
||||||
|
echo "Modified lines:"
|
||||||
for param in "${params[@]}"
|
echo "$modified_lines"
|
||||||
do
|
|
||||||
echo "The parameter is $param"
|
|
||||||
params_array+=("$param")
|
|
||||||
done
|
|
||||||
|
|
||||||
boards_array=()
|
boards_array=()
|
||||||
previous_board=""
|
previous_board=""
|
||||||
file="boards.txt"
|
|
||||||
|
|
||||||
# Loop through boards.txt file and extract all boards that were added
|
|
||||||
for (( c=0; c<${#params_array[@]}; c+=2 ))
|
|
||||||
do
|
|
||||||
deletion_count=$( echo "${params_array[c]}" | cut -d',' -f2 | cut -d' ' -f1 )
|
|
||||||
addition_line=$( echo "${params_array[c+1]}" | cut -d'+' -f2 | cut -d',' -f1 )
|
|
||||||
addition_count=$( echo "${params_array[c+1]}" | cut -d'+' -f2 | cut -d',' -f2 | cut -d' ' -f1 )
|
|
||||||
addition_end=$(($addition_line+$addition_count))
|
|
||||||
|
|
||||||
addition_line=$(($addition_line + 3))
|
|
||||||
addition_end=$(($addition_end - $deletion_count))
|
|
||||||
|
|
||||||
echo $addition_line
|
|
||||||
echo $addition_end
|
|
||||||
|
|
||||||
i=0
|
|
||||||
|
|
||||||
|
# Extract board names from the modified lines, and add them to the boards_array
|
||||||
while read -r line
|
while read -r line
|
||||||
do
|
do
|
||||||
i=$((i+1))
|
|
||||||
if [ $i -lt $addition_line ]
|
|
||||||
then
|
|
||||||
continue
|
|
||||||
elif [ $i -gt $addition_end ]
|
|
||||||
then
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
board_name=$(echo "$line" | cut -d '.' -f1 | cut -d '#' -f1)
|
board_name=$(echo "$line" | cut -d '.' -f1 | cut -d '#' -f1)
|
||||||
if [ "$board_name" != "" ] && [ "$board_name" != "esp32_family" ]
|
# remove + or - from the board name at the beginning
|
||||||
|
board_name=$(echo "$board_name" | sed 's/^[+-]//')
|
||||||
|
if [ "$board_name" != "" ] && [ "$board_name" != "+" ] && [ "$board_name" != "-" ] && [ "$board_name" != "esp32_family" ]
|
||||||
then
|
then
|
||||||
if [ "$board_name" != "$previous_board" ]
|
if [ "$board_name" != "$previous_board" ]
|
||||||
then
|
then
|
||||||
|
|
@ -63,8 +43,7 @@ do
|
||||||
echo "Added 'espressif:esp32:$board_name' to array"
|
echo "Added 'espressif:esp32:$board_name' to array"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done < "$file"
|
done <<< "$modified_lines"
|
||||||
done
|
|
||||||
|
|
||||||
# Create JSON like string with all boards found and pass it to env variable
|
# Create JSON like string with all boards found and pass it to env variable
|
||||||
board_count=${#boards_array[@]}
|
board_count=${#boards_array[@]}
|
||||||
|
|
|
||||||
3
.github/workflows/boards.yml
vendored
3
.github/workflows/boards.yml
vendored
|
|
@ -29,7 +29,7 @@ jobs:
|
||||||
|
|
||||||
- name: Get board name
|
- name: Get board name
|
||||||
run:
|
run:
|
||||||
bash .github/scripts/find_new_boards.sh ${{ github.repository }} ${{github.event.number}}
|
bash .github/scripts/find_new_boards.sh ${{ github.repository }} ${{github.base_ref}}
|
||||||
|
|
||||||
test-boards:
|
test-boards:
|
||||||
needs: find-boards
|
needs: find-boards
|
||||||
|
|
@ -42,6 +42,7 @@ jobs:
|
||||||
name: "espressif:esp32"
|
name: "espressif:esp32"
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix: ${{ fromJson(needs.find-boards.outputs.fqbns) }}
|
matrix: ${{ fromJson(needs.find-boards.outputs.fqbns) }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
16
.github/workflows/push.yml
vendored
16
.github/workflows/push.yml
vendored
|
|
@ -21,12 +21,20 @@ on:
|
||||||
- 'idf_component.yml'
|
- 'idf_component.yml'
|
||||||
- 'Kconfig.projbuild'
|
- 'Kconfig.projbuild'
|
||||||
- 'package.json'
|
- 'package.json'
|
||||||
|
- 'CMakeLists.txt'
|
||||||
- '.github/workflows/push.yml'
|
- '.github/workflows/push.yml'
|
||||||
- '.github/scripts/**'
|
- '.github/scripts/**'
|
||||||
- '!.github/scripts/find_*'
|
- '!.github/scripts/find_*'
|
||||||
- '!.github/scripts/on-release.sh'
|
- '!.github/scripts/on-release.sh'
|
||||||
- '!.github/scripts/tests_*'
|
- '!.github/scripts/tests_*'
|
||||||
- '!.github/scripts/upload_*'
|
- '!.github/scripts/upload_*'
|
||||||
|
- "variants/esp32/**/*"
|
||||||
|
- "variants/esp32s2/**/*"
|
||||||
|
- "variants/esp32s3/**/*"
|
||||||
|
- "variants/esp32c2/**/*"
|
||||||
|
- "variants/esp32c3/**/*"
|
||||||
|
- "variants/esp32c6/**/*"
|
||||||
|
- "variants/esp32h2/**/*"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: build-${{github.event.pull_request.number || github.ref}}
|
group: build-${{github.event.pull_request.number || github.ref}}
|
||||||
|
|
@ -74,6 +82,12 @@ jobs:
|
||||||
- '!tools/platformio-build.py'
|
- '!tools/platformio-build.py'
|
||||||
- 'platform.txt'
|
- 'platform.txt'
|
||||||
- 'programmers.txt'
|
- 'programmers.txt'
|
||||||
|
- "variants/esp32/**/*"
|
||||||
|
- "variants/esp32s2/**/*"
|
||||||
|
- "variants/esp32s3/**/*"
|
||||||
|
- "variants/esp32c3/**/*"
|
||||||
|
- "variants/esp32c6/**/*"
|
||||||
|
- "variants/esp32h2/**/*"
|
||||||
libraries:
|
libraries:
|
||||||
- 'libraries/**/examples/**'
|
- 'libraries/**/examples/**'
|
||||||
- 'libraries/**/src/**'
|
- 'libraries/**/src/**'
|
||||||
|
|
@ -92,6 +106,8 @@ jobs:
|
||||||
idf:
|
idf:
|
||||||
- 'idf_component.yml'
|
- 'idf_component.yml'
|
||||||
- 'Kconfig.projbuild'
|
- 'Kconfig.projbuild'
|
||||||
|
- 'CMakeLists.txt'
|
||||||
|
- "variants/esp32c2/**/*"
|
||||||
platformio:
|
platformio:
|
||||||
- 'package.json'
|
- 'package.json'
|
||||||
- '.github/scripts/install-platformio-esp32.sh'
|
- '.github/scripts/install-platformio-esp32.sh'
|
||||||
|
|
|
||||||
|
|
@ -159,6 +159,7 @@ set(ARDUINO_LIBRARY_HTTPUpdate_SRCS libraries/HTTPUpdate/src/HTTPUpdate.cpp)
|
||||||
set(ARDUINO_LIBRARY_Insights_SRCS libraries/Insights/src/Insights.cpp)
|
set(ARDUINO_LIBRARY_Insights_SRCS libraries/Insights/src/Insights.cpp)
|
||||||
|
|
||||||
set(ARDUINO_LIBRARY_LittleFS_SRCS libraries/LittleFS/src/LittleFS.cpp)
|
set(ARDUINO_LIBRARY_LittleFS_SRCS libraries/LittleFS/src/LittleFS.cpp)
|
||||||
|
set(ARDUINO_LIBRARY_LittleFS_REQUIRES joltwallet__littlefs)
|
||||||
|
|
||||||
set(ARDUINO_LIBRARY_NetBIOS_SRCS libraries/NetBIOS/src/NetBIOS.cpp)
|
set(ARDUINO_LIBRARY_NetBIOS_SRCS libraries/NetBIOS/src/NetBIOS.cpp)
|
||||||
|
|
||||||
|
|
|
||||||
1899
boards.txt
1899
boards.txt
File diff suppressed because it is too large
Load diff
|
|
@ -65,7 +65,7 @@ void setup() {
|
||||||
rgbLedWrite(LED_PIN, 0, 0, 0);
|
rgbLedWrite(LED_PIN, 0, 0, 0);
|
||||||
|
|
||||||
// Init button for factory reset
|
// Init button for factory reset
|
||||||
pinMode(BUTTON_PIN, INPUT);
|
pinMode(BUTTON_PIN, INPUT_PULLUP);
|
||||||
|
|
||||||
// Set callback function for light change
|
// Set callback function for light change
|
||||||
zbColorLight.onLightChange(setRGBLight);
|
zbColorLight.onLightChange(setRGBLight);
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ void setup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Init button switch
|
//Init button switch
|
||||||
pinMode(SWITCH_PIN, INPUT);
|
pinMode(SWITCH_PIN, INPUT_PULLUP);
|
||||||
|
|
||||||
//Optional: set Zigbee device name and model
|
//Optional: set Zigbee device name and model
|
||||||
zbSwitch.setManufacturerAndModel("Espressif", "ZigbeeSwitch");
|
zbSwitch.setManufacturerAndModel("Espressif", "ZigbeeSwitch");
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ void setup() {
|
||||||
digitalWrite(LED_PIN, LOW);
|
digitalWrite(LED_PIN, LOW);
|
||||||
|
|
||||||
// Init button for factory reset
|
// Init button for factory reset
|
||||||
pinMode(BUTTON_PIN, INPUT);
|
pinMode(BUTTON_PIN, INPUT_PULLUP);
|
||||||
|
|
||||||
//Optional: set Zigbee device name and model
|
//Optional: set Zigbee device name and model
|
||||||
zbLight.setManufacturerAndModel("Espressif", "ZBLightBulb");
|
zbLight.setManufacturerAndModel("Espressif", "ZBLightBulb");
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ void setup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Init button switch
|
// Init button switch
|
||||||
pinMode(BUTTON_PIN, INPUT);
|
pinMode(BUTTON_PIN, INPUT_PULLUP);
|
||||||
|
|
||||||
// Optional: set Zigbee device name and model
|
// Optional: set Zigbee device name and model
|
||||||
zbTempSensor.setManufacturerAndModel("Espressif", "ZigbeeTempSensor");
|
zbTempSensor.setManufacturerAndModel("Espressif", "ZigbeeTempSensor");
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ void setup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Init button switch
|
// Init button switch
|
||||||
pinMode(BUTTON_PIN, INPUT);
|
pinMode(BUTTON_PIN, INPUT_PULLUP);
|
||||||
|
|
||||||
// Set callback functions for temperature and configuration receive
|
// Set callback functions for temperature and configuration receive
|
||||||
zbThermostat.onTempRecieve(recieveSensorTemp);
|
zbThermostat.onTempRecieve(recieveSensorTemp);
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import os
|
||||||
|
|
||||||
fib_results = {}
|
fib_results = {}
|
||||||
|
|
||||||
|
|
||||||
def fib(n):
|
def fib(n):
|
||||||
if n < 2:
|
if n < 2:
|
||||||
return n
|
return n
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
||||||
def test_gpio(dut):
|
def test_gpio(dut):
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
||||||
def test_nvs(dut):
|
def test_nvs(dut):
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
||||||
def test_periman(dut):
|
def test_periman(dut):
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
peripherals = [
|
peripherals = [
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
||||||
def test_wifi(dut):
|
def test_wifi(dut):
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
||||||
64
variants/waveshare_esp32_s3_lcd_146/pins_arduino.h
Normal file
64
variants/waveshare_esp32_s3_lcd_146/pins_arduino.h
Normal file
|
|
@ -0,0 +1,64 @@
|
||||||
|
#ifndef Pins_Arduino_h
|
||||||
|
#define Pins_Arduino_h
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include "soc/soc_caps.h"
|
||||||
|
|
||||||
|
// BN: ESP32 Family Device
|
||||||
|
#define USB_VID 0x303a
|
||||||
|
#define USB_PID 0x8258
|
||||||
|
|
||||||
|
#define USB_MANUFACTURER "Waveshare"
|
||||||
|
#define USB_PRODUCT "ESP32-S3-Touch-LCD-1.46"
|
||||||
|
#define USB_SERIAL ""
|
||||||
|
|
||||||
|
// I2C pins
|
||||||
|
static const uint8_t SCL = 10;
|
||||||
|
static const uint8_t SDA = 11;
|
||||||
|
|
||||||
|
static const uint8_t TX = 43;
|
||||||
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
// Mapping based on the ESP32S3 data sheet - alternate for SPI2
|
||||||
|
static const uint8_t SS = 34; // FSPICS0
|
||||||
|
static const uint8_t MOSI = 35; // FSPID
|
||||||
|
static const uint8_t MISO = 37; // FSPIQ
|
||||||
|
static const uint8_t SCK = 36; // FSPICLK
|
||||||
|
|
||||||
|
static const uint8_t A0 = 1;
|
||||||
|
static const uint8_t A1 = 2;
|
||||||
|
static const uint8_t A2 = 3;
|
||||||
|
static const uint8_t A3 = 4;
|
||||||
|
static const uint8_t A4 = 5;
|
||||||
|
static const uint8_t A5 = 6;
|
||||||
|
static const uint8_t A6 = 7;
|
||||||
|
static const uint8_t A7 = 8;
|
||||||
|
static const uint8_t A8 = 9;
|
||||||
|
static const uint8_t A9 = 10;
|
||||||
|
static const uint8_t A10 = 11;
|
||||||
|
static const uint8_t A11 = 12;
|
||||||
|
static const uint8_t A12 = 13;
|
||||||
|
static const uint8_t A13 = 14;
|
||||||
|
static const uint8_t A14 = 15;
|
||||||
|
static const uint8_t A15 = 16;
|
||||||
|
static const uint8_t A16 = 17;
|
||||||
|
static const uint8_t A17 = 18;
|
||||||
|
static const uint8_t A18 = 19;
|
||||||
|
static const uint8_t A19 = 20;
|
||||||
|
|
||||||
|
static const uint8_t T1 = 1;
|
||||||
|
static const uint8_t T2 = 2;
|
||||||
|
static const uint8_t T3 = 3;
|
||||||
|
static const uint8_t T4 = 4;
|
||||||
|
static const uint8_t T5 = 5;
|
||||||
|
static const uint8_t T6 = 6;
|
||||||
|
static const uint8_t T7 = 7;
|
||||||
|
static const uint8_t T8 = 8;
|
||||||
|
static const uint8_t T9 = 9;
|
||||||
|
static const uint8_t T10 = 10;
|
||||||
|
static const uint8_t T11 = 11;
|
||||||
|
static const uint8_t T12 = 12;
|
||||||
|
static const uint8_t T13 = 13;
|
||||||
|
static const uint8_t T14 = 14;
|
||||||
|
|
||||||
|
#endif /* Pins_Arduino_h */
|
||||||
64
variants/waveshare_esp32_s3_lcd_147/pins_arduino.h
Normal file
64
variants/waveshare_esp32_s3_lcd_147/pins_arduino.h
Normal file
|
|
@ -0,0 +1,64 @@
|
||||||
|
#ifndef Pins_Arduino_h
|
||||||
|
#define Pins_Arduino_h
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include "soc/soc_caps.h"
|
||||||
|
|
||||||
|
// BN: ESP32 Family Device
|
||||||
|
#define USB_VID 0x303a
|
||||||
|
#define USB_PID 0x828A
|
||||||
|
|
||||||
|
#define USB_MANUFACTURER "Waveshare"
|
||||||
|
#define USB_PRODUCT "ESP32-S3-LCD-1.47"
|
||||||
|
#define USB_SERIAL ""
|
||||||
|
|
||||||
|
#define PIN_RGB_LED 38
|
||||||
|
|
||||||
|
static const uint8_t TX = 43;
|
||||||
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
static const uint8_t SDA = 8;
|
||||||
|
static const uint8_t SCL = 9;
|
||||||
|
|
||||||
|
static const uint8_t SS = 10;
|
||||||
|
static const uint8_t MOSI = 11;
|
||||||
|
static const uint8_t MISO = 13;
|
||||||
|
static const uint8_t SCK = 12;
|
||||||
|
|
||||||
|
static const uint8_t A0 = 1;
|
||||||
|
static const uint8_t A1 = 2;
|
||||||
|
static const uint8_t A2 = 3;
|
||||||
|
static const uint8_t A3 = 4;
|
||||||
|
static const uint8_t A4 = 5;
|
||||||
|
static const uint8_t A5 = 6;
|
||||||
|
static const uint8_t A6 = 7;
|
||||||
|
static const uint8_t A7 = 8;
|
||||||
|
static const uint8_t A8 = 9;
|
||||||
|
static const uint8_t A9 = 10;
|
||||||
|
static const uint8_t A10 = 11;
|
||||||
|
static const uint8_t A11 = 12;
|
||||||
|
static const uint8_t A12 = 13;
|
||||||
|
static const uint8_t A13 = 14;
|
||||||
|
static const uint8_t A14 = 15;
|
||||||
|
static const uint8_t A15 = 16;
|
||||||
|
static const uint8_t A16 = 17;
|
||||||
|
static const uint8_t A17 = 18;
|
||||||
|
static const uint8_t A18 = 19;
|
||||||
|
static const uint8_t A19 = 20;
|
||||||
|
|
||||||
|
static const uint8_t T1 = 1;
|
||||||
|
static const uint8_t T2 = 2;
|
||||||
|
static const uint8_t T3 = 3;
|
||||||
|
static const uint8_t T4 = 4;
|
||||||
|
static const uint8_t T5 = 5;
|
||||||
|
static const uint8_t T6 = 6;
|
||||||
|
static const uint8_t T7 = 7;
|
||||||
|
static const uint8_t T8 = 8;
|
||||||
|
static const uint8_t T9 = 9;
|
||||||
|
static const uint8_t T10 = 10;
|
||||||
|
static const uint8_t T11 = 11;
|
||||||
|
static const uint8_t T12 = 12;
|
||||||
|
static const uint8_t T13 = 13;
|
||||||
|
static const uint8_t T14 = 14;
|
||||||
|
|
||||||
|
#endif /* Pins_Arduino_h */
|
||||||
64
variants/waveshare_esp32_s3_lcd_185/pins_arduino.h
Normal file
64
variants/waveshare_esp32_s3_lcd_185/pins_arduino.h
Normal file
|
|
@ -0,0 +1,64 @@
|
||||||
|
#ifndef Pins_Arduino_h
|
||||||
|
#define Pins_Arduino_h
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include "soc/soc_caps.h"
|
||||||
|
|
||||||
|
// BN: ESP32 Family Device
|
||||||
|
#define USB_VID 0x303a
|
||||||
|
#define USB_PID 0x8290
|
||||||
|
|
||||||
|
#define USB_MANUFACTURER "Waveshare"
|
||||||
|
#define USB_PRODUCT "ESP32-S3-LCD-1.85"
|
||||||
|
#define USB_SERIAL ""
|
||||||
|
|
||||||
|
// I2C pins
|
||||||
|
static const uint8_t SCL = 10;
|
||||||
|
static const uint8_t SDA = 11;
|
||||||
|
|
||||||
|
static const uint8_t TX = 43;
|
||||||
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
// Mapping based on the ESP32S3 data sheet - alternate for SPI2
|
||||||
|
static const uint8_t SS = 34; // FSPICS0
|
||||||
|
static const uint8_t MOSI = 35; // FSPID
|
||||||
|
static const uint8_t MISO = 37; // FSPIQ
|
||||||
|
static const uint8_t SCK = 36; // FSPICLK
|
||||||
|
|
||||||
|
static const uint8_t A0 = 1;
|
||||||
|
static const uint8_t A1 = 2;
|
||||||
|
static const uint8_t A2 = 3;
|
||||||
|
static const uint8_t A3 = 4;
|
||||||
|
static const uint8_t A4 = 5;
|
||||||
|
static const uint8_t A5 = 6;
|
||||||
|
static const uint8_t A6 = 7;
|
||||||
|
static const uint8_t A7 = 8;
|
||||||
|
static const uint8_t A8 = 9;
|
||||||
|
static const uint8_t A9 = 10;
|
||||||
|
static const uint8_t A10 = 11;
|
||||||
|
static const uint8_t A11 = 12;
|
||||||
|
static const uint8_t A12 = 13;
|
||||||
|
static const uint8_t A13 = 14;
|
||||||
|
static const uint8_t A14 = 15;
|
||||||
|
static const uint8_t A15 = 16;
|
||||||
|
static const uint8_t A16 = 17;
|
||||||
|
static const uint8_t A17 = 18;
|
||||||
|
static const uint8_t A18 = 19;
|
||||||
|
static const uint8_t A19 = 20;
|
||||||
|
|
||||||
|
static const uint8_t T1 = 1;
|
||||||
|
static const uint8_t T2 = 2;
|
||||||
|
static const uint8_t T3 = 3;
|
||||||
|
static const uint8_t T4 = 4;
|
||||||
|
static const uint8_t T5 = 5;
|
||||||
|
static const uint8_t T6 = 6;
|
||||||
|
static const uint8_t T7 = 7;
|
||||||
|
static const uint8_t T8 = 8;
|
||||||
|
static const uint8_t T9 = 9;
|
||||||
|
static const uint8_t T10 = 10;
|
||||||
|
static const uint8_t T11 = 11;
|
||||||
|
static const uint8_t T12 = 12;
|
||||||
|
static const uint8_t T13 = 13;
|
||||||
|
static const uint8_t T14 = 14;
|
||||||
|
|
||||||
|
#endif /* Pins_Arduino_h */
|
||||||
64
variants/waveshare_esp32_s3_relay_6ch/pins_arduino.h
Normal file
64
variants/waveshare_esp32_s3_relay_6ch/pins_arduino.h
Normal file
|
|
@ -0,0 +1,64 @@
|
||||||
|
#ifndef Pins_Arduino_h
|
||||||
|
#define Pins_Arduino_h
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include "soc/soc_caps.h"
|
||||||
|
|
||||||
|
// BN: ESP32 Family Device
|
||||||
|
#define USB_VID 0x303a
|
||||||
|
#define USB_PID 0x8273
|
||||||
|
|
||||||
|
#define USB_MANUFACTURER "Waveshare"
|
||||||
|
#define USB_PRODUCT "ESP32-S3-Relay-6CH"
|
||||||
|
#define USB_SERIAL ""
|
||||||
|
|
||||||
|
#define PIN_RGB_LED 38
|
||||||
|
|
||||||
|
static const uint8_t SDA = 8;
|
||||||
|
static const uint8_t SCL = 9;
|
||||||
|
|
||||||
|
static const uint8_t TX = 43;
|
||||||
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
static const uint8_t SS = 10;
|
||||||
|
static const uint8_t MOSI = 11;
|
||||||
|
static const uint8_t MISO = 13;
|
||||||
|
static const uint8_t SCK = 12;
|
||||||
|
|
||||||
|
static const uint8_t A0 = 1;
|
||||||
|
static const uint8_t A1 = 2;
|
||||||
|
static const uint8_t A2 = 3;
|
||||||
|
static const uint8_t A3 = 4;
|
||||||
|
static const uint8_t A4 = 5;
|
||||||
|
static const uint8_t A5 = 6;
|
||||||
|
static const uint8_t A6 = 7;
|
||||||
|
static const uint8_t A7 = 8;
|
||||||
|
static const uint8_t A8 = 9;
|
||||||
|
static const uint8_t A9 = 10;
|
||||||
|
static const uint8_t A10 = 11;
|
||||||
|
static const uint8_t A11 = 12;
|
||||||
|
static const uint8_t A12 = 13;
|
||||||
|
static const uint8_t A13 = 14;
|
||||||
|
static const uint8_t A14 = 15;
|
||||||
|
static const uint8_t A15 = 16;
|
||||||
|
static const uint8_t A16 = 17;
|
||||||
|
static const uint8_t A17 = 18;
|
||||||
|
static const uint8_t A18 = 19;
|
||||||
|
static const uint8_t A19 = 20;
|
||||||
|
|
||||||
|
static const uint8_t T1 = 1;
|
||||||
|
static const uint8_t T2 = 2;
|
||||||
|
static const uint8_t T3 = 3;
|
||||||
|
static const uint8_t T4 = 4;
|
||||||
|
static const uint8_t T5 = 5;
|
||||||
|
static const uint8_t T6 = 6;
|
||||||
|
static const uint8_t T7 = 7;
|
||||||
|
static const uint8_t T8 = 8;
|
||||||
|
static const uint8_t T9 = 9;
|
||||||
|
static const uint8_t T10 = 10;
|
||||||
|
static const uint8_t T11 = 11;
|
||||||
|
static const uint8_t T12 = 12;
|
||||||
|
static const uint8_t T13 = 13;
|
||||||
|
static const uint8_t T14 = 14;
|
||||||
|
|
||||||
|
#endif /* Pins_Arduino_h */
|
||||||
64
variants/waveshare_esp32_s3_touch_lcd_146/pins_arduino.h
Normal file
64
variants/waveshare_esp32_s3_touch_lcd_146/pins_arduino.h
Normal file
|
|
@ -0,0 +1,64 @@
|
||||||
|
#ifndef Pins_Arduino_h
|
||||||
|
#define Pins_Arduino_h
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include "soc/soc_caps.h"
|
||||||
|
|
||||||
|
// BN: ESP32 Family Device
|
||||||
|
#define USB_VID 0x303a
|
||||||
|
#define USB_PID 0x8287
|
||||||
|
|
||||||
|
#define USB_MANUFACTURER "Waveshare"
|
||||||
|
#define USB_PRODUCT "ESP32-S3-Touch-LCD-1.85-Box"
|
||||||
|
#define USB_SERIAL ""
|
||||||
|
|
||||||
|
// I2C pins
|
||||||
|
static const uint8_t SCL = 10;
|
||||||
|
static const uint8_t SDA = 11;
|
||||||
|
|
||||||
|
static const uint8_t TX = 43;
|
||||||
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
// Mapping based on the ESP32S3 data sheet - alternate for SPI2
|
||||||
|
static const uint8_t SS = 34; // FSPICS0
|
||||||
|
static const uint8_t MOSI = 35; // FSPID
|
||||||
|
static const uint8_t MISO = 37; // FSPIQ
|
||||||
|
static const uint8_t SCK = 36; // FSPICLK
|
||||||
|
|
||||||
|
static const uint8_t A0 = 1;
|
||||||
|
static const uint8_t A1 = 2;
|
||||||
|
static const uint8_t A2 = 3;
|
||||||
|
static const uint8_t A3 = 4;
|
||||||
|
static const uint8_t A4 = 5;
|
||||||
|
static const uint8_t A5 = 6;
|
||||||
|
static const uint8_t A6 = 7;
|
||||||
|
static const uint8_t A7 = 8;
|
||||||
|
static const uint8_t A8 = 9;
|
||||||
|
static const uint8_t A9 = 10;
|
||||||
|
static const uint8_t A10 = 11;
|
||||||
|
static const uint8_t A11 = 12;
|
||||||
|
static const uint8_t A12 = 13;
|
||||||
|
static const uint8_t A13 = 14;
|
||||||
|
static const uint8_t A14 = 15;
|
||||||
|
static const uint8_t A15 = 16;
|
||||||
|
static const uint8_t A16 = 17;
|
||||||
|
static const uint8_t A17 = 18;
|
||||||
|
static const uint8_t A18 = 19;
|
||||||
|
static const uint8_t A19 = 20;
|
||||||
|
|
||||||
|
static const uint8_t T1 = 1;
|
||||||
|
static const uint8_t T2 = 2;
|
||||||
|
static const uint8_t T3 = 3;
|
||||||
|
static const uint8_t T4 = 4;
|
||||||
|
static const uint8_t T5 = 5;
|
||||||
|
static const uint8_t T6 = 6;
|
||||||
|
static const uint8_t T7 = 7;
|
||||||
|
static const uint8_t T8 = 8;
|
||||||
|
static const uint8_t T9 = 9;
|
||||||
|
static const uint8_t T10 = 10;
|
||||||
|
static const uint8_t T11 = 11;
|
||||||
|
static const uint8_t T12 = 12;
|
||||||
|
static const uint8_t T13 = 13;
|
||||||
|
static const uint8_t T14 = 14;
|
||||||
|
|
||||||
|
#endif /* Pins_Arduino_h */
|
||||||
64
variants/waveshare_esp32_s3_touch_lcd_185_box/pins_arduino.h
Normal file
64
variants/waveshare_esp32_s3_touch_lcd_185_box/pins_arduino.h
Normal file
|
|
@ -0,0 +1,64 @@
|
||||||
|
#ifndef Pins_Arduino_h
|
||||||
|
#define Pins_Arduino_h
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include "soc/soc_caps.h"
|
||||||
|
|
||||||
|
// BN: ESP32 Family Device
|
||||||
|
#define USB_VID 0x303a
|
||||||
|
#define USB_PID 0x825B
|
||||||
|
|
||||||
|
#define USB_MANUFACTURER "Waveshare"
|
||||||
|
#define USB_PRODUCT "ESP32-S3-Touch-LCD-2.1"
|
||||||
|
#define USB_SERIAL ""
|
||||||
|
|
||||||
|
// I2C pins
|
||||||
|
static const uint8_t SCL = 7;
|
||||||
|
static const uint8_t SDA = 15;
|
||||||
|
|
||||||
|
static const uint8_t TX = 43;
|
||||||
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
// Mapping based on the ESP32S3 data sheet - alternate for SPI2
|
||||||
|
static const uint8_t SS = 34; // FSPICS0
|
||||||
|
static const uint8_t MOSI = 35; // FSPID
|
||||||
|
static const uint8_t MISO = 37; // FSPIQ
|
||||||
|
static const uint8_t SCK = 36; // FSPICLK
|
||||||
|
|
||||||
|
static const uint8_t A0 = 1;
|
||||||
|
static const uint8_t A1 = 2;
|
||||||
|
static const uint8_t A2 = 3;
|
||||||
|
static const uint8_t A3 = 4;
|
||||||
|
static const uint8_t A4 = 5;
|
||||||
|
static const uint8_t A5 = 6;
|
||||||
|
static const uint8_t A6 = 7;
|
||||||
|
static const uint8_t A7 = 8;
|
||||||
|
static const uint8_t A8 = 9;
|
||||||
|
static const uint8_t A9 = 10;
|
||||||
|
static const uint8_t A10 = 11;
|
||||||
|
static const uint8_t A11 = 12;
|
||||||
|
static const uint8_t A12 = 13;
|
||||||
|
static const uint8_t A13 = 14;
|
||||||
|
static const uint8_t A14 = 15;
|
||||||
|
static const uint8_t A15 = 16;
|
||||||
|
static const uint8_t A16 = 17;
|
||||||
|
static const uint8_t A17 = 18;
|
||||||
|
static const uint8_t A18 = 19;
|
||||||
|
static const uint8_t A19 = 20;
|
||||||
|
|
||||||
|
static const uint8_t T1 = 1;
|
||||||
|
static const uint8_t T2 = 2;
|
||||||
|
static const uint8_t T3 = 3;
|
||||||
|
static const uint8_t T4 = 4;
|
||||||
|
static const uint8_t T5 = 5;
|
||||||
|
static const uint8_t T6 = 6;
|
||||||
|
static const uint8_t T7 = 7;
|
||||||
|
static const uint8_t T8 = 8;
|
||||||
|
static const uint8_t T9 = 9;
|
||||||
|
static const uint8_t T10 = 10;
|
||||||
|
static const uint8_t T11 = 11;
|
||||||
|
static const uint8_t T12 = 12;
|
||||||
|
static const uint8_t T13 = 13;
|
||||||
|
static const uint8_t T14 = 14;
|
||||||
|
|
||||||
|
#endif /* Pins_Arduino_h */
|
||||||
64
variants/waveshare_esp32_s3_touch_lcd_21/pins_arduino.h
Normal file
64
variants/waveshare_esp32_s3_touch_lcd_21/pins_arduino.h
Normal file
|
|
@ -0,0 +1,64 @@
|
||||||
|
#ifndef Pins_Arduino_h
|
||||||
|
#define Pins_Arduino_h
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include "soc/soc_caps.h"
|
||||||
|
|
||||||
|
// BN: ESP32 Family Device
|
||||||
|
#define USB_VID 0x303a
|
||||||
|
#define USB_PID 0x825E
|
||||||
|
|
||||||
|
#define USB_MANUFACTURER "Waveshare"
|
||||||
|
#define USB_PRODUCT "ESP32-S3-Touch-LCD-2.8"
|
||||||
|
#define USB_SERIAL ""
|
||||||
|
|
||||||
|
// I2C pins
|
||||||
|
static const uint8_t SCL = 10;
|
||||||
|
static const uint8_t SDA = 11;
|
||||||
|
|
||||||
|
static const uint8_t TX = 43;
|
||||||
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
// Mapping based on the ESP32S3 data sheet - alternate for SPI2
|
||||||
|
static const uint8_t SS = 34; // FSPICS0
|
||||||
|
static const uint8_t MOSI = 35; // FSPID
|
||||||
|
static const uint8_t MISO = 37; // FSPIQ
|
||||||
|
static const uint8_t SCK = 36; // FSPICLK
|
||||||
|
|
||||||
|
static const uint8_t A0 = 1;
|
||||||
|
static const uint8_t A1 = 2;
|
||||||
|
static const uint8_t A2 = 3;
|
||||||
|
static const uint8_t A3 = 4;
|
||||||
|
static const uint8_t A4 = 5;
|
||||||
|
static const uint8_t A5 = 6;
|
||||||
|
static const uint8_t A6 = 7;
|
||||||
|
static const uint8_t A7 = 8;
|
||||||
|
static const uint8_t A8 = 9;
|
||||||
|
static const uint8_t A9 = 10;
|
||||||
|
static const uint8_t A10 = 11;
|
||||||
|
static const uint8_t A11 = 12;
|
||||||
|
static const uint8_t A12 = 13;
|
||||||
|
static const uint8_t A13 = 14;
|
||||||
|
static const uint8_t A14 = 15;
|
||||||
|
static const uint8_t A15 = 16;
|
||||||
|
static const uint8_t A16 = 17;
|
||||||
|
static const uint8_t A17 = 18;
|
||||||
|
static const uint8_t A18 = 19;
|
||||||
|
static const uint8_t A19 = 20;
|
||||||
|
|
||||||
|
static const uint8_t T1 = 1;
|
||||||
|
static const uint8_t T2 = 2;
|
||||||
|
static const uint8_t T3 = 3;
|
||||||
|
static const uint8_t T4 = 4;
|
||||||
|
static const uint8_t T5 = 5;
|
||||||
|
static const uint8_t T6 = 6;
|
||||||
|
static const uint8_t T7 = 7;
|
||||||
|
static const uint8_t T8 = 8;
|
||||||
|
static const uint8_t T9 = 9;
|
||||||
|
static const uint8_t T10 = 10;
|
||||||
|
static const uint8_t T11 = 11;
|
||||||
|
static const uint8_t T12 = 12;
|
||||||
|
static const uint8_t T13 = 13;
|
||||||
|
static const uint8_t T14 = 14;
|
||||||
|
|
||||||
|
#endif /* Pins_Arduino_h */
|
||||||
64
variants/waveshare_esp32_s3_touch_lcd_28/pins_arduino.h
Normal file
64
variants/waveshare_esp32_s3_touch_lcd_28/pins_arduino.h
Normal file
|
|
@ -0,0 +1,64 @@
|
||||||
|
#ifndef Pins_Arduino_h
|
||||||
|
#define Pins_Arduino_h
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include "soc/soc_caps.h"
|
||||||
|
|
||||||
|
// BN: ESP32 Family Device
|
||||||
|
#define USB_VID 0x303a
|
||||||
|
#define USB_PID 0x825E
|
||||||
|
|
||||||
|
#define USB_MANUFACTURER "Waveshare"
|
||||||
|
#define USB_PRODUCT "ESP32-S3-Touch-LCD-2.8"
|
||||||
|
#define USB_SERIAL ""
|
||||||
|
|
||||||
|
// I2C pins
|
||||||
|
static const uint8_t SCL = 10;
|
||||||
|
static const uint8_t SDA = 11;
|
||||||
|
|
||||||
|
static const uint8_t TX = 43;
|
||||||
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
// Mapping based on the ESP32S3 data sheet - alternate for SPI2
|
||||||
|
static const uint8_t SS = 34; // FSPICS0
|
||||||
|
static const uint8_t MOSI = 35; // FSPID
|
||||||
|
static const uint8_t MISO = 37; // FSPIQ
|
||||||
|
static const uint8_t SCK = 36; // FSPICLK
|
||||||
|
|
||||||
|
static const uint8_t A0 = 1;
|
||||||
|
static const uint8_t A1 = 2;
|
||||||
|
static const uint8_t A2 = 3;
|
||||||
|
static const uint8_t A3 = 4;
|
||||||
|
static const uint8_t A4 = 5;
|
||||||
|
static const uint8_t A5 = 6;
|
||||||
|
static const uint8_t A6 = 7;
|
||||||
|
static const uint8_t A7 = 8;
|
||||||
|
static const uint8_t A8 = 9;
|
||||||
|
static const uint8_t A9 = 10;
|
||||||
|
static const uint8_t A10 = 11;
|
||||||
|
static const uint8_t A11 = 12;
|
||||||
|
static const uint8_t A12 = 13;
|
||||||
|
static const uint8_t A13 = 14;
|
||||||
|
static const uint8_t A14 = 15;
|
||||||
|
static const uint8_t A15 = 16;
|
||||||
|
static const uint8_t A16 = 17;
|
||||||
|
static const uint8_t A17 = 18;
|
||||||
|
static const uint8_t A18 = 19;
|
||||||
|
static const uint8_t A19 = 20;
|
||||||
|
|
||||||
|
static const uint8_t T1 = 1;
|
||||||
|
static const uint8_t T2 = 2;
|
||||||
|
static const uint8_t T3 = 3;
|
||||||
|
static const uint8_t T4 = 4;
|
||||||
|
static const uint8_t T5 = 5;
|
||||||
|
static const uint8_t T6 = 6;
|
||||||
|
static const uint8_t T7 = 7;
|
||||||
|
static const uint8_t T8 = 8;
|
||||||
|
static const uint8_t T9 = 9;
|
||||||
|
static const uint8_t T10 = 10;
|
||||||
|
static const uint8_t T11 = 11;
|
||||||
|
static const uint8_t T12 = 12;
|
||||||
|
static const uint8_t T13 = 13;
|
||||||
|
static const uint8_t T14 = 14;
|
||||||
|
|
||||||
|
#endif /* Pins_Arduino_h */
|
||||||
Loading…
Reference in a new issue