8000 Initial C2 support by Jason2866 · Pull Request #227 · tasmota/arduino-esp32 · GitHub
[go: up one dir, main page]

Skip to content

Initial C2 support #227

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 8 commits into from
Jul 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update pins_arduino.h
  • Loading branch information
Jason2866 authored Jul 24, 2023
commit b86db3c0ddd44ecd2a96d81fb173aa26f983ee7b
4 changes: 4 additions & 0 deletions variants/esp32c2/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
#define NUM_DIGITAL_PINS 14
#define NUM_ANALOG_INPUTS 5

static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT-13;
#define BUILTIN_LED LED_BUILTIN // backward compatibility
#define LED_BUILTIN LED_BUILTIN

#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)
Expand Down
0