Prvni ulozeni z chegewara githubu
This commit is contained in:
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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user