-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Add FED4 board #11536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add FED4 board #11536
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7e358ae
Added Fed 4 board
strid3r21 66fabf3
Merge branch 'master' of https://github.com/strid3r21/arduino-esp32
strid3r21 471f782
fixed boards.txt
strid3r21 bd7ffd7
fixed board.txt again
strid3r21 302c84e
added usb pid address
strid3r21 52f8809
fixed typo: updated name to upper case
strid3r21 a9b6bdb
fix(fed4): update PID and change partition scheme to default_16MB
strid3r21 b721b7f
fix(fed4): remove unused OPI flash mode configurations
strid3r21 1b2825f
ci(pre-commit): Apply automatic fixes
pre-commit-ci-lite[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
#include "soc/soc_caps.h" | ||
|
||
#define USB_VID 0x303A | ||
#define USB_PID 0x82E5 | ||
#define USB_MANUFACTURER "Smart Bee Designs LLC" | ||
#define USB_PRODUCT "FED4" | ||
#define USB_SERIAL "" | ||
|
||
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 SDA2 = 20; | ||
static const uint8_t SCL2 = 19; | ||
|
||
static const uint8_t SS = 47; | ||
static const uint8_t MOSI = 11; | ||
static const uint8_t MISO = 13; | ||
static const uint8_t SCK = 12; | ||
static const uint8_t SDCS = 10; // sd cs pin | ||
static const uint8_t DSCS = 14; //display cs pin | ||
|
||
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; | ||
static const uint8_t A6 = 6; | ||
|
||
static const uint8_t D1 = 1; | ||
static const uint8_t D2 = 2; | ||
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 D8 = 8; | ||
static const uint8_t D13 = 13; | ||
static const uint8_t D9 = 9; | ||
|
||
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 BOOT_BTN = 0; | ||
static const uint8_t VBAT_VOLTAGE = 7; | ||
static const uint8_t LDO2 = 47; | ||
static const uint8_t STATUS_RGB = 35; | ||
static const uint8_t RGB_STRIP = 36; | ||
static const uint8_t INTERRUPT_PIN = 18; | ||
static const uint8_t USER_BTN_1 = 14; | ||
static const uint8_t USER_BTN_2 = 39; | ||
static const uint8_t USER_BTN_3 = 40; | ||
static const uint8_t AMP_DIN = 39; | ||
static const uint8_t AMP_SD = 42; | ||
static const uint8_t AMP_BCLK = 45; | ||
static const uint8_t AMP_LRCLK = 48; | ||
static const uint8_t MSBY = 15; | ||
static const uint8_t TRRS_1 = 4; | ||
static const uint8_t TRRS_2 = 2; | ||
static const uint8_t TRRS_3 = 3; | ||
|
||
#define PIN_RGB_LED STATUS_RGB | ||
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino | ||
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_RGB_LED; | ||
#define BUILTIN_LED LED_BUILTIN // backward compatibility | ||
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN | ||
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbLedWrite() | ||
#define RGB_BUILTIN LED_BUILTIN | ||
#define RGB_BRIGHTNESS 64 | ||
|
||
#endif /* Pins_Arduino_h */ |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.