Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions variants/AirM2M_CORE_ESP32C3/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)

static const uint8_t LED_BUILTIN = 12;
#define BUILTIN_LED LED_BUILTIN
static const uint8_t LED_BUILTIN_AUX = 13;

static const uint8_t TX = 21;
static const uint8_t RX = 20;

Expand Down
7 changes: 7 additions & 0 deletions variants/AirM2M_CORE_ESP32C3/variant.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include "Arduino.h"

extern "C" void initVariant(void){
// Stop LEDs floating
pinMode(LED_BUILTIN, OUTPUT); digitalWrite(LED_BUILTIN, LOW);
pinMode(LED_BUILTIN_AUX, OUTPUT); digitalWrite(LED_BUILTIN_AUX, LOW);
}