Prvni ulozeni z chegewara githubu
This commit is contained in:
32
variants/AirM2M_CORE_ESP32C3/pins_arduino.h
Normal file
32
variants/AirM2M_CORE_ESP32C3/pins_arduino.h
Normal file
@ -0,0 +1,32 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 22
|
||||
#define NUM_DIGITAL_PINS 22
|
||||
#define NUM_ANALOG_INPUTS 6
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<NUM_ANALOG_INPUTS)?(esp32_adc2gpio[(p)]):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
|
||||
|
||||
static const uint8_t TX = 21;
|
||||
static const uint8_t RX = 20;
|
||||
|
||||
static const uint8_t SDA = 4;
|
||||
static const uint8_t SCL = 5;
|
||||
|
||||
static const uint8_t SS = 7;
|
||||
static const uint8_t MOSI = 3;
|
||||
static const uint8_t MISO = 10;
|
||||
static const uint8_t SCK = 2;
|
||||
|
||||
static const uint8_t A0 = 0;
|
||||
static const uint8_t A1 = 1;
|
||||
static const uint8_t A2 = 2;
|
||||
static const uint8_t A3 = 3;
|
||||
static const uint8_t A4 = 4;
|
||||
static const uint8_t A5 = 5;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
63
variants/Bee_Motion/pins_arduino.h
Normal file
63
variants/Bee_Motion/pins_arduino.h
Normal file
@ -0,0 +1,63 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define USB_VID 0x303A
|
||||
#define USB_PID 0x810D
|
||||
#define USB_MANUFACTURER "Smart Bee Designs"
|
||||
#define USB_PRODUCT "Bee Motion S3"
|
||||
#define USB_SERIAL ""
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
||||
#define NUM_DIGITAL_PINS 21
|
||||
#define NUM_ANALOG_INPUTS 12
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<29)?(esp32_adc2gpio[(p)]):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 46)
|
||||
|
||||
static const uint8_t TX = 43;
|
||||
static const uint8_t RX = 44;
|
||||
|
||||
static const uint8_t SDA = 36;
|
||||
static const uint8_t SCL = 37;
|
||||
|
||||
static const uint8_t SS = 5;
|
||||
static const uint8_t MOSI = 16;
|
||||
static const uint8_t MISO = 38;
|
||||
static const uint8_t SDO = 35;
|
||||
static const uint8_t SDI = 37;
|
||||
static const uint8_t SCK = 15;
|
||||
|
||||
static const uint8_t A0 = 1;
|
||||
static const uint8_t A1 = 2;
|
||||
static const uint8_t A2 = 3;
|
||||
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 T1 = 1;
|
||||
static const uint8_t T3 = 3;
|
||||
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 T14 = 14;
|
||||
|
||||
static const uint8_t BOOT_BTN = 0;
|
||||
static const uint8_t PIR = 5;
|
||||
|
||||
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
24
variants/Bee_Motion_Mini/pins_arduino.h
Normal file
24
variants/Bee_Motion_Mini/pins_arduino.h
Normal file
@ -0,0 +1,24 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 4
|
||||
#define NUM_DIGITAL_PINS 4
|
||||
#define NUM_ANALOG_INPUTS 2
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<29)?(esp32_adc2gpio[(p)]):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 46)
|
||||
|
||||
static const uint8_t TX = 21;
|
||||
static const uint8_t RX = 20;
|
||||
|
||||
static const uint8_t BOOT_BTN = 9;
|
||||
static const uint8_t PIR = 5;
|
||||
|
||||
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
||||
|
85
variants/Bee_Motion_S3/pins_arduino.h
Normal file
85
variants/Bee_Motion_S3/pins_arduino.h
Normal file
@ -0,0 +1,85 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define USB_VID 0x303A
|
||||
#define USB_PID 0x8113
|
||||
#define USB_MANUFACTURER "Smart Bee Designs"
|
||||
#define USB_PRODUCT "Bee Motion S3"
|
||||
#define USB_SERIAL ""
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 46
|
||||
#define NUM_DIGITAL_PINS 27
|
||||
#define NUM_ANALOG_INPUTS 11
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 46)
|
||||
|
||||
static const uint8_t TX = 43;
|
||||
static const uint8_t RX = 44;
|
||||
|
||||
static const uint8_t SDA = 37;
|
||||
static const uint8_t SCL = 36;
|
||||
|
||||
static const uint8_t SS = 5;
|
||||
static const uint8_t MOSI = 15;
|
||||
static const uint8_t MISO = 16;
|
||||
static const uint8_t SDO = 35;
|
||||
static const uint8_t SDI = 37;
|
||||
static const uint8_t SCK = 17;
|
||||
|
||||
static const uint8_t A5 = 5;
|
||||
static const uint8_t A6 = 6;
|
||||
static const uint8_t A7 = 7;
|
||||
static const uint8_t A8 = 8;
|
||||
static const uint8_t A9 = 9;
|
||||
static const uint8_t A10 = 10;
|
||||
static const uint8_t A11 = 11;
|
||||
static const uint8_t A12 = 12;
|
||||
static const uint8_t A13 = 13;
|
||||
static const uint8_t A14 = 14;
|
||||
static const uint8_t A15 = 15;
|
||||
|
||||
static const uint8_t D5 = 5;
|
||||
static const uint8_t D6 = 6;
|
||||
static const uint8_t D7 = 7;
|
||||
static const uint8_t D8 = 8;
|
||||
static const uint8_t D9 = 9;
|
||||
static const uint8_t D10 = 10;
|
||||
static const uint8_t D11 = 11;
|
||||
static const uint8_t D12 = 12;
|
||||
static const uint8_t D14 = 14;
|
||||
static const uint8_t D15 = 15;
|
||||
static const uint8_t D16 = 16;
|
||||
static const uint8_t D17 = 17;
|
||||
static const uint8_t D35 = 35;
|
||||
static const uint8_t D36 = 36;
|
||||
static const uint8_t D37 = 37;
|
||||
static const uint8_t D43 = 43;
|
||||
static const uint8_t D44 = 44;
|
||||
|
||||
|
||||
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;
|
||||
|
||||
static const uint8_t BOOT_BTN = 0;
|
||||
static const uint8_t VBAT_VOLTAGE = 1;
|
||||
static const uint8_t VBUS_SENSE = 2;
|
||||
static const uint8_t PIR = 4;
|
||||
static const uint8_t LIGHT = 3;
|
||||
static const uint8_t LDO2 = 34;
|
||||
static const uint8_t RGB_DATA = 40;
|
||||
static const uint8_t RGB_PWR = 34;
|
||||
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
76
variants/Bee_S3/pins_arduino.h
Normal file
76
variants/Bee_S3/pins_arduino.h
Normal file
@ -0,0 +1,76 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define USB_VID 0x303A
|
||||
#define USB_PID 0x8110
|
||||
#define USB_MANUFACTURER "Smart Bee Designs"
|
||||
#define USB_PRODUCT "BeeS3"
|
||||
#define USB_SERIAL ""
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 45
|
||||
#define NUM_DIGITAL_PINS 15
|
||||
#define NUM_ANALOG_INPUTS 8
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 46)
|
||||
|
||||
static const uint8_t TX = 43;
|
||||
static const uint8_t RX = 44;
|
||||
|
||||
static const uint8_t SDA = 37;
|
||||
static const uint8_t SCL = 36;
|
||||
|
||||
static const uint8_t SS = 5;
|
||||
static const uint8_t MOSI = 35;
|
||||
static const uint8_t MISO = 38;
|
||||
static const uint8_t SDO = 35;
|
||||
static const uint8_t SDI = 38;
|
||||
static const uint8_t SCK = 39;
|
||||
|
||||
|
||||
static const uint8_t A3 = 3;
|
||||
static const uint8_t A4 = 4;
|
||||
static const uint8_t A5 = 5;
|
||||
static const uint8_t A6 = 6;
|
||||
static const uint8_t A7 = 7;
|
||||
static const uint8_t A8 = 8;
|
||||
static const uint8_t A9 = 9;
|
||||
static const uint8_t A10 = 10;
|
||||
|
||||
static const uint8_t D3 = 3;
|
||||
static const uint8_t D4 = 4;
|
||||
static const uint8_t D5 = 5;
|
||||
static const uint8_t D6 = 6;
|
||||
static const uint8_t D7 = 7;
|
||||
static const uint8_t D8 = 8;
|
||||
static const uint8_t D9 = 9;
|
||||
static const uint8_t D10 = 10;
|
||||
static const uint8_t D35 = 35;
|
||||
static const uint8_t D36 = 36;
|
||||
static const uint8_t D37 = 37;
|
||||
static const uint8_t D38 = 38;
|
||||
static const uint8_t D39 = 39;
|
||||
static const uint8_t D43 = 43;
|
||||
static const uint8_t D44 = 44;
|
||||
|
||||
|
||||
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 VBAT_VOLTAGE = 1;
|
||||
|
||||
static const uint8_t RGB_DATA = 48;
|
||||
static const uint8_t RGB_PWR = 34;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
53
variants/ET-Board/pins_arduino.h
Normal file
53
variants/ET-Board/pins_arduino.h
Normal file
@ -0,0 +1,53 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 7
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t LED_BUILTIN = 5;
|
||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||
#define LED_BUILTIN LED_BUILTIN
|
||||
|
||||
|
||||
|
||||
static const uint8_t TX = 34;
|
||||
static const uint8_t RX = 35;
|
||||
|
||||
static const uint8_t SDA = 21;
|
||||
static const uint8_t SCL = 22;
|
||||
|
||||
static const uint8_t SS = 29;
|
||||
static const uint8_t MOSI = 37;
|
||||
static const uint8_t MISO = 31;
|
||||
static const uint8_t SCK = 30;
|
||||
|
||||
static const uint8_t A0 = 36; // BUILTIN_Potentiometer
|
||||
static const uint8_t A1 = 39; // BUILTIN_CDS
|
||||
static const uint8_t A2 = 32; // BUILTIN_temperature
|
||||
static const uint8_t A3 = 33; // Analog Input
|
||||
static const uint8_t A4 = 34; // Analog Input
|
||||
static const uint8_t A5 = 35; // Analog Input
|
||||
static const uint8_t A6 = 25; // Analog Input
|
||||
static const uint8_t A7 = 26; // Analog Input
|
||||
|
||||
|
||||
static const uint8_t D2 = 27; // BUILTIN_LED_Red
|
||||
static const uint8_t D3 = 14; // BUILTIN_LED_Blue
|
||||
static const uint8_t D4 = 12; // BUILTIN_LED_Green
|
||||
static const uint8_t D5 = 13; // BUILTIN_LED_Yellow
|
||||
static const uint8_t D6 = 15; // BUILTIN_BUTTON_Red
|
||||
static const uint8_t D7 = 16; // BUILTIN_BUTTON_Blue
|
||||
static const uint8_t D8 = 17; // BUILTIN_BUTTON_Green
|
||||
static const uint8_t D9 = 4; // BUILTIN_BUTTON_Yellow
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
90
variants/Microduino-esp32/pins_arduino.h
Normal file
90
variants/Microduino-esp32/pins_arduino.h
Normal file
@ -0,0 +1,90 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 22
|
||||
#define NUM_ANALOG_INPUTS 12
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t LED_BUILTIN = -1;
|
||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||
#define LED_BUILTIN LED_BUILTIN
|
||||
|
||||
#define MTDO 15
|
||||
#define MTDI 12
|
||||
#define MTMS 14
|
||||
#define MTCK 13
|
||||
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 3;
|
||||
|
||||
static const uint8_t SDA = 22;//23;
|
||||
static const uint8_t SCL = 21;//19;
|
||||
|
||||
#define WIRE1_PIN_DEFINED 1 // See Wire.cpp at bool TwoWire::initPins(int sdaPin, int sclPin)
|
||||
static const uint8_t SDA1 = 12;
|
||||
static const uint8_t SCL1 = 13;
|
||||
|
||||
static const uint8_t SS = 5;
|
||||
static const uint8_t MOSI = 23;
|
||||
static const uint8_t MISO = 19;
|
||||
static const uint8_t SCK = 18;
|
||||
|
||||
static const uint8_t A0 = 12;
|
||||
static const uint8_t A1 = 13;
|
||||
static const uint8_t A2 = 15;
|
||||
static const uint8_t A3 = 4;
|
||||
static const uint8_t A6 = 38;
|
||||
static const uint8_t A7 = 37;
|
||||
|
||||
static const uint8_t A8 = 32;
|
||||
static const uint8_t A9 = 33;
|
||||
static const uint8_t A10 = 25;
|
||||
static const uint8_t A11 = 26;
|
||||
static const uint8_t A12 = 27;
|
||||
static const uint8_t A13 = 14;
|
||||
|
||||
static const uint8_t D0 = 3;
|
||||
static const uint8_t D1 = 1;
|
||||
static const uint8_t D2 = 16;
|
||||
static const uint8_t D3 = 17;
|
||||
static const uint8_t D4 = 32;//ADC1_CH4
|
||||
static const uint8_t D5 = 33;//ADC1_CH5
|
||||
static const uint8_t D6 = 25;//ADC2_CH8 DAC_1
|
||||
static const uint8_t D7 = 26;//ADC2_CH9 DAC_2
|
||||
static const uint8_t D8 = 27;//ADC2_CH7
|
||||
static const uint8_t D9 = 14;//ADC2_CH6
|
||||
static const uint8_t D10 = 5;
|
||||
static const uint8_t D11 = 23;
|
||||
static const uint8_t D12 = 19;
|
||||
static const uint8_t D13 = 18;
|
||||
static const uint8_t D14 = 12;
|
||||
static const uint8_t D15 = 13;
|
||||
static const uint8_t D16 = 15;
|
||||
static const uint8_t D17 = 4;
|
||||
static const uint8_t D18 = 22;
|
||||
static const uint8_t D19 = 21;
|
||||
static const uint8_t D20 = 38;
|
||||
static const uint8_t D21 = 37;
|
||||
|
||||
|
||||
static const uint8_t T0 = 4;
|
||||
static const uint8_t T1 = 0;
|
||||
static const uint8_t T2 = 2;
|
||||
static const uint8_t T3 = 15;
|
||||
static const uint8_t T4 = 13;
|
||||
static const uint8_t T5 = 12;
|
||||
static const uint8_t T6 = 14;
|
||||
static const uint8_t T7 = 27;
|
||||
static const uint8_t T8 = 33;
|
||||
static const uint8_t T9 = 32;
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
64
variants/S_ODI_Ultra_v1/pins_arduino.h
Normal file
64
variants/S_ODI_Ultra_v1/pins_arduino.h
Normal file
@ -0,0 +1,64 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t LED_BUILTIN = 2;
|
||||
static const uint8_t LED_BUILTINB = 4;
|
||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||
#define LED_BUILTIN LED_BUILTIN
|
||||
#define BUILTIN_LED2 LED_BUILTINB
|
||||
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 3;
|
||||
|
||||
static const uint8_t SDA = 21;
|
||||
static const uint8_t SCL = 22;
|
||||
|
||||
static const uint8_t SS = 5;
|
||||
static const uint8_t MOSI = 23;
|
||||
static const uint8_t MISO = 19;
|
||||
static const uint8_t SCK = 18;
|
||||
|
||||
static const uint8_t A0 = 36;
|
||||
static const uint8_t A3 = 39;
|
||||
static const uint8_t A4 = 32;
|
||||
static const uint8_t A5 = 33;
|
||||
static const uint8_t A6 = 34;
|
||||
static const uint8_t A7 = 35;
|
||||
static const uint8_t A10 = 4;
|
||||
static const uint8_t A11 = 0;
|
||||
static const uint8_t A12 = 2;
|
||||
static const uint8_t A13 = 15;
|
||||
static const uint8_t A14 = 13;
|
||||
static const uint8_t A15 = 12;
|
||||
static const uint8_t A16 = 14;
|
||||
static const uint8_t A17 = 27;
|
||||
static const uint8_t A18 = 25;
|
||||
static const uint8_t A19 = 26;
|
||||
|
||||
static const uint8_t T0 = 4;
|
||||
static const uint8_t T1 = 0;
|
||||
static const uint8_t T2 = 2;
|
||||
static const uint8_t T3 = 15;
|
||||
static const uint8_t T4 = 13;
|
||||
static const uint8_t T5 = 12;
|
||||
static const uint8_t T6 = 14;
|
||||
static const uint8_t T7 = 27;
|
||||
static const uint8_t T8 = 33;
|
||||
static const uint8_t T9 = 32;
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
||||
|
||||
/* compitable with SPELEC S.ODI Ultra v1.0 (based on ESP32 Series)*/
|
42
variants/XIAO_ESP32C3/pins_arduino.h
Normal file
42
variants/XIAO_ESP32C3/pins_arduino.h
Normal file
@ -0,0 +1,42 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 22
|
||||
#define NUM_DIGITAL_PINS 22
|
||||
#define NUM_ANALOG_INPUTS 6
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<NUM_ANALOG_INPUTS)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
|
||||
|
||||
static const uint8_t TX = 21;
|
||||
static const uint8_t RX = 20;
|
||||
|
||||
static const uint8_t SDA = 6;
|
||||
static const uint8_t SCL = 7;
|
||||
|
||||
static const uint8_t SS = 20;
|
||||
static const uint8_t MOSI = 10;
|
||||
static const uint8_t MISO = 9;
|
||||
static const uint8_t SCK = 8;
|
||||
|
||||
static const uint8_t A0 = 2;
|
||||
static const uint8_t A1 = 3;
|
||||
static const uint8_t A2 = 4;
|
||||
static const uint8_t A3 = 5;
|
||||
|
||||
static const uint8_t D0 = 2;
|
||||
static const uint8_t D1 = 3;
|
||||
static const uint8_t D2 = 4;
|
||||
static const uint8_t D3 = 5;
|
||||
static const uint8_t D4 = 6;
|
||||
static const uint8_t D5 = 7;
|
||||
static const uint8_t D6 = 21;
|
||||
static const uint8_t D7 = 20;
|
||||
static const uint8_t D8 = 8;
|
||||
static const uint8_t D9 = 9;
|
||||
static const uint8_t D10 = 10;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
73
variants/adafruit_feather_esp32_v2/pins_arduino.h
Normal file
73
variants/adafruit_feather_esp32_v2/pins_arduino.h
Normal file
@ -0,0 +1,73 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t LED_BUILTIN = 13;
|
||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||
#define LED_BUILTIN LED_BUILTIN
|
||||
|
||||
static const uint8_t TX = 8;
|
||||
static const uint8_t RX = 7;
|
||||
#define TX1 TX
|
||||
#define RX1 RX
|
||||
|
||||
static const uint8_t SDA = 22;
|
||||
static const uint8_t SCL = 20;
|
||||
|
||||
static const uint8_t SS = 33;
|
||||
static const uint8_t MOSI = 19;
|
||||
static const uint8_t MISO = 21;
|
||||
static const uint8_t SCK = 5;
|
||||
|
||||
// mapping to match other feathers and also in order
|
||||
static const uint8_t A0 = 26;
|
||||
static const uint8_t A1 = 25;
|
||||
static const uint8_t A2 = 34;
|
||||
static const uint8_t A3 = 39;
|
||||
static const uint8_t A4 = 36;
|
||||
static const uint8_t A5 = 4;
|
||||
static const uint8_t A6 = 14;
|
||||
static const uint8_t A7 = 32;
|
||||
static const uint8_t A8 = 15;
|
||||
static const uint8_t A9 = 33;
|
||||
static const uint8_t A10 = 27;
|
||||
static const uint8_t A11 = 12;
|
||||
static const uint8_t A12 = 13;
|
||||
static const uint8_t A13 = 35;
|
||||
|
||||
// vbat measure
|
||||
#define BATT_MONITOR 35
|
||||
|
||||
// internal switch
|
||||
#define BUTTON 38
|
||||
|
||||
// Neopixel
|
||||
#define PIN_NEOPIXEL 0
|
||||
|
||||
// Neopixel & I2C power
|
||||
#define NEOPIXEL_I2C_POWER 2
|
||||
|
||||
static const uint8_t T0 = 4;
|
||||
static const uint8_t T1 = 0;
|
||||
static const uint8_t T2 = 2;
|
||||
static const uint8_t T3 = 15;
|
||||
static const uint8_t T4 = 13;
|
||||
static const uint8_t T5 = 12;
|
||||
static const uint8_t T6 = 14;
|
||||
static const uint8_t T7 = 27;
|
||||
static const uint8_t T8 = 33;
|
||||
static const uint8_t T9 = 32;
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
40
variants/adafruit_feather_esp32_v2/variant.cpp
Normal file
40
variants/adafruit_feather_esp32_v2/variant.cpp
Normal file
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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)
|
||||
{
|
||||
// This board has a power control pin, and we must set it to output and high
|
||||
// in order to enable the NeoPixels & I2C
|
||||
pinMode(NEOPIXEL_I2C_POWER, OUTPUT);
|
||||
digitalWrite(NEOPIXEL_I2C_POWER, HIGH);
|
||||
}
|
||||
|
||||
}
|
BIN
variants/adafruit_feather_esp32s2/bootloader-tinyuf2.bin
Normal file
BIN
variants/adafruit_feather_esp32s2/bootloader-tinyuf2.bin
Normal file
Binary file not shown.
11
variants/adafruit_feather_esp32s2/partitions-4MB-tinyuf2.csv
Normal file
11
variants/adafruit_feather_esp32s2/partitions-4MB-tinyuf2.csv
Normal file
@ -0,0 +1,11 @@
|
||||
# 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, 0, ota_0, 0x10000, 1408K,
|
||||
ota_1, 0, ota_1, 0x170000, 1408K,
|
||||
uf2, app, factory,0x2d0000, 256K,
|
||||
ffat, data, fat, 0x310000, 960K,
|
|
65
variants/adafruit_feather_esp32s2/pins_arduino.h
Normal file
65
variants/adafruit_feather_esp32s2/pins_arduino.h
Normal file
@ -0,0 +1,65 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x80EB
|
||||
#define USB_MANUFACTURER "Adafruit"
|
||||
#define USB_PRODUCT "Feather ESP32-S2"
|
||||
#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)
|
||||
|
||||
#define LED_BUILTIN 13
|
||||
|
||||
#define PIN_NEOPIXEL 33
|
||||
#define NEOPIXEL_NUM 1 // number of neopixels
|
||||
#define NEOPIXEL_POWER 21 // power pin
|
||||
#define NEOPIXEL_POWER_ON HIGH // power pin state when on
|
||||
#define I2C_POWER 7 // I2C power pin
|
||||
#define PIN_I2C_POWER 7 // I2C power pin
|
||||
|
||||
static const uint8_t SDA = 3;
|
||||
static const uint8_t SCL = 4;
|
||||
|
||||
static const uint8_t SS = 42;
|
||||
static const uint8_t MOSI = 35;
|
||||
static const uint8_t SCK = 36;
|
||||
static const uint8_t MISO = 37;
|
||||
|
||||
static const uint8_t A0 = 18;
|
||||
static const uint8_t A1 = 17;
|
||||
static const uint8_t A2 = 16;
|
||||
static const uint8_t A3 = 15;
|
||||
static const uint8_t A4 = 14;
|
||||
static const uint8_t A5 = 8;
|
||||
|
||||
|
||||
static const uint8_t TX = 39;
|
||||
static const uint8_t RX = 38;
|
||||
#define TX1 TX
|
||||
#define RX1 RX
|
||||
|
||||
static const uint8_t T5 = 5;
|
||||
static const uint8_t T6 = 6;
|
||||
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;
|
||||
|
||||
static const uint8_t DAC1 = 17;
|
||||
static const uint8_t DAC2 = 18;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
BIN
variants/adafruit_feather_esp32s2/tinyuf2.bin
Normal file
BIN
variants/adafruit_feather_esp32s2/tinyuf2.bin
Normal file
Binary file not shown.
46
variants/adafruit_feather_esp32s2/variant.cpp
Normal file
46
variants/adafruit_feather_esp32s2/variant.cpp
Normal file
@ -0,0 +1,46 @@
|
||||
/*
|
||||
* 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)
|
||||
{
|
||||
// This board has a power control pin, and we must set it to output and high
|
||||
// in order to enable the NeoPixels.
|
||||
pinMode(NEOPIXEL_POWER, OUTPUT);
|
||||
digitalWrite(NEOPIXEL_POWER, HIGH);
|
||||
|
||||
// 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);
|
||||
}
|
||||
}
|
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
# 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, 0, ota_0, 0x10000, 1408K,
|
||||
ota_1, 0, ota_1, 0x170000, 1408K,
|
||||
uf2, app, factory,0x2d0000, 256K,
|
||||
ffat, data, fat, 0x310000, 960K,
|
|
68
variants/adafruit_feather_esp32s2_reversetft/pins_arduino.h
Normal file
68
variants/adafruit_feather_esp32s2_reversetft/pins_arduino.h
Normal file
@ -0,0 +1,68 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x80ED
|
||||
#define USB_MANUFACTURER "Adafruit"
|
||||
#define USB_PRODUCT "Feather ESP32-S2 Reverse TFT"
|
||||
#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)
|
||||
|
||||
#define LED_BUILTIN 13
|
||||
|
||||
#define PIN_NEOPIXEL 33
|
||||
#define NEOPIXEL_NUM 1 // number of neopixels
|
||||
#define NEOPIXEL_POWER 21 // power pin
|
||||
#define NEOPIXEL_POWER_ON HIGH // power pin state when on
|
||||
|
||||
#define TFT_I2C_POWER 7
|
||||
#define TFT_CS 42
|
||||
#define TFT_RST 41
|
||||
#define TFT_DC 40
|
||||
#define TFT_BACKLITE 45
|
||||
|
||||
static const uint8_t SDA = 3;
|
||||
static const uint8_t SCL = 4;
|
||||
|
||||
static const uint8_t SS = 42;
|
||||
static const uint8_t MOSI = 35;
|
||||
static const uint8_t SCK = 36;
|
||||
static const uint8_t MISO = 37;
|
||||
|
||||
static const uint8_t A0 = 18;
|
||||
static const uint8_t A1 = 17;
|
||||
static const uint8_t A2 = 16;
|
||||
static const uint8_t A3 = 15;
|
||||
static const uint8_t A4 = 14;
|
||||
static const uint8_t A5 = 8;
|
||||
|
||||
static const uint8_t TX = 39;
|
||||
static const uint8_t RX = 38;
|
||||
static const uint8_t TX1 = 39;
|
||||
static const uint8_t RX1 = 38;
|
||||
|
||||
static const uint8_t T5 = 5;
|
||||
static const uint8_t T6 = 6;
|
||||
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;
|
||||
|
||||
static const uint8_t DAC1 = 17;
|
||||
static const uint8_t DAC2 = 18;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
BIN
variants/adafruit_feather_esp32s2_reversetft/tinyuf2.bin
Normal file
BIN
variants/adafruit_feather_esp32s2_reversetft/tinyuf2.bin
Normal file
Binary file not shown.
37
variants/adafruit_feather_esp32s2_reversetft/variant.cpp
Normal file
37
variants/adafruit_feather_esp32s2_reversetft/variant.cpp
Normal file
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
BIN
variants/adafruit_feather_esp32s2_tft/bootloader-tinyuf2.bin
Normal file
BIN
variants/adafruit_feather_esp32s2_tft/bootloader-tinyuf2.bin
Normal file
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
# 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, 0, ota_0, 0x10000, 1408K,
|
||||
ota_1, 0, ota_1, 0x170000, 1408K,
|
||||
uf2, app, factory,0x2d0000, 256K,
|
||||
ffat, data, fat, 0x310000, 960K,
|
|
68
variants/adafruit_feather_esp32s2_tft/pins_arduino.h
Normal file
68
variants/adafruit_feather_esp32s2_tft/pins_arduino.h
Normal file
@ -0,0 +1,68 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x810F
|
||||
#define USB_MANUFACTURER "Adafruit"
|
||||
#define USB_PRODUCT "Feather ESP32-S2 TFT"
|
||||
#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)
|
||||
|
||||
#define LED_BUILTIN 13
|
||||
|
||||
#define PIN_NEOPIXEL 33
|
||||
#define NEOPIXEL_NUM 1 // number of neopixels
|
||||
#define NEOPIXEL_POWER 34 // power pin
|
||||
#define NEOPIXEL_POWER_ON HIGH // power pin state when on
|
||||
|
||||
#define TFT_I2C_POWER 21
|
||||
#define TFT_CS 7
|
||||
#define TFT_RST 40
|
||||
#define TFT_DC 39
|
||||
#define TFT_BACKLITE 45
|
||||
|
||||
static const uint8_t SDA = 42;
|
||||
static const uint8_t SCL = 41;
|
||||
|
||||
static const uint8_t SS = 7;
|
||||
static const uint8_t MOSI = 35;
|
||||
static const uint8_t SCK = 36;
|
||||
static const uint8_t MISO = 37;
|
||||
|
||||
static const uint8_t A0 = 18;
|
||||
static const uint8_t A1 = 17;
|
||||
static const uint8_t A2 = 16;
|
||||
static const uint8_t A3 = 15;
|
||||
static const uint8_t A4 = 14;
|
||||
static const uint8_t A5 = 8;
|
||||
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 2;
|
||||
|
||||
static const uint8_t T1 = 1;
|
||||
static const uint8_t T2 = 2;
|
||||
static const uint8_t T5 = 5;
|
||||
static const uint8_t T6 = 6;
|
||||
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;
|
||||
|
||||
static const uint8_t DAC1 = 17;
|
||||
static const uint8_t DAC2 = 18;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
BIN
variants/adafruit_feather_esp32s2_tft/tinyuf2.bin
Normal file
BIN
variants/adafruit_feather_esp32s2_tft/tinyuf2.bin
Normal file
Binary file not shown.
42
variants/adafruit_feather_esp32s2_tft/variant.cpp
Normal file
42
variants/adafruit_feather_esp32s2_tft/variant.cpp
Normal file
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* 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)
|
||||
{
|
||||
// This board has power control pins, and we must set them to output and high
|
||||
// in order to enable the NeoPixels, TFT & I2C
|
||||
pinMode(NEOPIXEL_POWER, OUTPUT);
|
||||
digitalWrite(NEOPIXEL_POWER, HIGH);
|
||||
pinMode(TFT_I2C_POWER, OUTPUT);
|
||||
digitalWrite(TFT_I2C_POWER, HIGH);
|
||||
}
|
||||
|
||||
}
|
BIN
variants/adafruit_feather_esp32s3/bootloader-tinyuf2.bin
Normal file
BIN
variants/adafruit_feather_esp32s3/bootloader-tinyuf2.bin
Normal file
Binary file not shown.
11
variants/adafruit_feather_esp32s3/partitions-4MB-tinyuf2.csv
Normal file
11
variants/adafruit_feather_esp32s3/partitions-4MB-tinyuf2.csv
Normal file
@ -0,0 +1,11 @@
|
||||
# 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, 0, ota_0, 0x10000, 1408K,
|
||||
ota_1, 0, ota_1, 0x170000, 1408K,
|
||||
uf2, app, factory,0x2d0000, 256K,
|
||||
ffat, data, fat, 0x310000, 960K,
|
|
11
variants/adafruit_feather_esp32s3/partitions.csv
Normal file
11
variants/adafruit_feather_esp32s3/partitions.csv
Normal file
@ -0,0 +1,11 @@
|
||||
# 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, 0, ota_0, 0x10000, 1408K,
|
||||
ota_1, 0, ota_1, 0x170000, 1408K,
|
||||
uf2, app, factory,0x2d0000, 256K,
|
||||
ffat, data, fat, 0x310000, 960K,
|
|
71
variants/adafruit_feather_esp32s3/pins_arduino.h
Normal file
71
variants/adafruit_feather_esp32s3/pins_arduino.h
Normal file
@ -0,0 +1,71 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x811B
|
||||
#define USB_MANUFACTURER "Adafruit"
|
||||
#define USB_PRODUCT "Feather 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)
|
||||
|
||||
#define LED_BUILTIN 13
|
||||
|
||||
#define PIN_NEOPIXEL 33
|
||||
#define NEOPIXEL_NUM 1 // number of neopixels
|
||||
#define NEOPIXEL_POWER 21 // power pin
|
||||
#define NEOPIXEL_POWER_ON HIGH // power pin state when on
|
||||
#define I2C_POWER 7 // I2C power pin
|
||||
#define PIN_I2C_POWER 7 // I2C power pin
|
||||
|
||||
|
||||
static const uint8_t TX = 39;
|
||||
static const uint8_t RX = 38;
|
||||
#define TX1 TX
|
||||
#define RX1 RX
|
||||
|
||||
static const uint8_t SDA = 3;
|
||||
static const uint8_t SCL = 4;
|
||||
|
||||
static const uint8_t SS = 42;
|
||||
static const uint8_t MOSI = 35;
|
||||
static const uint8_t SCK = 36;
|
||||
static const uint8_t MISO = 37;
|
||||
|
||||
static const uint8_t A0 = 18;
|
||||
static const uint8_t A1 = 17;
|
||||
static const uint8_t A2 = 16;
|
||||
static const uint8_t A3 = 15;
|
||||
static const uint8_t A4 = 14;
|
||||
static const uint8_t A5 = 8;
|
||||
static const uint8_t A6 = 3;
|
||||
static const uint8_t A7 = 4;
|
||||
static const uint8_t A8 = 5;
|
||||
static const uint8_t A9 = 6;
|
||||
static const uint8_t A10 = 9;
|
||||
static const uint8_t A11 = 10;
|
||||
static const uint8_t A12 = 11;
|
||||
static const uint8_t A13 = 12;
|
||||
static const uint8_t A14 = 13;
|
||||
|
||||
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 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 */
|
BIN
variants/adafruit_feather_esp32s3/tinyuf2.bin
Normal file
BIN
variants/adafruit_feather_esp32s3/tinyuf2.bin
Normal file
Binary file not shown.
43
variants/adafruit_feather_esp32s3/variant.cpp
Normal file
43
variants/adafruit_feather_esp32s3/variant.cpp
Normal file
@ -0,0 +1,43 @@
|
||||
/*
|
||||
* 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)
|
||||
{
|
||||
// This board has a power control pin, and we must set it to output and high
|
||||
// in order to enable the NeoPixels.
|
||||
pinMode(NEOPIXEL_POWER, OUTPUT);
|
||||
digitalWrite(NEOPIXEL_POWER, HIGH);
|
||||
|
||||
// turn on the I2C power by setting LDO enable pin 'high'
|
||||
pinMode(PIN_I2C_POWER, OUTPUT);
|
||||
digitalWrite(PIN_I2C_POWER, HIGH);
|
||||
}
|
||||
}
|
BIN
variants/adafruit_feather_esp32s3_nopsram/bootloader-tinyuf2.bin
Normal file
BIN
variants/adafruit_feather_esp32s3_nopsram/bootloader-tinyuf2.bin
Normal file
Binary file not shown.
@ -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, 0, ota_0, 0x10000, 2048K,
|
||||
ota_1, 0, ota_1, 0x210000, 2048K,
|
||||
uf2, app, factory,0x410000, 256K,
|
||||
ffat, data, fat, 0x450000, 3776K,
|
|
71
variants/adafruit_feather_esp32s3_nopsram/pins_arduino.h
Normal file
71
variants/adafruit_feather_esp32s3_nopsram/pins_arduino.h
Normal file
@ -0,0 +1,71 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x8113
|
||||
#define USB_MANUFACTURER "Adafruit"
|
||||
#define USB_PRODUCT "Feather ESP32-S3 No PSRAM"
|
||||
#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)
|
||||
|
||||
#define LED_BUILTIN 13
|
||||
|
||||
#define PIN_NEOPIXEL 33
|
||||
#define NEOPIXEL_NUM 1 // number of neopixels
|
||||
#define NEOPIXEL_POWER 21 // power pin
|
||||
#define NEOPIXEL_POWER_ON HIGH // power pin state when on
|
||||
#define I2C_POWER 7 // I2C power pin
|
||||
#define PIN_I2C_POWER 7 // I2C power pin
|
||||
|
||||
|
||||
static const uint8_t TX = 39;
|
||||
static const uint8_t RX = 38;
|
||||
#define TX1 TX
|
||||
#define RX1 RX
|
||||
|
||||
static const uint8_t SDA = 3;
|
||||
static const uint8_t SCL = 4;
|
||||
|
||||
static const uint8_t SS = 42;
|
||||
static const uint8_t MOSI = 35;
|
||||
static const uint8_t SCK = 36;
|
||||
static const uint8_t MISO = 37;
|
||||
|
||||
static const uint8_t A0 = 18;
|
||||
static const uint8_t A1 = 17;
|
||||
static const uint8_t A2 = 16;
|
||||
static const uint8_t A3 = 15;
|
||||
static const uint8_t A4 = 14;
|
||||
static const uint8_t A5 = 8;
|
||||
static const uint8_t A6 = 3;
|
||||
static const uint8_t A7 = 4;
|
||||
static const uint8_t A8 = 5;
|
||||
static const uint8_t A9 = 6;
|
||||
static const uint8_t A10 = 9;
|
||||
static const uint8_t A11 = 10;
|
||||
static const uint8_t A12 = 11;
|
||||
static const uint8_t A13 = 12;
|
||||
static const uint8_t A14 = 13;
|
||||
|
||||
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 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 */
|
BIN
variants/adafruit_feather_esp32s3_nopsram/tinyuf2.bin
Normal file
BIN
variants/adafruit_feather_esp32s3_nopsram/tinyuf2.bin
Normal file
Binary file not shown.
43
variants/adafruit_feather_esp32s3_nopsram/variant.cpp
Normal file
43
variants/adafruit_feather_esp32s3_nopsram/variant.cpp
Normal file
@ -0,0 +1,43 @@
|
||||
/*
|
||||
* 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)
|
||||
{
|
||||
// This board has a power control pin, and we must set it to output and high
|
||||
// in order to enable the NeoPixels.
|
||||
pinMode(NEOPIXEL_POWER, OUTPUT);
|
||||
digitalWrite(NEOPIXEL_POWER, HIGH);
|
||||
|
||||
// turn on the I2C power by setting LDO enable pin 'high'
|
||||
pinMode(PIN_I2C_POWER, OUTPUT);
|
||||
digitalWrite(PIN_I2C_POWER, HIGH);
|
||||
}
|
||||
}
|
BIN
variants/adafruit_feather_esp32s3_tft/bootloader-tinyuf2.bin
Normal file
BIN
variants/adafruit_feather_esp32s3_tft/bootloader-tinyuf2.bin
Normal file
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
# 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, 0, ota_0, 0x10000, 1408K,
|
||||
ota_1, 0, ota_1, 0x170000, 1408K,
|
||||
uf2, app, factory,0x2d0000, 256K,
|
||||
ffat, data, fat, 0x310000, 960K,
|
|
11
variants/adafruit_feather_esp32s3_tft/partitions.csv
Normal file
11
variants/adafruit_feather_esp32s3_tft/partitions.csv
Normal file
@ -0,0 +1,11 @@
|
||||
# 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, 0, ota_0, 0x10000, 1408K,
|
||||
ota_1, 0, ota_1, 0x170000, 1408K,
|
||||
uf2, app, factory,0x2d0000, 256K,
|
||||
ffat, data, fat, 0x310000, 960K,
|
|
68
variants/adafruit_feather_esp32s3_tft/pins_arduino.h
Normal file
68
variants/adafruit_feather_esp32s3_tft/pins_arduino.h
Normal file
@ -0,0 +1,68 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x811D
|
||||
#define USB_MANUFACTURER "Adafruit"
|
||||
#define USB_PRODUCT "Feather ESP32-S3 TFT"
|
||||
#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)
|
||||
|
||||
#define LED_BUILTIN 13
|
||||
|
||||
#define PIN_NEOPIXEL 33
|
||||
#define NEOPIXEL_NUM 1 // number of neopixels
|
||||
#define NEOPIXEL_POWER 34 // power pin
|
||||
#define NEOPIXEL_POWER_ON HIGH // power pin state when on
|
||||
|
||||
#define TFT_I2C_POWER 21
|
||||
#define TFT_CS 7
|
||||
#define TFT_RST 40
|
||||
#define TFT_DC 39
|
||||
#define TFT_BACKLITE 45
|
||||
|
||||
static const uint8_t SDA = 42;
|
||||
static const uint8_t SCL = 41;
|
||||
|
||||
static const uint8_t SS = 7;
|
||||
static const uint8_t MOSI = 35;
|
||||
static const uint8_t SCK = 36;
|
||||
static const uint8_t MISO = 37;
|
||||
|
||||
static const uint8_t A0 = 18;
|
||||
static const uint8_t A1 = 17;
|
||||
static const uint8_t A2 = 16;
|
||||
static const uint8_t A3 = 15;
|
||||
static const uint8_t A4 = 14;
|
||||
static const uint8_t A5 = 8;
|
||||
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 2;
|
||||
|
||||
static const uint8_t T1 = 1;
|
||||
static const uint8_t T2 = 2;
|
||||
static const uint8_t T5 = 5;
|
||||
static const uint8_t T6 = 6;
|
||||
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;
|
||||
|
||||
static const uint8_t DAC1 = 17;
|
||||
static const uint8_t DAC2 = 18;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
BIN
variants/adafruit_feather_esp32s3_tft/tinyuf2.bin
Normal file
BIN
variants/adafruit_feather_esp32s3_tft/tinyuf2.bin
Normal file
Binary file not shown.
42
variants/adafruit_feather_esp32s3_tft/variant.cpp
Normal file
42
variants/adafruit_feather_esp32s3_tft/variant.cpp
Normal file
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* 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)
|
||||
{
|
||||
// This board has power control pins, and we must set them to output and high
|
||||
// in order to enable the NeoPixels, TFT & I2C
|
||||
pinMode(NEOPIXEL_POWER, OUTPUT);
|
||||
digitalWrite(NEOPIXEL_POWER, HIGH);
|
||||
pinMode(TFT_I2C_POWER, OUTPUT);
|
||||
digitalWrite(TFT_I2C_POWER, HIGH);
|
||||
}
|
||||
|
||||
}
|
BIN
variants/adafruit_funhouse_esp32s2/bootloader-tinyuf2.bin
Normal file
BIN
variants/adafruit_funhouse_esp32s2/bootloader-tinyuf2.bin
Normal file
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
# 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, 0, ota_0, 0x10000, 1408K,
|
||||
ota_1, 0, ota_1, 0x170000, 1408K,
|
||||
uf2, app, factory,0x2d0000, 256K,
|
||||
ffat, data, fat, 0x310000, 960K,
|
|
76
variants/adafruit_funhouse_esp32s2/pins_arduino.h
Normal file
76
variants/adafruit_funhouse_esp32s2/pins_arduino.h
Normal file
@ -0,0 +1,76 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x80F9
|
||||
#define USB_MANUFACTURER "Adafruit"
|
||||
#define USB_PRODUCT "Funhouse ESP32-S2"
|
||||
#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)
|
||||
|
||||
#define LED_BUILTIN 37
|
||||
|
||||
#define PIN_BUTTON1 3
|
||||
#define PIN_BUTTON2 4
|
||||
#define PIN_BUTTON3 5
|
||||
#define PIN_BUTTON4 0 // BOOT0 switch
|
||||
|
||||
static const uint8_t PIN_DOTSTAR_DATA = 14;
|
||||
static const uint8_t PIN_DOTSTAR_CLOCK = 15;
|
||||
|
||||
static const uint8_t TFT_BACKLIGHT = 21;
|
||||
static const uint8_t TFT_DC = 39;
|
||||
static const uint8_t TFT_CS = 40;
|
||||
static const uint8_t TFT_RESET = 41;
|
||||
|
||||
static const uint8_t SPEAKER = 42;
|
||||
static const uint8_t BUTTON_DOWN = PIN_BUTTON1;
|
||||
static const uint8_t BUTTON_SELECT = PIN_BUTTON2;
|
||||
static const uint8_t BUTTON_UP = PIN_BUTTON3;
|
||||
static const uint8_t SENSOR_PIR = 16;
|
||||
static const uint8_t SENSOR_LIGHT = 18;
|
||||
|
||||
static const uint8_t SDA = 34;
|
||||
static const uint8_t SCL = 33;
|
||||
|
||||
static const uint8_t SS = 40;
|
||||
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 = 2;
|
||||
static const uint8_t A2 = 1;
|
||||
static const uint8_t A3 = 18; // light sensor
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
static const uint8_t TX = 43;
|
||||
static const uint8_t RX = 44;
|
||||
|
||||
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 DAC1 = 17;
|
||||
static const uint8_t DAC2 = 18;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
BIN
variants/adafruit_funhouse_esp32s2/tinyuf2.bin
Normal file
BIN
variants/adafruit_funhouse_esp32s2/tinyuf2.bin
Normal file
Binary file not shown.
37
variants/adafruit_funhouse_esp32s2/variant.cpp
Normal file
37
variants/adafruit_funhouse_esp32s2/variant.cpp
Normal file
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
58
variants/adafruit_itsybitsy_esp32/pins_arduino.h
Normal file
58
variants/adafruit_itsybitsy_esp32/pins_arduino.h
Normal file
@ -0,0 +1,58 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t LED_BUILTIN = 13;
|
||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||
#define LED_BUILTIN LED_BUILTIN
|
||||
|
||||
// Neopixel
|
||||
static const uint8_t PIN_NEOPIXEL = 0;
|
||||
static const uint8_t NEOPIXEL_POWER = 2;
|
||||
|
||||
static const uint8_t TX = 20;
|
||||
static const uint8_t RX = 8;
|
||||
|
||||
#define TX1 TX
|
||||
#define RX1 RX
|
||||
|
||||
static const uint8_t SDA = 15;
|
||||
static const uint8_t SCL = 27;
|
||||
|
||||
static const uint8_t SS = 32;
|
||||
static const uint8_t MOSI = 21;
|
||||
static const uint8_t MISO = 22;
|
||||
static const uint8_t SCK = 19;
|
||||
|
||||
static const uint8_t A0 = 25;
|
||||
static const uint8_t A1 = 26;
|
||||
static const uint8_t A2 = 4;
|
||||
static const uint8_t A3 = 38;
|
||||
static const uint8_t A4 = 37;
|
||||
static const uint8_t A5 = 36;
|
||||
|
||||
// internal switch
|
||||
static const uint8_t BUTTON = 35;
|
||||
|
||||
static const uint8_t T0 = 4;
|
||||
static const uint8_t T3 = 15;
|
||||
static const uint8_t T4 = 13;
|
||||
static const uint8_t T5 = 12;
|
||||
static const uint8_t T6 = 14;
|
||||
static const uint8_t T7 = 27;
|
||||
static const uint8_t T8 = 33;
|
||||
static const uint8_t T9 = 32;
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
40
variants/adafruit_itsybitsy_esp32/variant.cpp
Normal file
40
variants/adafruit_itsybitsy_esp32/variant.cpp
Normal file
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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)
|
||||
{
|
||||
// This board has a power control pin, and we must set it to output and high
|
||||
// in order to enable the NeoPixels.
|
||||
pinMode(NEOPIXEL_POWER, OUTPUT);
|
||||
digitalWrite(NEOPIXEL_POWER, HIGH);
|
||||
}
|
||||
|
||||
}
|
BIN
variants/adafruit_magtag29_esp32s2/bootloader-tinyuf2.bin
Normal file
BIN
variants/adafruit_magtag29_esp32s2/bootloader-tinyuf2.bin
Normal file
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
# 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, 0, ota_0, 0x10000, 1408K,
|
||||
ota_1, 0, ota_1, 0x170000, 1408K,
|
||||
uf2, app, factory,0x2d0000, 256K,
|
||||
ffat, data, fat, 0x310000, 960K,
|
|
96
variants/adafruit_magtag29_esp32s2/pins_arduino.h
Normal file
96
variants/adafruit_magtag29_esp32s2/pins_arduino.h
Normal file
@ -0,0 +1,96 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x80E5
|
||||
#define USB_MANUFACTURER "Adafruit"
|
||||
#define USB_PRODUCT "EPD MagTag 2.9\" ESP32-S2"
|
||||
#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)
|
||||
|
||||
#define LED_BUILTIN 13
|
||||
|
||||
#define PIN_NEOPIXEL 1 // D1
|
||||
#define NEOPIXEL_NUM 4 // number of neopixels
|
||||
#define NEOPIXEL_POWER 21 // power pin
|
||||
#define NEOPIXEL_POWER_ON LOW // power pin state when on
|
||||
|
||||
|
||||
#define PIN_BUTTON1 15
|
||||
#define PIN_BUTTON2 14
|
||||
#define PIN_BUTTON3 12
|
||||
#define PIN_BUTTON4 11
|
||||
#define PIN_BUTTON5 0 // BOOT0 switch
|
||||
|
||||
static const uint8_t EPD_BUSY = 5;
|
||||
static const uint8_t EPD_RESET = 6;
|
||||
static const uint8_t EPD_DC = 7;
|
||||
static const uint8_t EPD_CS = 8;
|
||||
|
||||
static const uint8_t ACCEL_IRQ = 9;
|
||||
|
||||
static const uint8_t BUTTON_A = PIN_BUTTON1;
|
||||
static const uint8_t BUTTON_B = PIN_BUTTON2;
|
||||
static const uint8_t BUTTON_C = PIN_BUTTON3;
|
||||
static const uint8_t BUTTON_D = PIN_BUTTON4;
|
||||
|
||||
static const uint8_t LIGHT_SENSOR = 3;
|
||||
static const uint8_t BATT_MONITOR = 4;
|
||||
static const uint8_t SPEAKER_SHUTDOWN = 16;
|
||||
|
||||
static const uint8_t SDA = 33;
|
||||
static const uint8_t SCL = 34;
|
||||
|
||||
static const uint8_t SS = 8;
|
||||
static const uint8_t MOSI = 35;
|
||||
static const uint8_t SCK = 36;
|
||||
static const uint8_t MISO = 37;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
static const uint8_t TX = 43;
|
||||
static const uint8_t RX = 44;
|
||||
|
||||
|
||||
static const uint8_t A0 = 17;
|
||||
static const uint8_t A1 = 18;
|
||||
static const uint8_t A2 = 1;
|
||||
static const uint8_t A3 = 2;
|
||||
static const uint8_t A4 = 3;
|
||||
static const uint8_t A5 = 4;
|
||||
static const uint8_t A6 = 5;
|
||||
static const uint8_t A7 = 6;
|
||||
static const uint8_t A8 = 7;
|
||||
static const uint8_t A9 = 8;
|
||||
static const uint8_t A10 = 9;
|
||||
static const uint8_t A11 = 10;
|
||||
static const uint8_t A12 = 11;
|
||||
static const uint8_t A13 = 12;
|
||||
static const uint8_t A14 = 13;
|
||||
static const uint8_t A15 = 14;
|
||||
static const uint8_t A16 = 15;
|
||||
static const uint8_t A17 = 16;
|
||||
static const uint8_t A18 = 19;
|
||||
static const uint8_t A19 = 20;
|
||||
|
||||
|
||||
static const uint8_t T10 = 10;
|
||||
|
||||
|
||||
static const uint8_t DAC1 = 17;
|
||||
static const uint8_t DAC2 = 18;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
BIN
variants/adafruit_magtag29_esp32s2/tinyuf2.bin
Normal file
BIN
variants/adafruit_magtag29_esp32s2/tinyuf2.bin
Normal file
Binary file not shown.
37
variants/adafruit_magtag29_esp32s2/variant.cpp
Normal file
37
variants/adafruit_magtag29_esp32s2/variant.cpp
Normal file
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
BIN
variants/adafruit_metro_esp32s2/bootloader-tinyuf2.bin
Normal file
BIN
variants/adafruit_metro_esp32s2/bootloader-tinyuf2.bin
Normal file
Binary file not shown.
11
variants/adafruit_metro_esp32s2/partitions-4MB-tinyuf2.csv
Normal file
11
variants/adafruit_metro_esp32s2/partitions-4MB-tinyuf2.csv
Normal file
@ -0,0 +1,11 @@
|
||||
# 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, 0, ota_0, 0x10000, 1408K,
|
||||
ota_1, 0, ota_1, 0x170000, 1408K,
|
||||
uf2, app, factory,0x2d0000, 256K,
|
||||
ffat, data, fat, 0x310000, 960K,
|
|
79
variants/adafruit_metro_esp32s2/pins_arduino.h
Normal file
79
variants/adafruit_metro_esp32s2/pins_arduino.h
Normal file
@ -0,0 +1,79 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x80DF
|
||||
#define USB_MANUFACTURER "Adafruit"
|
||||
#define USB_PRODUCT "Metro ESP32-S2"
|
||||
#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)
|
||||
|
||||
#define LED_BUILTIN 42
|
||||
|
||||
#define PIN_NEOPIXEL 45
|
||||
#define NEOPIXEL_NUM 1
|
||||
|
||||
#define PIN_BUTTON1 0 // BOOT0 switch
|
||||
|
||||
static const uint8_t TX = 5;
|
||||
static const uint8_t RX = 6;
|
||||
|
||||
static const uint8_t SDA = 33;
|
||||
static const uint8_t SCL = 34;
|
||||
|
||||
static const uint8_t SS = 42;
|
||||
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 A2 = 1;
|
||||
static const uint8_t A3 = 2;
|
||||
static const uint8_t A4 = 3;
|
||||
static const uint8_t A5 = 4;
|
||||
static const uint8_t A6 = 5;
|
||||
static const uint8_t A7 = 6;
|
||||
static const uint8_t A8 = 7;
|
||||
static const uint8_t A9 = 8;
|
||||
static const uint8_t A10 = 9;
|
||||
static const uint8_t A11 = 10;
|
||||
static const uint8_t A12 = 11;
|
||||
static const uint8_t A13 = 12;
|
||||
static const uint8_t A14 = 13;
|
||||
static const uint8_t A15 = 14;
|
||||
static const uint8_t A16 = 15;
|
||||
static const uint8_t A17 = 16;
|
||||
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;
|
||||
|
||||
static const uint8_t DAC1 = 17;
|
||||
static const uint8_t DAC2 = 18;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
BIN
variants/adafruit_metro_esp32s2/tinyuf2.bin
Normal file
BIN
variants/adafruit_metro_esp32s2/tinyuf2.bin
Normal file
Binary file not shown.
37
variants/adafruit_metro_esp32s2/variant.cpp
Normal file
37
variants/adafruit_metro_esp32s2/variant.cpp
Normal file
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
61
variants/adafruit_qtpy_esp32/pins_arduino.h
Normal file
61
variants/adafruit_qtpy_esp32/pins_arduino.h
Normal file
@ -0,0 +1,61 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
#define PIN_NEOPIXEL 5
|
||||
#define NEOPIXEL_POWER 8
|
||||
|
||||
static const uint8_t TX = 32;
|
||||
static const uint8_t RX = 7;
|
||||
|
||||
#define TX1 32
|
||||
#define RX1 7
|
||||
|
||||
static const uint8_t SDA = 4;
|
||||
static const uint8_t SCL = 33;
|
||||
|
||||
#define WIRE1_PIN_DEFINED 1 // See Wire.cpp at bool TwoWire::initPins(int sdaPin, int sclPin)
|
||||
static const uint8_t SDA1 = 22;
|
||||
static const uint8_t SCL1 = 19;
|
||||
|
||||
static const uint8_t SS = 27;
|
||||
static const uint8_t MOSI = 13;
|
||||
static const uint8_t MISO = 12;
|
||||
static const uint8_t SCK = 14;
|
||||
|
||||
static const uint8_t A0 = 26;
|
||||
static const uint8_t A1 = 25;
|
||||
static const uint8_t A2 = 27;
|
||||
static const uint8_t A3 = 15;
|
||||
static const uint8_t A4 = 4;
|
||||
static const uint8_t A5 = 33;
|
||||
static const uint8_t A6 = 32;
|
||||
static const uint8_t A7 = 7;
|
||||
static const uint8_t A8 = 14;
|
||||
static const uint8_t A9 = 12;
|
||||
static const uint8_t A10 = 13;
|
||||
|
||||
static const uint8_t BUTTON = 0;
|
||||
|
||||
static const uint8_t T0 = 4;
|
||||
static const uint8_t T3 = 15;
|
||||
static const uint8_t T4 = 13;
|
||||
static const uint8_t T5 = 12;
|
||||
static const uint8_t T6 = 14;
|
||||
static const uint8_t T7 = 27;
|
||||
static const uint8_t T8 = 33;
|
||||
static const uint8_t T9 = 32;
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
40
variants/adafruit_qtpy_esp32/variant.cpp
Normal file
40
variants/adafruit_qtpy_esp32/variant.cpp
Normal file
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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)
|
||||
{
|
||||
// This board has a power control pin, and we must set it to output and high
|
||||
// in order to enable the NeoPixels.
|
||||
pinMode(NEOPIXEL_POWER, OUTPUT);
|
||||
digitalWrite(NEOPIXEL_POWER, HIGH);
|
||||
}
|
||||
|
||||
}
|
34
variants/adafruit_qtpy_esp32c3/pins_arduino.h
Normal file
34
variants/adafruit_qtpy_esp32c3/pins_arduino.h
Normal file
@ -0,0 +1,34 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 22
|
||||
#define NUM_DIGITAL_PINS 22
|
||||
#define NUM_ANALOG_INPUTS 6
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<NUM_ANALOG_INPUTS)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
|
||||
|
||||
#define BUTTON 9
|
||||
#define PIN_NEOPIXEL 2
|
||||
|
||||
static const uint8_t TX = 21;
|
||||
static const uint8_t RX = 20;
|
||||
|
||||
static const uint8_t SDA = 5;
|
||||
static const uint8_t SCL = 6;
|
||||
|
||||
static const uint8_t SS = 6;
|
||||
static const uint8_t MOSI = 7;
|
||||
static const uint8_t MISO = 8;
|
||||
static const uint8_t SCK = 10;
|
||||
|
||||
static const uint8_t A0 = 4;
|
||||
static const uint8_t A1 = 3;
|
||||
static const uint8_t A2 = 1;
|
||||
static const uint8_t A3 = 0;
|
||||
static const uint8_t A4 = 5;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
BIN
variants/adafruit_qtpy_esp32s2/bootloader-tinyuf2.bin
Normal file
BIN
variants/adafruit_qtpy_esp32s2/bootloader-tinyuf2.bin
Normal file
Binary file not shown.
11
variants/adafruit_qtpy_esp32s2/partitions-4MB-tinyuf2.csv
Normal file
11
variants/adafruit_qtpy_esp32s2/partitions-4MB-tinyuf2.csv
Normal file
@ -0,0 +1,11 @@
|
||||
# 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, 0, ota_0, 0x10000, 1408K,
|
||||
ota_1, 0, ota_1, 0x170000, 1408K,
|
||||
uf2, app, factory,0x2d0000, 256K,
|
||||
ffat, data, fat, 0x310000, 960K,
|
|
64
variants/adafruit_qtpy_esp32s2/pins_arduino.h
Normal file
64
variants/adafruit_qtpy_esp32s2/pins_arduino.h
Normal file
@ -0,0 +1,64 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x8111
|
||||
#define USB_MANUFACTURER "Adafruit"
|
||||
#define USB_PRODUCT "QT Py ESP32-S2"
|
||||
#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)
|
||||
|
||||
//#define LED_BUILTIN 13
|
||||
|
||||
#define PIN_NEOPIXEL 39
|
||||
#define NEOPIXEL_NUM 1 // number of neopixels
|
||||
#define NEOPIXEL_POWER 38 // power pin
|
||||
#define NEOPIXEL_POWER_ON HIGH // power pin state when on
|
||||
|
||||
static const uint8_t SDA = 7;
|
||||
static const uint8_t SCL = 6;
|
||||
|
||||
#define WIRE1_PIN_DEFINED 1 // See Wire.cpp at bool TwoWire::initPins(int sdaPin, int sclPin)
|
||||
static const uint8_t SDA1 = 41;
|
||||
static const uint8_t SCL1 = 40;
|
||||
|
||||
static const uint8_t SS = 42;
|
||||
static const uint8_t MOSI = 35;
|
||||
static const uint8_t SCK = 36;
|
||||
static const uint8_t MISO = 37;
|
||||
|
||||
static const uint8_t A0 = 18;
|
||||
static const uint8_t A1 = 17;
|
||||
static const uint8_t A2 = 9;
|
||||
static const uint8_t A3 = 8;
|
||||
static const uint8_t A4 = 7;
|
||||
static const uint8_t A5 = 6;
|
||||
static const uint8_t A6 = 5;
|
||||
static const uint8_t A7 = 16;
|
||||
|
||||
static const uint8_t TX = 5;
|
||||
static const uint8_t RX = 16;
|
||||
#define TX1 TX
|
||||
#define RX1 RX
|
||||
|
||||
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 DAC1 = 17;
|
||||
static const uint8_t DAC2 = 18;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
BIN
variants/adafruit_qtpy_esp32s2/tinyuf2.bin
Normal file
BIN
variants/adafruit_qtpy_esp32s2/tinyuf2.bin
Normal file
Binary file not shown.
40
variants/adafruit_qtpy_esp32s2/variant.cpp
Normal file
40
variants/adafruit_qtpy_esp32s2/variant.cpp
Normal file
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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)
|
||||
{
|
||||
// This board has a power control pin, and we must set it to output and high
|
||||
// in order to enable the NeoPixels.
|
||||
pinMode(NEOPIXEL_POWER, OUTPUT);
|
||||
digitalWrite(NEOPIXEL_POWER, HIGH);
|
||||
}
|
||||
|
||||
}
|
BIN
variants/adafruit_qtpy_esp32s3_nopsram/bootloader-tinyuf2.bin
Normal file
BIN
variants/adafruit_qtpy_esp32s3_nopsram/bootloader-tinyuf2.bin
Normal file
Binary file not shown.
@ -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, 0, ota_0, 0x10000, 2048K,
|
||||
ota_1, 0, ota_1, 0x210000, 2048K,
|
||||
uf2, app, factory,0x410000, 256K,
|
||||
ffat, data, fat, 0x450000, 3776K,
|
|
57
variants/adafruit_qtpy_esp32s3_nopsram/pins_arduino.h
Normal file
57
variants/adafruit_qtpy_esp32s3_nopsram/pins_arduino.h
Normal file
@ -0,0 +1,57 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x8119
|
||||
#define USB_MANUFACTURER "Adafruit"
|
||||
#define USB_PRODUCT "QT Py ESP32-S3 No PSRAM"
|
||||
#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)
|
||||
|
||||
#define PIN_NEOPIXEL 39
|
||||
#define NEOPIXEL_NUM 1 // number of neopixels
|
||||
#define NEOPIXEL_POWER 38 // power pin
|
||||
#define NEOPIXEL_POWER_ON HIGH // power pin state when on
|
||||
|
||||
static const uint8_t TX = 5;
|
||||
static const uint8_t RX = 16;
|
||||
#define TX1 TX
|
||||
#define RX1 RX
|
||||
|
||||
static const uint8_t SDA = 7;
|
||||
static const uint8_t SCL = 6;
|
||||
|
||||
#define WIRE1_PIN_DEFINED 1 // See Wire.cpp at bool TwoWire::initPins(int sdaPin, int sclPin)
|
||||
static const uint8_t SDA1 = 41;
|
||||
static const uint8_t SCL1 = 40;
|
||||
|
||||
static const uint8_t SS = 42;
|
||||
static const uint8_t MOSI = 35;
|
||||
static const uint8_t SCK = 36;
|
||||
static const uint8_t MISO = 37;
|
||||
|
||||
static const uint8_t A0 = 18;
|
||||
static const uint8_t A1 = 17;
|
||||
static const uint8_t A2 = 9;
|
||||
static const uint8_t A3 = 8;
|
||||
static const uint8_t A4 = 7;
|
||||
static const uint8_t A5 = 6;
|
||||
static const uint8_t A6 = 5;
|
||||
static const uint8_t A7 = 16;
|
||||
|
||||
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;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
BIN
variants/adafruit_qtpy_esp32s3_nopsram/tinyuf2.bin
Normal file
BIN
variants/adafruit_qtpy_esp32s3_nopsram/tinyuf2.bin
Normal file
Binary file not shown.
39
variants/adafruit_qtpy_esp32s3_nopsram/variant.cpp
Normal file
39
variants/adafruit_qtpy_esp32s3_nopsram/variant.cpp
Normal file
@ -0,0 +1,39 @@
|
||||
/*
|
||||
* 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)
|
||||
{
|
||||
// This board has a power control pin, and we must set it to output and high
|
||||
// in order to enable the NeoPixels.
|
||||
pinMode(NEOPIXEL_POWER, OUTPUT);
|
||||
digitalWrite(NEOPIXEL_POWER, HIGH);
|
||||
}
|
||||
}
|
86
variants/alksesp32/pins_arduino.h
Normal file
86
variants/alksesp32/pins_arduino.h
Normal file
@ -0,0 +1,86 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
#define ALKSESP32 // tell library to not map pins again
|
||||
|
||||
static const uint8_t LED_BUILTIN = 23;
|
||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||
#define LED_BUILTIN LED_BUILTIN
|
||||
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 3;
|
||||
|
||||
static const uint8_t D0 = 40;
|
||||
static const uint8_t D1 = 41;
|
||||
static const uint8_t D2 = 15;
|
||||
static const uint8_t D3 = 2;
|
||||
static const uint8_t D4 = 0;
|
||||
static const uint8_t D5 = 4;
|
||||
static const uint8_t D6 = 16;
|
||||
static const uint8_t D7 = 17;
|
||||
static const uint8_t D8 = 5;
|
||||
static const uint8_t D9 = 18;
|
||||
static const uint8_t D10 = 19;
|
||||
static const uint8_t D11 = 21;
|
||||
static const uint8_t D12 = 22;
|
||||
static const uint8_t D13 = 23;
|
||||
|
||||
static const uint8_t A0 = 32;
|
||||
static const uint8_t A1 = 33;
|
||||
static const uint8_t A2 = 25;
|
||||
static const uint8_t A3 = 26;
|
||||
static const uint8_t A4 = 27;
|
||||
static const uint8_t A5 = 14;
|
||||
static const uint8_t A6 = 12;
|
||||
static const uint8_t A7 = 15;
|
||||
|
||||
static const uint8_t L_R = 22;
|
||||
static const uint8_t L_G = 17;
|
||||
static const uint8_t L_Y = 23;
|
||||
static const uint8_t L_B = 5;
|
||||
static const uint8_t L_RGB_R = 4;
|
||||
static const uint8_t L_RGB_G = 21;
|
||||
static const uint8_t L_RGB_B = 16;
|
||||
|
||||
static const uint8_t SW1 = 15;
|
||||
static const uint8_t SW2 = 2;
|
||||
static const uint8_t SW3 = 0;
|
||||
|
||||
static const uint8_t POT1 = 32;
|
||||
static const uint8_t POT2 = 33;
|
||||
|
||||
static const uint8_t PIEZO1 = 19;
|
||||
static const uint8_t PIEZO2 = 18;
|
||||
|
||||
static const uint8_t PHOTO = 25;
|
||||
|
||||
static const uint8_t DHT_PIN = 26;
|
||||
|
||||
static const uint8_t S1 = 4;
|
||||
static const uint8_t S2 = 16;
|
||||
static const uint8_t S3 = 18;
|
||||
static const uint8_t S4 = 19;
|
||||
static const uint8_t S5 = 21;
|
||||
|
||||
static const uint8_t SDA = 27;
|
||||
static const uint8_t SCL = 14;
|
||||
|
||||
static const uint8_t SS = 19;
|
||||
static const uint8_t MOSI = 21;
|
||||
static const uint8_t MISO = 22;
|
||||
static const uint8_t SCK = 23;
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
BIN
variants/atmegazero_esp32s2/bootloader-tinyuf2.bin
Normal file
BIN
variants/atmegazero_esp32s2/bootloader-tinyuf2.bin
Normal file
Binary file not shown.
10
variants/atmegazero_esp32s2/partitions-16MB-tinyuf2.csv
Normal file
10
variants/atmegazero_esp32s2/partitions-16MB-tinyuf2.csv
Normal file
@ -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, 0, ota_0, 0x10000, 2048K,
|
||||
ota_1, 0, ota_1, 0x210000, 2048K,
|
||||
uf2, app, factory,0x410000, 256K,
|
||||
ffat, data, fat, 0x450000, 11968K,
|
|
59
variants/atmegazero_esp32s2/pins_arduino.h
Normal file
59
variants/atmegazero_esp32s2/pins_arduino.h
Normal file
@ -0,0 +1,59 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define USB_VID 0x239A
|
||||
#define USB_PID 0x800A
|
||||
#define USB_MANUFACTURER "ATMegaZero"
|
||||
#define USB_PRODUCT "ATMZ-ESP32S2"
|
||||
#define USB_SERIAL ""
|
||||
|
||||
#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 NEOPIXEL = 40;
|
||||
static const uint8_t PD5 = 0;
|
||||
|
||||
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 = 38;
|
||||
static const uint8_t MOSI = 35;
|
||||
static const uint8_t MISO = 37;
|
||||
static const uint8_t SCK = 36;
|
||||
|
||||
static const uint8_t A0 = 17;
|
||||
static const uint8_t A1 = 18;
|
||||
static const uint8_t A2 = 13;
|
||||
static const uint8_t A3 = 12;
|
||||
static const uint8_t A4 = 6;
|
||||
static const uint8_t A5 = 3;
|
||||
|
||||
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;
|
||||
|
||||
static const uint8_t DAC1 = 17;
|
||||
static const uint8_t DAC2 = 18;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
BIN
variants/atmegazero_esp32s2/tinyuf2.bin
Normal file
BIN
variants/atmegazero_esp32s2/tinyuf2.bin
Normal file
Binary file not shown.
62
variants/bpi-bit/pins_arduino.h
Normal file
62
variants/bpi-bit/pins_arduino.h
Normal file
@ -0,0 +1,62 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (analogChannelToDigitalPin(p)) : -1)
|
||||
#define digitalPinToInterrupt(p) (((p) < 40) ? (p) : -1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t BUZZER = 25;
|
||||
|
||||
static const uint8_t BUTTON_A = 35;
|
||||
static const uint8_t BUTTON_B = 27;
|
||||
|
||||
static const uint8_t RGB_LED = 4;
|
||||
|
||||
static const uint8_t LIGHT_SENSOR1 = 36;
|
||||
static const uint8_t LIGHT_SENSOR2 = 39;
|
||||
|
||||
static const uint8_t TEMPERATURE_SENSOR = 34;
|
||||
|
||||
static const uint8_t MPU9250_INT = 0;
|
||||
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 3;
|
||||
|
||||
static const uint8_t SDA = 21;
|
||||
static const uint8_t SCL = 22;
|
||||
|
||||
static const uint8_t SS = 5;
|
||||
static const uint8_t MOSI = 23;
|
||||
static const uint8_t MISO = 19;
|
||||
static const uint8_t SCK = 18;
|
||||
|
||||
static const uint8_t P0 = 25;
|
||||
static const uint8_t P1 = 32;
|
||||
static const uint8_t P2 = 33;
|
||||
static const uint8_t P3 = 13;
|
||||
static const uint8_t P4 = 15;
|
||||
static const uint8_t P5 = 35;
|
||||
static const uint8_t P6 = 12;
|
||||
static const uint8_t P7 = 14;
|
||||
static const uint8_t P8 = 16;
|
||||
static const uint8_t P9 = 17;
|
||||
static const uint8_t P10 = 26;
|
||||
static const uint8_t P11 = 27;
|
||||
static const uint8_t P12 = 2;
|
||||
static const uint8_t P13 = 18;
|
||||
static const uint8_t P14 = 19;
|
||||
static const uint8_t P15 = 23;
|
||||
static const uint8_t P16 = 5;
|
||||
static const uint8_t P19 = 22;
|
||||
static const uint8_t P20 = 21;
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
79
variants/ch_denky/pins_arduino.h
Normal file
79
variants/ch_denky/pins_arduino.h
Normal file
@ -0,0 +1,79 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 3;
|
||||
|
||||
static const uint8_t SDA = 21;
|
||||
static const uint8_t SCL = 22;
|
||||
|
||||
static const uint8_t SS = 5;
|
||||
static const uint8_t MOSI = 23;
|
||||
static const uint8_t MISO = 19;
|
||||
static const uint8_t SCK = 18;
|
||||
|
||||
static const uint8_t A0 = 36;
|
||||
static const uint8_t A3 = 39;
|
||||
static const uint8_t A4 = 32;
|
||||
static const uint8_t A5 = 33;
|
||||
static const uint8_t A6 = 34;
|
||||
static const uint8_t A7 = 35;
|
||||
static const uint8_t A10 = 4;
|
||||
static const uint8_t A11 = 0;
|
||||
static const uint8_t A12 = 2;
|
||||
static const uint8_t A13 = 15;
|
||||
static const uint8_t A14 = 13;
|
||||
static const uint8_t A15 = 12;
|
||||
static const uint8_t A16 = 14;
|
||||
static const uint8_t A17 = 27;
|
||||
static const uint8_t A18 = 25;
|
||||
static const uint8_t A19 = 26;
|
||||
|
||||
static const uint8_t T0 = 4;
|
||||
static const uint8_t T1 = 0;
|
||||
static const uint8_t T2 = 2;
|
||||
static const uint8_t T3 = 15;
|
||||
static const uint8_t T4 = 13;
|
||||
static const uint8_t T5 = 12;
|
||||
static const uint8_t T6 = 14;
|
||||
static const uint8_t T7 = 27;
|
||||
static const uint8_t T8 = 33;
|
||||
static const uint8_t T9 = 32;
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
// Specific CH2i (Charles Hallard) Boards
|
||||
// 1st Revision Denky with ESP WROOM32 + LoRa RN2483 module
|
||||
#if defined (ARDUINO_DENKY_WROOM32)
|
||||
#define PUSH_BUTTON 0
|
||||
#define TIC_ENABLE_PIN 4
|
||||
#define TIC_RX_PIN 33
|
||||
#define LORA_TX_PIN 26
|
||||
#define LORA_RX_PIN 27
|
||||
#define LORA_RESET 14
|
||||
#define RGB_LED_PIN 25
|
||||
|
||||
// 2nd Utra Small version with ESP Pico-D4-V3-02
|
||||
#elif defined (ARDUINO_DENKY_PICOV3)
|
||||
// RGB Led Pins
|
||||
#define LED_RED_PIN 27
|
||||
#define LED_GRN_PIN 26
|
||||
#define LED_BLU_PIN 25
|
||||
|
||||
// Teleinfo RXD pin is connected to ESP32-PICO-V3-02 GPIO8
|
||||
#define TIC_RX_PIN 8
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
56
variants/cnrs_aw2eth/pins_arduino.h
Normal file
56
variants/cnrs_aw2eth/pins_arduino.h
Normal file
@ -0,0 +1,56 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 3;
|
||||
|
||||
static const uint8_t SDA = 9;
|
||||
static const uint8_t SCL = 10;
|
||||
|
||||
static const uint8_t SS = 5;
|
||||
static const uint8_t MOSI = 14;
|
||||
static const uint8_t MISO = 13;
|
||||
static const uint8_t SCK = 4;
|
||||
|
||||
static const uint8_t A0 = 36;
|
||||
static const uint8_t A3 = 39;
|
||||
static const uint8_t A4 = 32;
|
||||
static const uint8_t A5 = 33;
|
||||
static const uint8_t A6 = 34;
|
||||
static const uint8_t A7 = 35;
|
||||
static const uint8_t A10 = 4;
|
||||
static const uint8_t A11 = 0;
|
||||
static const uint8_t A12 = 2;
|
||||
static const uint8_t A13 = 15;
|
||||
static const uint8_t A14 = 13;
|
||||
static const uint8_t A15 = 12;
|
||||
static const uint8_t A16 = 14;
|
||||
static const uint8_t A17 = 27;
|
||||
static const uint8_t A18 = 25;
|
||||
static const uint8_t A19 = 26;
|
||||
|
||||
static const uint8_t T0 = 4;
|
||||
static const uint8_t T1 = 0;
|
||||
static const uint8_t T2 = 2;
|
||||
static const uint8_t T3 = 15;
|
||||
static const uint8_t T4 = 13;
|
||||
static const uint8_t T5 = 12;
|
||||
static const uint8_t T6 = 14;
|
||||
static const uint8_t T7 = 27;
|
||||
static const uint8_t T8 = 33;
|
||||
static const uint8_t T9 = 32;
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
85
variants/connaxio_espoir/pins_arduino.h
Normal file
85
variants/connaxio_espoir/pins_arduino.h
Normal file
@ -0,0 +1,85 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
/* variant: Espoir
|
||||
* vendor: Connaxio
|
||||
* url: https://www.connaxio.com/electronics/espoir/
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
/* USB UART */
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 3;
|
||||
|
||||
/* mikroBUS UART */
|
||||
static const uint8_t TX1 = 10;
|
||||
static const uint8_t RX1 = 9;
|
||||
|
||||
/* mikroBUS I2C */
|
||||
static const uint8_t SDA = 23;
|
||||
static const uint8_t SCL = 18;
|
||||
|
||||
/* mikroBUS SPI */
|
||||
static const uint8_t SS = 15;
|
||||
static const uint8_t MOSI = 13;
|
||||
static const uint8_t MISO = 12;
|
||||
static const uint8_t SCK = 14;
|
||||
|
||||
/* Default analog pins */
|
||||
static const uint8_t A0 = 36;
|
||||
static const uint8_t A1 = 37;
|
||||
static const uint8_t A2 = 38;
|
||||
static const uint8_t A3 = 39;
|
||||
static const uint8_t A6 = 34;
|
||||
|
||||
/* Alternative analog pins */
|
||||
static const uint8_t A10 = 4;
|
||||
static const uint8_t A12 = 2;
|
||||
static const uint8_t A13 = 15;
|
||||
static const uint8_t A14 = 13;
|
||||
static const uint8_t A15 = 12;
|
||||
static const uint8_t A16 = 14;
|
||||
|
||||
/* Touch pins */
|
||||
static const uint8_t T0 = 4;
|
||||
static const uint8_t T2 = 2;
|
||||
static const uint8_t T3 = 15;
|
||||
static const uint8_t T4 = 13;
|
||||
static const uint8_t T5 = 12;
|
||||
static const uint8_t T6 = 14;
|
||||
|
||||
/* Other pin names */
|
||||
static const uint8_t AN = 36;
|
||||
static const uint8_t RST = 5;
|
||||
static const uint8_t PWM = 2;
|
||||
static const uint8_t INT = 4;
|
||||
static const uint8_t CS = 15;
|
||||
static const uint8_t SDO = 13;
|
||||
static const uint8_t SDI = 12;
|
||||
|
||||
/* Ethernet interface */
|
||||
static const uint8_t ETH_INT = 35;
|
||||
#define ETH_PHY_ADDR 0
|
||||
#define ETH_PHY_POWER -1
|
||||
#define ETH_PHY_MDC 32
|
||||
#define ETH_PHY_MDIO 33
|
||||
#define ETH_PHY_TYPE ETH_PHY_KSZ8081
|
||||
#define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN
|
||||
|
||||
/* USB interface */
|
||||
#define USB_VID 0x10C4 // Silabs's VID
|
||||
#define USB_PID 0x8D9A // Espoir's PID, requires Silab USB PHY
|
||||
#define USB_MANUFACTURER "Connaxio"
|
||||
#define USB_PRODUCT "Espoir"
|
||||
#define USB_SERIAL ""
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
64
variants/d-duino-32/pins_arduino.h
Normal file
64
variants/d-duino-32/pins_arduino.h
Normal file
@ -0,0 +1,64 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 3;
|
||||
|
||||
static const uint8_t SDA = 5;
|
||||
static const uint8_t SCL = 4;
|
||||
|
||||
static const uint8_t SS = 15;
|
||||
static const uint8_t MOSI = 13;
|
||||
static const uint8_t MISO = 12;
|
||||
static const uint8_t SCK = 14;
|
||||
|
||||
static const uint8_t A0 = 36;
|
||||
static const uint8_t A3 = 39;
|
||||
static const uint8_t A10 = 4;
|
||||
static const uint8_t A11 = 0;
|
||||
static const uint8_t A12 = 2;
|
||||
static const uint8_t A13 = 15;
|
||||
static const uint8_t A14 = 13;
|
||||
static const uint8_t A15 = 12;
|
||||
static const uint8_t A16 = 14;
|
||||
static const uint8_t A18 = 25;
|
||||
static const uint8_t A19 = 26;
|
||||
|
||||
static const uint8_t T0 = 4;
|
||||
static const uint8_t T1 = 0;
|
||||
static const uint8_t T2 = 2;
|
||||
static const uint8_t T3 = 15;
|
||||
static const uint8_t T4 = 13;
|
||||
static const uint8_t T5 = 12;
|
||||
static const uint8_t T6 = 14;
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
// Wemos Grove Shield
|
||||
static const uint8_t D1 = 5;
|
||||
static const uint8_t D2 = 4;
|
||||
static const uint8_t D3 = 0;
|
||||
static const uint8_t D4 = 2;
|
||||
static const uint8_t D5 = 14;
|
||||
static const uint8_t D6 = 12;
|
||||
static const uint8_t D7 = 13;
|
||||
static const uint8_t D8 = 15;
|
||||
static const uint8_t D9 = 3;
|
||||
static const uint8_t D10 = 1;
|
||||
|
||||
// OLed
|
||||
static const uint8_t OLED_SCL = SCL;
|
||||
static const uint8_t OLED_SDA = SDA;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
34
variants/d1_mini32/pins_arduino.h
Normal file
34
variants/d1_mini32/pins_arduino.h
Normal file
@ -0,0 +1,34 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
#include <../d32/d32_core.h>
|
||||
|
||||
static const uint8_t LED_BUILTIN = 2;
|
||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||
#define LED_BUILTIN LED_BUILTIN
|
||||
static const uint8_t _VBAT = 35; // battery voltage
|
||||
|
||||
#define PIN_WIRE_SDA SDA // backward compatibility
|
||||
#define PIN_WIRE_SCL SCL // backward compatibility
|
||||
|
||||
static const uint8_t D0 = 26;
|
||||
static const uint8_t D1 = 22;
|
||||
static const uint8_t D2 = 21;
|
||||
static const uint8_t D3 = 17;
|
||||
static const uint8_t D4 = 16;
|
||||
static const uint8_t D5 = 18;
|
||||
static const uint8_t D6 = 19;
|
||||
static const uint8_t D7 = 23;
|
||||
static const uint8_t D8 = 5;
|
||||
static const uint8_t RXD = 3;
|
||||
static const uint8_t TXD = 1;
|
||||
|
||||
#define PIN_SPI_SS SS // backward compatibility
|
||||
#define PIN_SPI_MOSI MOSI // backward compatibility
|
||||
#define PIN_SPI_MISO MISO // backward compatibility
|
||||
#define PIN_SPI_SCK SCK // backward compatibility
|
||||
|
||||
#define PIN_A0 A0 // backward compatibility
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
64
variants/d1_uno32/pins_arduino.h
Normal file
64
variants/d1_uno32/pins_arduino.h
Normal file
@ -0,0 +1,64 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
// Board Pinmap: https://www.botnroll.com/en/esp/3639-wemos-d1-r32-w-esp32-uno-r3-pinout.html
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 3;
|
||||
|
||||
static const uint8_t SDA = 21;
|
||||
static const uint8_t SCL = 22;
|
||||
|
||||
static const uint8_t SS = 5;
|
||||
static const uint8_t MOSI = 23;
|
||||
static const uint8_t MISO = 19;
|
||||
static const uint8_t SCK = 18;
|
||||
|
||||
static const uint8_t A0 = 2;
|
||||
static const uint8_t A1 = 4;
|
||||
static const uint8_t A2 = 35;
|
||||
static const uint8_t A3 = 34;
|
||||
static const uint8_t A4 = 36;
|
||||
static const uint8_t A5 = 39;
|
||||
|
||||
static const uint8_t LED_BUILTIN = 2;
|
||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||
#define LED_BUILTIN LED_BUILTIN
|
||||
|
||||
#define PIN_WIRE_SDA SDA // backward compatibility
|
||||
#define PIN_WIRE_SCL SCL // backward compatibility
|
||||
|
||||
static const uint8_t D0 = 3;
|
||||
static const uint8_t D1 = 1;
|
||||
static const uint8_t D2 = 26;
|
||||
static const uint8_t D3 = 25;
|
||||
static const uint8_t D4 = 17;
|
||||
static const uint8_t D5 = 16;
|
||||
static const uint8_t D6 = 27;
|
||||
static const uint8_t D7 = 14;
|
||||
static const uint8_t D8 = 12;
|
||||
static const uint8_t D9 = 13;
|
||||
static const uint8_t D10 = 5;
|
||||
static const uint8_t D11 = 23;
|
||||
static const uint8_t D12 = 19;
|
||||
static const uint8_t D13 = 18;
|
||||
|
||||
#define PIN_SPI_SS SS // backward compatibility
|
||||
#define PIN_SPI_MOSI MOSI // backward compatibility
|
||||
#define PIN_SPI_MISO MISO // backward compatibility
|
||||
#define PIN_SPI_SCK SCK // backward compatibility
|
||||
|
||||
#define PIN_A0 A0 // backward compatibility
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
54
variants/d32/d32_core.h
Normal file
54
variants/d32/d32_core.h
Normal file
@ -0,0 +1,54 @@
|
||||
#ifndef _D32_CORE_H_
|
||||
#define _D32_CORE_H_
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 3;
|
||||
|
||||
static const uint8_t SDA = 21;
|
||||
static const uint8_t SCL = 22;
|
||||
|
||||
static const uint8_t SS = 5;
|
||||
static const uint8_t MOSI = 23;
|
||||
static const uint8_t MISO = 19;
|
||||
static const uint8_t SCK = 18;
|
||||
|
||||
static const uint8_t A0 = 36;
|
||||
static const uint8_t A3 = 39;
|
||||
static const uint8_t A4 = 32;
|
||||
static const uint8_t A5 = 33;
|
||||
static const uint8_t A6 = 34;
|
||||
static const uint8_t A7 = 35;
|
||||
static const uint8_t A10 = 4;
|
||||
static const uint8_t A11 = 0;
|
||||
static const uint8_t A12 = 2;
|
||||
static const uint8_t A13 = 15;
|
||||
static const uint8_t A14 = 13;
|
||||
static const uint8_t A15 = 12;
|
||||
static const uint8_t A16 = 14;
|
||||
static const uint8_t A17 = 27;
|
||||
static const uint8_t A18 = 25;
|
||||
static const uint8_t A19 = 26;
|
||||
|
||||
static const uint8_t T0 = 4;
|
||||
static const uint8_t T1 = 0;
|
||||
static const uint8_t T2 = 2;
|
||||
static const uint8_t T3 = 15;
|
||||
static const uint8_t T4 = 13;
|
||||
static const uint8_t T5 = 12;
|
||||
static const uint8_t T6 = 14;
|
||||
static const uint8_t T7 = 27;
|
||||
static const uint8_t T8 = 33;
|
||||
static const uint8_t T9 = 32;
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
#endif
|
12
variants/d32/pins_arduino.h
Normal file
12
variants/d32/pins_arduino.h
Normal file
@ -0,0 +1,12 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
#include <d32_core.h>
|
||||
|
||||
static const uint8_t LED_BUILTIN = 5;
|
||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||
#define LED_BUILTIN LED_BUILTIN
|
||||
static const uint8_t _VBAT = 35; // battery voltage
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
21
variants/d32_pro/pins_arduino.h
Normal file
21
variants/d32_pro/pins_arduino.h
Normal file
@ -0,0 +1,21 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
#include <../d32/d32_core.h>
|
||||
|
||||
static const uint8_t LED_BUILTIN = 5;
|
||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||
#define LED_BUILTIN LED_BUILTIN
|
||||
static const uint8_t _VBAT = 35; // battery voltage
|
||||
|
||||
#define TF_CS 4 // TF (Micro SD Card) CS pin
|
||||
#define TS_CS 12 // Touch Screen CS pin
|
||||
#define TFT_CS 14 // TFT CS pin
|
||||
#define TFT_LED 32 // TFT backlight control pin
|
||||
#define TFT_RST 33 // TFT reset pin
|
||||
#define TFT_DC 27 // TFT DC pin
|
||||
|
||||
#define SS TF_CS
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
105
variants/deneyapkart/pins_arduino.h
Normal file
105
variants/deneyapkart/pins_arduino.h
Normal file
@ -0,0 +1,105 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 3;
|
||||
|
||||
static const uint8_t SDA = 4;
|
||||
static const uint8_t SCL = 15;
|
||||
|
||||
static const uint8_t SS = 21;
|
||||
static const uint8_t MOSI = 5;
|
||||
static const uint8_t MISO = 18;
|
||||
static const uint8_t SCK = 19;
|
||||
|
||||
static const uint8_t D0 = 23;
|
||||
static const uint8_t D1 = 22;
|
||||
static const uint8_t D2 = 1;
|
||||
static const uint8_t D3 = 3;
|
||||
static const uint8_t D4 = 21;
|
||||
static const uint8_t D5 = 19;
|
||||
static const uint8_t D6 = 18;
|
||||
static const uint8_t D7 = 5;
|
||||
static const uint8_t D8 = 0;
|
||||
static const uint8_t D9 = 2;
|
||||
static const uint8_t D10 = 4;
|
||||
static const uint8_t D11 = 15;
|
||||
static const uint8_t D12 = 13;
|
||||
static const uint8_t D13 = 12;
|
||||
static const uint8_t D14 = 14;
|
||||
static const uint8_t D15 = 27;
|
||||
|
||||
static const uint8_t A0 = 36;
|
||||
static const uint8_t A1 = 39;
|
||||
static const uint8_t A2 = 34;
|
||||
static const uint8_t A3 = 35;
|
||||
static const uint8_t A4 = 32;
|
||||
static const uint8_t A5 = 33;
|
||||
// static const uint8_t A6 = 34;
|
||||
// static const uint8_t A7 = 35;
|
||||
// static const uint8_t A10 = 4;
|
||||
// static const uint8_t A11 = 0;
|
||||
// static const uint8_t A12 = 2;
|
||||
// static const uint8_t A13 = 15;
|
||||
// static const uint8_t A14 = 13;
|
||||
// static const uint8_t A15 = 12;
|
||||
// static const uint8_t A16 = 14;
|
||||
// static const uint8_t A17 = 27;
|
||||
// static const uint8_t A18 = 25;
|
||||
// static const uint8_t A19 = 26;
|
||||
|
||||
static const uint8_t T0 = 32;
|
||||
static const uint8_t T1 = 33;
|
||||
static const uint8_t T2 = 27;
|
||||
static const uint8_t T3 = 14;
|
||||
static const uint8_t T4 = 12;
|
||||
static const uint8_t T5 = 13;
|
||||
// static const uint8_t T6 = 14;
|
||||
// static const uint8_t T7 = 27;
|
||||
// static const uint8_t T8 = 33;
|
||||
// static const uint8_t T9 = 32;
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
static const uint8_t CAMSD = 33;
|
||||
static const uint8_t CAMSC = 25;
|
||||
static const uint8_t CAMD2 = 19;
|
||||
static const uint8_t CAMD3 = 22;
|
||||
static const uint8_t CAMD4 = 23;
|
||||
static const uint8_t CAMD5 = 21;
|
||||
static const uint8_t CAMD6 = 18;
|
||||
static const uint8_t CAMD7 = 26;
|
||||
static const uint8_t CAMD8 = 35;
|
||||
static const uint8_t CAMD9 = 34;
|
||||
static const uint8_t CAMPC = 5;
|
||||
static const uint8_t CAMXC = 32;
|
||||
static const uint8_t CAMH = 39;
|
||||
static const uint8_t CAMV = 36;
|
||||
|
||||
static const uint8_t LEDR = 3;
|
||||
static const uint8_t LEDG = 1;
|
||||
static const uint8_t LEDB = 4;
|
||||
static const uint8_t BUILTIN_KEY = 0;
|
||||
static const uint8_t GPKEY = 0;
|
||||
|
||||
static const uint8_t PWM0 = 23;
|
||||
static const uint8_t PWM1 = 22;
|
||||
|
||||
static const uint8_t MICD = 12;
|
||||
static const uint8_t MICC = 13;
|
||||
|
||||
static const uint8_t IMUSD = 4;
|
||||
static const uint8_t IMUSC = 15;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
102
variants/deneyapkart1A/pins_arduino.h
Normal file
102
variants/deneyapkart1A/pins_arduino.h
Normal file
@ -0,0 +1,102 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 3;
|
||||
|
||||
static const uint8_t SDA = 4;
|
||||
static const uint8_t SCL = 15;
|
||||
|
||||
static const uint8_t SS = 21;
|
||||
static const uint8_t MOSI = 5;
|
||||
static const uint8_t MISO = 18;
|
||||
static const uint8_t SCK = 19;
|
||||
|
||||
static const uint8_t D0 = 23;
|
||||
static const uint8_t D1 = 22;
|
||||
static const uint8_t D2 = 1;
|
||||
static const uint8_t D3 = 3;
|
||||
static const uint8_t D4 = 21;
|
||||
static const uint8_t D5 = 19;
|
||||
static const uint8_t D6 = 18;
|
||||
static const uint8_t D7 = 5;
|
||||
static const uint8_t D8 = 0;
|
||||
static const uint8_t D9 = 2;
|
||||
static const uint8_t D10 = 4;
|
||||
static const uint8_t D11 = 15;
|
||||
static const uint8_t D12 = 13;
|
||||
static const uint8_t D13 = 12;
|
||||
static const uint8_t D14 = 14;
|
||||
static const uint8_t D15 = 27;
|
||||
|
||||
static const uint8_t A0 = 36;
|
||||
static const uint8_t A1 = 39;
|
||||
static const uint8_t A2 = 34;
|
||||
static const uint8_t A3 = 35;
|
||||
static const uint8_t A4 = 32;
|
||||
static const uint8_t A5 = 33;
|
||||
// static const uint8_t A6 = 34;
|
||||
// static const uint8_t A7 = 35;
|
||||
// static const uint8_t A10 = 4;
|
||||
// static const uint8_t A11 = 0;
|
||||
// static const uint8_t A12 = 2;
|
||||
// static const uint8_t A13 = 15;
|
||||
// static const uint8_t A14 = 13;
|
||||
// static const uint8_t A15 = 12;
|
||||
// static const uint8_t A16 = 14;
|
||||
// static const uint8_t A17 = 27;
|
||||
// static const uint8_t A18 = 25;
|
||||
// static const uint8_t A19 = 26;
|
||||
|
||||
static const uint8_t T0 = 32;
|
||||
static const uint8_t T1 = 33;
|
||||
static const uint8_t T2 = 27;
|
||||
static const uint8_t T3 = 14;
|
||||
static const uint8_t T4 = 12;
|
||||
static const uint8_t T5 = 13;
|
||||
// static const uint8_t T6 = 14;
|
||||
// static const uint8_t T7 = 27;
|
||||
// static const uint8_t T8 = 33;
|
||||
// static const uint8_t T9 = 32;
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
static const uint8_t CAMSD = 33;
|
||||
static const uint8_t CAMSC = 25;
|
||||
static const uint8_t CAMD2 = 19;
|
||||
static const uint8_t CAMD3 = 22;
|
||||
static const uint8_t CAMD4 = 23;
|
||||
static const uint8_t CAMD5 = 21;
|
||||
static const uint8_t CAMD6 = 18;
|
||||
static const uint8_t CAMD7 = 26;
|
||||
static const uint8_t CAMD8 = 35;
|
||||
static const uint8_t CAMD9 = 34;
|
||||
static const uint8_t CAMPC = 5;
|
||||
static const uint8_t CAMXC = 32;
|
||||
static const uint8_t CAMH = 39;
|
||||
static const uint8_t CAMV = 36;
|
||||
|
||||
static const uint8_t RGBLED = 13;
|
||||
static const uint8_t BUILTIN_KEY = 0;
|
||||
static const uint8_t GPKEY = 0;
|
||||
|
||||
static const uint8_t PWM0 = 23;
|
||||
static const uint8_t PWM1 = 22;
|
||||
|
||||
static const uint8_t SDMI = 2;
|
||||
static const uint8_t SDMO = 14;
|
||||
static const uint8_t SDCS = 12;
|
||||
static const uint8_t SDCK = 27;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
42
variants/deneyapkartg/pins_arduino.h
Normal file
42
variants/deneyapkartg/pins_arduino.h
Normal file
@ -0,0 +1,42 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 22
|
||||
#define NUM_DIGITAL_PINS 22
|
||||
#define NUM_ANALOG_INPUTS 6
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<NUM_ANALOG_INPUTS)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
|
||||
|
||||
static const uint8_t KEY_BUILTIN = 9;
|
||||
|
||||
static const uint8_t TX = 21;
|
||||
static const uint8_t RX = 20;
|
||||
|
||||
static const uint8_t SDA = 8;
|
||||
static const uint8_t SCL = 2;
|
||||
|
||||
static const uint8_t SS = 7;
|
||||
static const uint8_t MOSI = 6;
|
||||
static const uint8_t MISO = 5;
|
||||
static const uint8_t SCK = 4;
|
||||
|
||||
static const uint8_t A0 = 0;
|
||||
static const uint8_t A1 = 1;
|
||||
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 D0 = 21;
|
||||
static const uint8_t D1 = 20;
|
||||
static const uint8_t D2 = 9;
|
||||
static const uint8_t D3 = 10;
|
||||
static const uint8_t D4 = 8;
|
||||
static const uint8_t D5 = 7;
|
||||
static const uint8_t D6 = 2;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
66
variants/deneyapmini/pins_arduino.h
Normal file
66
variants/deneyapmini/pins_arduino.h
Normal file
@ -0,0 +1,66 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#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 KEY_BUILTIN = 0;
|
||||
|
||||
static const uint8_t TX = 43;
|
||||
static const uint8_t RX = 44;
|
||||
|
||||
static const uint8_t SDA = 36;
|
||||
static const uint8_t SCL = 37;
|
||||
|
||||
static const uint8_t SS = 21;
|
||||
static const uint8_t MOSI = 40;
|
||||
static const uint8_t MISO = 39;
|
||||
static const uint8_t SCK = 38;
|
||||
|
||||
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;
|
||||
|
||||
static const uint8_t DAC1 = 17;
|
||||
static const uint8_t DAC2 = 18;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
# 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, 0, ota_0, 0x10000, 1408K,
|
||||
ota_1, 0, ota_1, 0x170000, 1408K,
|
||||
uf2, app, factory,0x2d0000, 256K,
|
||||
ffat, data, fat, 0x310000, 960K,
|
|
@ -0,0 +1,66 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
#define USB_VID 0x303a
|
||||
#define USB_PID 0x80FF
|
||||
#define USB_MANUFACTURER "Department of Alchemy"
|
||||
#define USB_PRODUCT "MiniMain ESP32-S2"
|
||||
#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)
|
||||
|
||||
#define LED_BUILTIN 13
|
||||
|
||||
#define PIN_NEOPIXEL 33
|
||||
#define NEOPIXEL_NUM 1 // number of neopixels
|
||||
#define NEOPIXEL_POWER 21 // power pin
|
||||
#define NEOPIXEL_POWER_ON HIGH // power pin state when on
|
||||
#define PIN_SERVO 2 // servo pin
|
||||
#define PIN_ISOLATED_INPUT 40 // optocoupled input
|
||||
|
||||
static const uint8_t SDA = 3;
|
||||
static const uint8_t SCL = 4;
|
||||
|
||||
static const uint8_t SS = 42;
|
||||
static const uint8_t MOSI = 35;
|
||||
static const uint8_t SCK = 36;
|
||||
static const uint8_t MISO = 37;
|
||||
|
||||
static const uint8_t A0 = 18;
|
||||
static const uint8_t A1 = 17;
|
||||
static const uint8_t A2 = 16;
|
||||
static const uint8_t A3 = 15;
|
||||
static const uint8_t A4 = 14;
|
||||
static const uint8_t A5 = 8;
|
||||
|
||||
|
||||
static const uint8_t TX = 39;
|
||||
static const uint8_t RX = 38;
|
||||
#define TX1 TX
|
||||
#define RX1 RX
|
||||
|
||||
static const uint8_t T2 = 2;
|
||||
static const uint8_t T5 = 5;
|
||||
static const uint8_t T6 = 6;
|
||||
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;
|
||||
|
||||
static const uint8_t DAC1 = 17;
|
||||
static const uint8_t DAC2 = 18;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
BIN
variants/department_of_alchemy_minimain_esp32s2/tinyuf2.bin
Normal file
BIN
variants/department_of_alchemy_minimain_esp32s2/tinyuf2.bin
Normal file
Binary file not shown.
39
variants/department_of_alchemy_minimain_esp32s2/variant.cpp
Normal file
39
variants/department_of_alchemy_minimain_esp32s2/variant.cpp
Normal file
@ -0,0 +1,39 @@
|
||||
/*
|
||||
* 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)
|
||||
{
|
||||
// This board has a power control pin, and we must set it to output and high
|
||||
// in order to enable the NeoPixels.
|
||||
pinMode(NEOPIXEL_POWER, OUTPUT);
|
||||
digitalWrite(NEOPIXEL_POWER, HIGH);
|
||||
}
|
||||
}
|
58
variants/dfrobot_beetle_esp32c3/pins_arduino.h
Normal file
58
variants/dfrobot_beetle_esp32c3/pins_arduino.h
Normal file
@ -0,0 +1,58 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define USB_VID 0x3343
|
||||
#define USB_PID 0x8364
|
||||
#define USB_MANUFACTURER "DFRobot"
|
||||
#define USB_PRODUCT "Beetle ESP32-C3"
|
||||
#define USB_SERIAL "" // Empty string for MAC adddress
|
||||
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 22
|
||||
#define NUM_DIGITAL_PINS 22
|
||||
#define NUM_ANALOG_INPUTS 6
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<NUM_ANALOG_INPUTS)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
|
||||
|
||||
static const uint8_t LED_BUILTIN = 10;
|
||||
|
||||
static const uint8_t TX = 21;
|
||||
static const uint8_t RX = 20;
|
||||
|
||||
static const uint8_t SDA = 8;
|
||||
static const uint8_t SCL = 9;
|
||||
|
||||
static const uint8_t SS = 7;
|
||||
static const uint8_t MOSI = 6;
|
||||
static const uint8_t MISO = 5;
|
||||
static const uint8_t SCK = 4;
|
||||
|
||||
static const uint8_t A0 = 0;
|
||||
static const uint8_t A1 = 1;
|
||||
static const uint8_t A2 = 2;
|
||||
static const uint8_t A3 = 3;
|
||||
static const uint8_t A4 = 4;
|
||||
static const uint8_t A5 = 5;
|
||||
|
||||
#define GDI_DISPLAY_FPC_INTERFACE
|
||||
#ifdef GDI_DISPLAY_FPC_INTERFACE
|
||||
|
||||
#define GDI_BLK LED_BUILTIN
|
||||
#define GDI_SPI_SCLK SCK
|
||||
#define GDI_SPI_MOSI MOSI
|
||||
#define GDI_SPI_MISO MISO
|
||||
#define GDI_DC A1
|
||||
#define GDI_RES A2
|
||||
#define GDI_CS SS
|
||||
#define GDI_SDCS A0
|
||||
#define GDI_TCS A3
|
||||
#define GDI_SCL SCL
|
||||
#define GDI_SDA SDA
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
90
variants/dfrobot_firebeetle2_esp32s3/pins_arduino.h
Normal file
90
variants/dfrobot_firebeetle2_esp32s3/pins_arduino.h
Normal file
@ -0,0 +1,90 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define USB_VID 0x3343
|
||||
#define USB_PID 0x83CF
|
||||
#define USB_MANUFACTURER "DFRobot"
|
||||
#define USB_PRODUCT "FireBeetle 2 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 TX = 43;
|
||||
static const uint8_t RX = 44;
|
||||
|
||||
static const uint8_t SDA = 1;
|
||||
static const uint8_t SCL = 2;
|
||||
|
||||
static const uint8_t SS = 10;
|
||||
static const uint8_t MOSI = 15;
|
||||
static const uint8_t MISO = 16;
|
||||
static const uint8_t SCK = 17;
|
||||
|
||||
static const uint8_t A0 = 4;
|
||||
static const uint8_t A1 = 5;
|
||||
static const uint8_t A2 = 6;
|
||||
static const uint8_t A3 = 8;
|
||||
static const uint8_t A4 = 10;
|
||||
static const uint8_t A5 = 11;
|
||||
|
||||
|
||||
static const uint8_t D2 = 3;
|
||||
static const uint8_t D3 = 38;
|
||||
static const uint8_t D5 = 7;
|
||||
static const uint8_t D6 = 18;
|
||||
static const uint8_t D7 = 9;
|
||||
static const uint8_t D9 = 0;
|
||||
static const uint8_t D10 = 14;
|
||||
static const uint8_t D11 = 13;
|
||||
static const uint8_t D12 = 12;
|
||||
static const uint8_t D13 = 21;
|
||||
static const uint8_t D14 = 47;
|
||||
|
||||
static const uint8_t LED_BUILTIN = D13;
|
||||
|
||||
|
||||
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;
|
||||
|
||||
#define GDI_DISPLAY_FPC_INTERFACE
|
||||
#ifdef GDI_DISPLAY_FPC_INTERFACE
|
||||
|
||||
#define GDI_BLK 21
|
||||
#define GDI_SPI_SCLK SCK
|
||||
#define GDI_SPI_MOSI MOSI
|
||||
#define GDI_SPI_MISO MISO
|
||||
#define GDI_DC 3
|
||||
#define GDI_RES 38
|
||||
#define GDI_CS 18
|
||||
#define GDI_SDCS 9
|
||||
#define GDI_FCS 7
|
||||
#define GDI_TCS 12
|
||||
#define GDI_SCL SCL
|
||||
#define GDI_SDA SDA
|
||||
#define GDI_INT 13
|
||||
#define GDI_BUSY_TE 14
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
60
variants/doitESP32devkitV1/pins_arduino.h
Normal file
60
variants/doitESP32devkitV1/pins_arduino.h
Normal file
@ -0,0 +1,60 @@
|
||||
#ifndef Pins_Arduino_h
|
||||
#define Pins_Arduino_h
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 16
|
||||
|
||||
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
|
||||
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
static const uint8_t LED_BUILTIN = 2;
|
||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
||||
#define LED_BUILTIN LED_BUILTIN
|
||||
|
||||
static const uint8_t TX = 1;
|
||||
static const uint8_t RX = 3;
|
||||
|
||||
static const uint8_t SDA = 21;
|
||||
static const uint8_t SCL = 22;
|
||||
|
||||
static const uint8_t SS = 5;
|
||||
static const uint8_t MOSI = 23;
|
||||
static const uint8_t MISO = 19;
|
||||
static const uint8_t SCK = 18;
|
||||
|
||||
static const uint8_t A0 = 36;
|
||||
static const uint8_t A3 = 39;
|
||||
static const uint8_t A4 = 32;
|
||||
static const uint8_t A5 = 33;
|
||||
static const uint8_t A6 = 34;
|
||||
static const uint8_t A7 = 35;
|
||||
static const uint8_t A10 = 4;
|
||||
static const uint8_t A11 = 0;
|
||||
static const uint8_t A12 = 2;
|
||||
static const uint8_t A13 = 15;
|
||||
static const uint8_t A14 = 13;
|
||||
static const uint8_t A15 = 12;
|
||||
static const uint8_t A16 = 14;
|
||||
static const uint8_t A17 = 27;
|
||||
static const uint8_t A18 = 25;
|
||||
static const uint8_t A19 = 26;
|
||||
|
||||
static const uint8_t T0 = 4;
|
||||
static const uint8_t T1 = 0;
|
||||
static const uint8_t T2 = 2;
|
||||
static const uint8_t T3 = 15;
|
||||
static const uint8_t T4 = 13;
|
||||
static const uint8_t T5 = 12;
|
||||
static const uint8_t T6 = 14;
|
||||
static const uint8_t T7 = 27;
|
||||
static const uint8_t T8 = 33;
|
||||
static const uint8_t T9 = 32;
|
||||
|
||||
static const uint8_t DAC1 = 25;
|
||||
static const uint8_t DAC2 = 26;
|
||||
|
||||
#endif /* Pins_Arduino_h */
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user