mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-07 10:27:43 +00:00
trunk roundhouse kick
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#define EXTERNAL_NUM_INTERRUPTS 16
|
||||
#define NUM_DIGITAL_PINS 40
|
||||
#define NUM_ANALOG_INPUTS 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)
|
||||
#define analogInputToDigitalPin(p) (((p) < 20) ? (esp32_adc2gpio[(p)]) : -1)
|
||||
#define digitalPinToInterrupt(p) (((p) < 40) ? (p) : -1)
|
||||
#define digitalPinHasPWM(p) (p < 34)
|
||||
|
||||
#define TX2 -1
|
||||
#define RX2 -1
|
||||
@@ -20,10 +20,10 @@ static const uint8_t RX = 3;
|
||||
static const uint8_t SDA = 32;
|
||||
static const uint8_t SCL = 33;
|
||||
|
||||
static const uint8_t SS = 9;
|
||||
static const uint8_t MOSI = 23;
|
||||
static const uint8_t MISO = 34;
|
||||
static const uint8_t SCK = 18;
|
||||
static const uint8_t SS = 9;
|
||||
static const uint8_t MOSI = 23;
|
||||
static const uint8_t MISO = 34;
|
||||
static const uint8_t SCK = 18;
|
||||
|
||||
static const uint8_t G26 = 26;
|
||||
static const uint8_t G36 = 36;
|
||||
|
||||
@@ -10,16 +10,16 @@
|
||||
#define PCF8563_RTC 0x51
|
||||
#define HAS_RTC 1
|
||||
|
||||
//Wheel
|
||||
// Down 37
|
||||
// Push 38
|
||||
// Up 39
|
||||
// Top Physical Button 5
|
||||
// Wheel
|
||||
// Down 37
|
||||
// Push 38
|
||||
// Up 39
|
||||
// Top Physical Button 5
|
||||
|
||||
#define BUTTON_NEED_PULLUP
|
||||
#define BUTTON_PIN 5
|
||||
|
||||
//BUZZER
|
||||
// BUZZER
|
||||
#define PIN_BUZZER 2
|
||||
|
||||
#undef RF95_SCK
|
||||
@@ -28,10 +28,10 @@
|
||||
#undef RF95_NSS
|
||||
#define USE_RF95
|
||||
|
||||
#define RF95_SCK 18
|
||||
#define RF95_SCK 18
|
||||
#define RF95_MISO 34
|
||||
#define RF95_MOSI 23
|
||||
#define RF95_NSS 14
|
||||
#define RF95_MOSI 23
|
||||
#define RF95_NSS 14
|
||||
#define LORA_DIO0 25
|
||||
#define LORA_RESET 26
|
||||
#define LORA_DIO1 RADIOLIB_NC
|
||||
@@ -42,12 +42,12 @@
|
||||
#undef GPS_TX_PIN
|
||||
|
||||
#define USE_EINK
|
||||
//https://docs.m5stack.com/en/core/coreink
|
||||
//https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/schematic/Core/coreink/coreink_sch.pdf
|
||||
#define PIN_EINK_EN -1 // N/C
|
||||
#define PIN_EINK_CS 9 // EPD_CS
|
||||
#define PIN_EINK_BUSY 4 // EPD_BUSY
|
||||
#define PIN_EINK_DC 15 // EPD_D/C
|
||||
#define PIN_EINK_RES -1 // Connected but not needed
|
||||
#define PIN_EINK_SCLK 18 // EPD_SCLK
|
||||
#define PIN_EINK_MOSI 23 // EPD_MOSI
|
||||
// https://docs.m5stack.com/en/core/coreink
|
||||
// https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/schematic/Core/coreink/coreink_sch.pdf
|
||||
#define PIN_EINK_EN -1 // N/C
|
||||
#define PIN_EINK_CS 9 // EPD_CS
|
||||
#define PIN_EINK_BUSY 4 // EPD_BUSY
|
||||
#define PIN_EINK_DC 15 // EPD_D/C
|
||||
#define PIN_EINK_RES -1 // Connected but not needed
|
||||
#define PIN_EINK_SCLK 18 // EPD_SCLK
|
||||
#define PIN_EINK_MOSI 23 // EPD_MOSI
|
||||
|
||||
Reference in New Issue
Block a user