mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-23 09:06:02 +00:00
Add SX1262 to M5Stack CoreInk (#3078)
* Update platformio.ini * Update variant.h * Update variant.h * Update variant.h * Update variant.h * Update variant.h * Update variant.h * Update variant.h * Update variant.h
This commit is contained in:
parent
0d85069bec
commit
ccb5485510
@ -16,11 +16,11 @@ build_flags =
|
||||
-DM5STACK
|
||||
lib_deps =
|
||||
${esp32_base.lib_deps}
|
||||
zinggjm/GxEPD2@^1.4.9
|
||||
zinggjm/GxEPD2@^1.5.3
|
||||
lewisxhe/PCF8563_Library@^1.0.1
|
||||
lib_ignore =
|
||||
m5stack-coreink
|
||||
monitor_filters = esp32_exception_decoder
|
||||
board_build.f_cpu = 240000000L
|
||||
upload_protocol = esptool
|
||||
;upload_port = /dev/ttyACM0
|
||||
upload_port = /dev/ttyACM0
|
||||
|
@ -2,16 +2,12 @@
|
||||
#define I2C_SDA 21
|
||||
#define I2C_SCL 22
|
||||
|
||||
// 7-07-2023 Or enable Secondary I2C Bus
|
||||
// #define I2C_SDA1 32
|
||||
// #define I2C_SCL1 33
|
||||
|
||||
#define HAS_GPS 1
|
||||
#undef GPS_RX_PIN
|
||||
#undef GPS_TX_PIN
|
||||
// Use Secondary I2C Bus as GPS Serial
|
||||
#define GPS_RX_PIN 33
|
||||
#define GPS_TX_PIN 32
|
||||
// #define GPS_TX_PIN 32 (now used by SX1262 BUSY as GPS works with just RX)
|
||||
|
||||
// Green LED
|
||||
#define LED_INVERTED 0
|
||||
@ -38,7 +34,9 @@
|
||||
#undef LORA_MISO
|
||||
#undef LORA_MOSI
|
||||
#undef LORA_CS
|
||||
|
||||
#define USE_RF95
|
||||
// #define USE_SX1262
|
||||
// #define USE_SX1280
|
||||
|
||||
#ifdef USE_RF95
|
||||
@ -52,6 +50,23 @@
|
||||
#define LORA_DIO2 RADIOLIB_NC
|
||||
#endif
|
||||
|
||||
// https://www.waveshare.com/core1262-868m.htm
|
||||
#ifdef USE_SX1262
|
||||
#define LORA_SCK 18
|
||||
#define LORA_MISO 34
|
||||
#define LORA_MOSI 23
|
||||
#define LORA_CS 14
|
||||
#define LORA_RESET 26
|
||||
#define LORA_DIO1 25
|
||||
#define LORA_DIO2 32 // 33 // (13 not working) //BUSY pin on SX1262
|
||||
#define SX126X_CS LORA_CS
|
||||
#define SX126X_DIO1 LORA_DIO1
|
||||
#define SX126X_BUSY LORA_DIO2
|
||||
#define SX126X_RESET LORA_RESET
|
||||
#define SX126X_DIO2_AS_RF_SWITCH
|
||||
#define SX126X_DIO3_TCXO_VOLTAGE 1.8
|
||||
#endif
|
||||
|
||||
#ifdef USE_SX1280
|
||||
#define LORA_SCK 18
|
||||
#define LORA_MISO 34
|
||||
@ -90,5 +105,5 @@
|
||||
// |
|
||||
// GND
|
||||
// https://github.com/m5stack/M5Core-Ink/blob/master/examples/Basics/FactoryTest/FactoryTest.ino#L58
|
||||
#define ADC_MULTIPLIER 5 // Just a guess for now... more detailed getBatVoltage above
|
||||
#define ADC_MULTIPLIER 5
|
||||
// https://embeddedexplorer.com/esp32-adc-esp-idf-tutorial/
|
||||
|
Loading…
Reference in New Issue
Block a user