-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Added the DoIT ESPduino-32 board #1520
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
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
2a931d2
Created a directory inside variants
alexceltare2 1e5bf94
Create arduino pins and define them
alexceltare2 db6d2ee
Delete file.txt
alexceltare2 c3f2ba9
Add ESPduino32 board
alexceltare2 b8f4a49
added builtin_led
alexceltare2 b83d231
Completed specification (SD Pins, missing GPIO and others)
alexceltare2 4bb60a4
updated with newer upload.maximum_data_size
alexceltare2 6f07ff8
updated SPI definitions, TX, RX and Flash clarification.
alexceltare2 efd3a3a
Update boards.txt
alexceltare2 849a2da
Update boards.txt
alexceltare2 56cacad
Update boards.txt
alexceltare2 b3334bf
Merge pull request #1 from espressif/master
alexceltare2 baabcb4
Update pins_Arduino.h
alexceltare2 94405a1
Update boards.txt
alexceltare2 4ee1351
Update pins_Arduino.h
alexceltare2 b641bab
Update pins_Arduino.h
alexceltare2 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,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)?(esp32_adc2gpio[(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 | ||
|
||
|
||
static const uint8_t SDA = 21; | ||
static const uint8_t SCL = 22; | ||
|
||
//SPI | ||
static const uint8_t IO5 = 5; //SS | ||
static const uint8_t IO23 = 23; //MOSI | ||
static const uint8_t IO19 = 19; //MISO | ||
static const uint8_t IO18 = 18; //SCK | ||
|
||
//ANALOG | ||
static const uint8_t IO36 = 36; | ||
static const uint8_t IO39 = 39; | ||
static const uint8_t IO4 = 4; | ||
static const uint8_t IO2 = 2; | ||
static const uint8_t IO35 = 35; | ||
//ANALOG+ | ||
static const uint8_t IO15 = 15; | ||
static const uint8_t IO33 = 33; | ||
static const uint8_t IO32 = 32; | ||
static const uint8_t IO0 = 0; | ||
|
||
//DIGITAL | ||
static const uint8_t IO13 = 13; | ||
static const uint8_t IO12 = 12; | ||
static const uint8_t IO14 = 14; | ||
static const uint8_t IO27 = 27; | ||
static const uint8_t IO16 = 16; | ||
static const uint8_t IO17 = 17; | ||
static const uint8_t IO25 = 25; | ||
static const uint8_t IO26 = 26; | ||
static const uint8_t TX0 = 1; | ||
static const uint8_t RX0 = 3; | ||
//TFlash(uSD) | ||
static const uint8_t SD2 = 9; | ||
alexceltare2 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
static const uint8_t SD3 = 10; | ||
static const uint8_t CMD = 11; | ||
static const uint8_t CLK = 6; | ||
static const uint8_t SD0 = 7; | ||
static const uint8_t SD1 = 8; | ||
|
||
// ESP-WROOM-32 does not have GPIO 14, 20(NC), 24, 28, 29, 30, 31, 36, 37, 38, 40+ | ||
// All pins should be PWM capable. The board is a clone of WeMos D1 R32. | ||
|
||
#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.