mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-11 07:57:22 +00:00
Compare commits
9 Commits
b702828a34
...
7858bbaa10
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7858bbaa10 | ||
![]() |
4c901033b2 | ||
![]() |
7d926da98c | ||
![]() |
1b793d1f23 | ||
![]() |
b9935e9deb | ||
![]() |
ca24631a66 | ||
![]() |
18373cdf60 | ||
![]() |
d637bfe2ba | ||
![]() |
450849b4cd |
38
boards/t5-epaper-s3.json
Normal file
38
boards/t5-epaper-s3.json
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"build": {
|
||||||
|
"arduino": {
|
||||||
|
"ldscript": "esp32s3_out.ld",
|
||||||
|
"memory_type": "qio_opi",
|
||||||
|
"partitions": "default_16MB.csv"
|
||||||
|
},
|
||||||
|
"core": "esp32",
|
||||||
|
"extra_flags": [
|
||||||
|
"-DBOARD_HAS_PSRAM",
|
||||||
|
"-DARDUINO_RUNNING_CORE=0",
|
||||||
|
"-DARDUINO_EVENT_RUNNING_CORE=0",
|
||||||
|
"-DARDUINO_USB_CDC_ON_BOOT=1",
|
||||||
|
"-DARDUINO_USB_MODE=1"
|
||||||
|
],
|
||||||
|
"f_cpu": "240000000L",
|
||||||
|
"f_flash": "80000000L",
|
||||||
|
"flash_mode": "qio",
|
||||||
|
"hwids": [["0x303A", "0x1001"]],
|
||||||
|
"mcu": "esp32s3",
|
||||||
|
"variant": "esp32s3"
|
||||||
|
},
|
||||||
|
"connectivity": ["wifi", "bluetooth", "lora"],
|
||||||
|
"debug": {
|
||||||
|
"openocd_target": "esp32s3.cfg"
|
||||||
|
},
|
||||||
|
"frameworks": ["arduino", "espidf"],
|
||||||
|
"name": "LilyGo T5-ePaper-S3",
|
||||||
|
"upload": {
|
||||||
|
"flash_size": "16MB",
|
||||||
|
"maximum_ram_size": 327680,
|
||||||
|
"maximum_size": 16777216,
|
||||||
|
"require_upload_port": true,
|
||||||
|
"speed": 921600
|
||||||
|
},
|
||||||
|
"url": "https://lilygo.cc/products/t5-e-paper-s3-pro",
|
||||||
|
"vendor": "LILYGO"
|
||||||
|
}
|
@ -1 +1 @@
|
|||||||
Subproject commit 9bac2886f9344f25716921467a82e8b0326107cd
|
Subproject commit 1ecf94da9898ea0b8f2745bfe6bda2a8f2ca4073
|
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
#include <GFX.h> // GFXRoot drawing lib
|
#include <GFX.h> // GFXRoot drawing lib
|
||||||
|
|
||||||
|
#include "mesh/MeshModule.h"
|
||||||
#include "mesh/MeshTypes.h"
|
#include "mesh/MeshTypes.h"
|
||||||
|
|
||||||
#include "./AppletFont.h"
|
#include "./AppletFont.h"
|
||||||
|
@ -31,6 +31,9 @@
|
|||||||
#include "Throttle.h"
|
#include "Throttle.h"
|
||||||
#include <RTC.h>
|
#include <RTC.h>
|
||||||
|
|
||||||
|
// Flag to indicate a heartbeat was received and we should send queue status
|
||||||
|
bool heartbeatReceived = false;
|
||||||
|
|
||||||
PhoneAPI::PhoneAPI()
|
PhoneAPI::PhoneAPI()
|
||||||
{
|
{
|
||||||
lastContactMsec = millis();
|
lastContactMsec = millis();
|
||||||
@ -155,6 +158,7 @@ bool PhoneAPI::handleToRadio(const uint8_t *buf, size_t bufLength)
|
|||||||
#endif
|
#endif
|
||||||
case meshtastic_ToRadio_heartbeat_tag:
|
case meshtastic_ToRadio_heartbeat_tag:
|
||||||
LOG_DEBUG("Got client heartbeat");
|
LOG_DEBUG("Got client heartbeat");
|
||||||
|
heartbeatReceived = true;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// Ignore nop messages
|
// Ignore nop messages
|
||||||
@ -194,6 +198,17 @@ size_t PhoneAPI::getFromRadio(uint8_t *buf)
|
|||||||
// In case we send a FromRadio packet
|
// In case we send a FromRadio packet
|
||||||
memset(&fromRadioScratch, 0, sizeof(fromRadioScratch));
|
memset(&fromRadioScratch, 0, sizeof(fromRadioScratch));
|
||||||
|
|
||||||
|
// Respond to heartbeat by sending queue status
|
||||||
|
if (heartbeatReceived) {
|
||||||
|
memset(&fromRadioScratch, 0, sizeof(fromRadioScratch));
|
||||||
|
fromRadioScratch.which_payload_variant = meshtastic_FromRadio_queueStatus_tag;
|
||||||
|
fromRadioScratch.queueStatus = router->getQueueStatus();
|
||||||
|
heartbeatReceived = false;
|
||||||
|
size_t numbytes = pb_encode_to_bytes(buf, meshtastic_FromRadio_size, &meshtastic_FromRadio_msg, &fromRadioScratch);
|
||||||
|
LOG_DEBUG("FromRadio=STATE_SEND_QUEUE_STATUS, numbytes=%u", numbytes);
|
||||||
|
return numbytes;
|
||||||
|
}
|
||||||
|
|
||||||
// Advance states as needed
|
// Advance states as needed
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case STATE_SEND_NOTHING:
|
case STATE_SEND_NOTHING:
|
||||||
|
@ -267,6 +267,9 @@ typedef enum _meshtastic_HardwareModel {
|
|||||||
meshtastic_HardwareModel_RAK3312 = 106,
|
meshtastic_HardwareModel_RAK3312 = 106,
|
||||||
/* Elecrow ThinkNode M5 https://www.elecrow.com/wiki/ThinkNode_M5_Meshtastic_LoRa_Signal_Transceiver_ESP32-S3.html */
|
/* Elecrow ThinkNode M5 https://www.elecrow.com/wiki/ThinkNode_M5_Meshtastic_LoRa_Signal_Transceiver_ESP32-S3.html */
|
||||||
meshtastic_HardwareModel_THINKNODE_M5 = 107,
|
meshtastic_HardwareModel_THINKNODE_M5 = 107,
|
||||||
|
/* MeshSolar is an integrated power management and communication solution designed for outdoor low-power devices.
|
||||||
|
https://heltec.org/project/meshsolar/ */
|
||||||
|
meshtastic_HardwareModel_HELTEC_MESH_SOLAR = 108,
|
||||||
/* ------------------------------------------------------------------------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
Reserved ID For developing private Ports. These will show up in live traffic sparsely, so we can use a high number. Keep it within 8 bits.
|
Reserved ID For developing private Ports. These will show up in live traffic sparsely, so we can use a high number. Keep it within 8 bits.
|
||||||
------------------------------------------------------------------------------------------------------------------------------------------ */
|
------------------------------------------------------------------------------------------------------------------------------------------ */
|
||||||
|
@ -82,7 +82,10 @@ typedef enum _meshtastic_ModuleConfig_SerialConfig_Serial_Mode {
|
|||||||
meshtastic_ModuleConfig_SerialConfig_Serial_Mode_WS85 = 6,
|
meshtastic_ModuleConfig_SerialConfig_Serial_Mode_WS85 = 6,
|
||||||
/* VE.Direct is a serial protocol used by Victron Energy products
|
/* VE.Direct is a serial protocol used by Victron Energy products
|
||||||
https://beta.ivc.no/wiki/index.php/Victron_VE_Direct_DIY_Cable */
|
https://beta.ivc.no/wiki/index.php/Victron_VE_Direct_DIY_Cable */
|
||||||
meshtastic_ModuleConfig_SerialConfig_Serial_Mode_VE_DIRECT = 7
|
meshtastic_ModuleConfig_SerialConfig_Serial_Mode_VE_DIRECT = 7,
|
||||||
|
/* Used to configure and view some parameters of MeshSolar.
|
||||||
|
https://heltec.org/project/meshsolar/ */
|
||||||
|
meshtastic_ModuleConfig_SerialConfig_Serial_Mode_MS_CONFIG = 8
|
||||||
} meshtastic_ModuleConfig_SerialConfig_Serial_Mode;
|
} meshtastic_ModuleConfig_SerialConfig_Serial_Mode;
|
||||||
|
|
||||||
/* TODO: REPLACE */
|
/* TODO: REPLACE */
|
||||||
@ -472,8 +475,8 @@ extern "C" {
|
|||||||
#define _meshtastic_ModuleConfig_SerialConfig_Serial_Baud_ARRAYSIZE ((meshtastic_ModuleConfig_SerialConfig_Serial_Baud)(meshtastic_ModuleConfig_SerialConfig_Serial_Baud_BAUD_921600+1))
|
#define _meshtastic_ModuleConfig_SerialConfig_Serial_Baud_ARRAYSIZE ((meshtastic_ModuleConfig_SerialConfig_Serial_Baud)(meshtastic_ModuleConfig_SerialConfig_Serial_Baud_BAUD_921600+1))
|
||||||
|
|
||||||
#define _meshtastic_ModuleConfig_SerialConfig_Serial_Mode_MIN meshtastic_ModuleConfig_SerialConfig_Serial_Mode_DEFAULT
|
#define _meshtastic_ModuleConfig_SerialConfig_Serial_Mode_MIN meshtastic_ModuleConfig_SerialConfig_Serial_Mode_DEFAULT
|
||||||
#define _meshtastic_ModuleConfig_SerialConfig_Serial_Mode_MAX meshtastic_ModuleConfig_SerialConfig_Serial_Mode_VE_DIRECT
|
#define _meshtastic_ModuleConfig_SerialConfig_Serial_Mode_MAX meshtastic_ModuleConfig_SerialConfig_Serial_Mode_MS_CONFIG
|
||||||
#define _meshtastic_ModuleConfig_SerialConfig_Serial_Mode_ARRAYSIZE ((meshtastic_ModuleConfig_SerialConfig_Serial_Mode)(meshtastic_ModuleConfig_SerialConfig_Serial_Mode_VE_DIRECT+1))
|
#define _meshtastic_ModuleConfig_SerialConfig_Serial_Mode_ARRAYSIZE ((meshtastic_ModuleConfig_SerialConfig_Serial_Mode)(meshtastic_ModuleConfig_SerialConfig_Serial_Mode_MS_CONFIG+1))
|
||||||
|
|
||||||
#define _meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_MIN meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_NONE
|
#define _meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_MIN meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_NONE
|
||||||
#define _meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_MAX meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_BACK
|
#define _meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_MAX meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_BACK
|
||||||
|
@ -235,6 +235,11 @@ bool isWifiAvailable()
|
|||||||
#ifdef USE_WS5500
|
#ifdef USE_WS5500
|
||||||
} else if (config.network.eth_enabled) {
|
} else if (config.network.eth_enabled) {
|
||||||
return true;
|
return true;
|
||||||
|
#endif
|
||||||
|
#ifndef ARCH_PORTDUINO
|
||||||
|
} else if (WiFi.status() == WL_CONNECTED) {
|
||||||
|
// it's likely we have wifi now, but user intends to turn it off in config!
|
||||||
|
return true;
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
135
variants/t5s3_epaper/nicheGraphics.h
Normal file
135
variants/t5s3_epaper/nicheGraphics.h
Normal file
@ -0,0 +1,135 @@
|
|||||||
|
/*
|
||||||
|
|
||||||
|
Most of the Meshtastic firmware uses preprocessor macros throughout the code to support different hardware variants.
|
||||||
|
NicheGraphics attempts a different approach:
|
||||||
|
|
||||||
|
Per-device config takes place in this setupNicheGraphics() method
|
||||||
|
(And a small amount in platformio.ini)
|
||||||
|
|
||||||
|
This file sets up InkHUD for Heltec VM-E290.
|
||||||
|
Different NicheGraphics UIs and different hardware variants will each have their own setup procedure.
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "configuration.h"
|
||||||
|
#include "mesh/MeshModule.h"
|
||||||
|
|
||||||
|
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
||||||
|
|
||||||
|
// InkHUD-specific components
|
||||||
|
// ---------------------------
|
||||||
|
// #include "graphics/niche/InkHUD/InkHUD.h"
|
||||||
|
#include "graphics/niche/InkHUD/WindowManager.h"
|
||||||
|
|
||||||
|
// Applets
|
||||||
|
#include "graphics/niche/InkHUD/Applets/User/AllMessage/AllMessageApplet.h"
|
||||||
|
#include "graphics/niche/InkHUD/Applets/User/DM/DMApplet.h"
|
||||||
|
#include "graphics/niche/InkHUD/Applets/User/Heard/HeardApplet.h"
|
||||||
|
#include "graphics/niche/InkHUD/Applets/User/Positions/PositionsApplet.h"
|
||||||
|
#include "graphics/niche/InkHUD/Applets/User/RecentsList/RecentsListApplet.h"
|
||||||
|
#include "graphics/niche/InkHUD/Applets/User/ThreadedMessage/ThreadedMessageApplet.h"
|
||||||
|
|
||||||
|
// #include "graphics/niche/InkHUD/Applets/Examples/BasicExample/BasicExampleApplet.h"
|
||||||
|
// #include "graphics/niche/InkHUD/Applets/Examples/NewMsgExample/NewMsgExampleApplet.h"
|
||||||
|
|
||||||
|
// Shared NicheGraphics components
|
||||||
|
// --------------------------------
|
||||||
|
#include "graphics/niche/Drivers/Backlight/LatchingBacklight.h"
|
||||||
|
#include "graphics/niche/Drivers/EInk/DEPG0290BNS800.h"
|
||||||
|
#include "graphics/niche/Inputs/TwoButton.h"
|
||||||
|
|
||||||
|
#include "graphics/niche/Fonts/FreeSans6pt7b.h"
|
||||||
|
#include "graphics/niche/Fonts/FreeSans6pt8bCyrillic.h"
|
||||||
|
#include <Fonts/FreeSans9pt7b.h>
|
||||||
|
|
||||||
|
void setupNicheGraphics()
|
||||||
|
{
|
||||||
|
using namespace NicheGraphics;
|
||||||
|
|
||||||
|
// SPI
|
||||||
|
// -----------------------------
|
||||||
|
|
||||||
|
// Display is connected to HSPI
|
||||||
|
SPIClass *hspi = new SPIClass(HSPI);
|
||||||
|
hspi->begin(PIN_EINK_SCLK, -1, PIN_EINK_MOSI, PIN_EINK_CS);
|
||||||
|
|
||||||
|
// E-Ink Driver
|
||||||
|
// -----------------------------
|
||||||
|
|
||||||
|
// Use E-Ink driver
|
||||||
|
Drivers::EInk *driver = new Drivers::DEPG0290BNS800;
|
||||||
|
driver->begin(hspi, PIN_EINK_DC, PIN_EINK_CS, PIN_EINK_BUSY);
|
||||||
|
|
||||||
|
// InkHUD
|
||||||
|
// ----------------------------
|
||||||
|
|
||||||
|
InkHUD::InkHUD *inkhud = InkHUD::InkHUD::getInstance();
|
||||||
|
|
||||||
|
// Set the driver
|
||||||
|
inkhud->setDriver(driver);
|
||||||
|
|
||||||
|
// Set how many FAST updates per FULL update
|
||||||
|
// Set how unhealthy additional FAST updates beyond this number are
|
||||||
|
inkhud->setDisplayResilience(7, 1.5);
|
||||||
|
|
||||||
|
// Prepare fonts
|
||||||
|
InkHUD::Applet::fontLarge = InkHUD::AppletFont(FreeSans9pt7b);
|
||||||
|
InkHUD::Applet::fontSmall = InkHUD::AppletFont(FreeSans6pt7b);
|
||||||
|
/*
|
||||||
|
// Font localization demo: Cyrillic
|
||||||
|
InkHUD::Applet::fontSmall = InkHUD::AppletFont(FreeSans6pt8bCyrillic);
|
||||||
|
InkHUD::Applet::fontSmall.addSubstitutionsWin1251();
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Init settings, and customize defaults
|
||||||
|
inkhud->persistence->settings.userTiles.maxCount = 2; // How many tiles can the display handle?
|
||||||
|
inkhud->persistence->settings.rotation = 1; // 90 degrees clockwise
|
||||||
|
inkhud->persistence->settings.userTiles.count = 1; // One tile only by default, keep things simple for new users
|
||||||
|
inkhud->persistence->settings.optionalMenuItems.nextTile = false; // Behavior handled by aux button instead
|
||||||
|
inkhud->persistence->settings.optionalFeatures.batteryIcon = true; // Device definitely has a battery
|
||||||
|
|
||||||
|
// Setup backlight
|
||||||
|
// Note: AUX button behavior configured further down
|
||||||
|
Drivers::LatchingBacklight *backlight = Drivers::LatchingBacklight::getInstance();
|
||||||
|
backlight->setPin(PIN_EINK_EN);
|
||||||
|
|
||||||
|
// Pick applets
|
||||||
|
// Note: order of applets determines priority of "auto-show" feature
|
||||||
|
// Optional arguments for defaults:
|
||||||
|
// - is activated?
|
||||||
|
// - is autoshown?
|
||||||
|
// - is foreground on a specific tile (index)?
|
||||||
|
inkhud->addApplet("All Messages", new InkHUD::AllMessageApplet, true, true); // Activated, autoshown
|
||||||
|
inkhud->addApplet("DMs", new InkHUD::DMApplet);
|
||||||
|
inkhud->addApplet("Channel 0", new InkHUD::ThreadedMessageApplet(0));
|
||||||
|
inkhud->addApplet("Channel 1", new InkHUD::ThreadedMessageApplet(1));
|
||||||
|
inkhud->addApplet("Positions", new InkHUD::PositionsApplet, true); // Activated
|
||||||
|
inkhud->addApplet("Recents List", new InkHUD::RecentsListApplet);
|
||||||
|
inkhud->addApplet("Heard", new InkHUD::HeardApplet, true, false, 0); // Activated, not autoshown, default on tile 0
|
||||||
|
// inkhud->addApplet("Basic", new InkHUD::BasicExampleApplet);
|
||||||
|
// inkhud->addApplet("NewMsg", new InkHUD::NewMsgExampleApplet);
|
||||||
|
|
||||||
|
// Start running InkHUD
|
||||||
|
inkhud->begin();
|
||||||
|
|
||||||
|
// Buttons
|
||||||
|
// --------------------------
|
||||||
|
|
||||||
|
Inputs::TwoButton *buttons = Inputs::TwoButton::getInstance(); // A shared NicheGraphics component
|
||||||
|
|
||||||
|
// Setup the main user button (0)
|
||||||
|
buttons->setWiring(0, BUTTON_PIN);
|
||||||
|
buttons->setHandlerShortPress(0, []() { InkHUD::InkHUD::getInstance()->shortpress(); });
|
||||||
|
buttons->setHandlerLongPress(0, []() { InkHUD::InkHUD::getInstance()->longpress(); });
|
||||||
|
|
||||||
|
// Setup the aux button (1)
|
||||||
|
// Bonus feature of VME290
|
||||||
|
buttons->setWiring(1, BUTTON_PIN_SECONDARY);
|
||||||
|
buttons->setHandlerShortPress(1, []() { InkHUD::InkHUD::getInstance()->nextTile(); });
|
||||||
|
|
||||||
|
buttons->start();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
27
variants/t5s3_epaper/pins_arduino.h
Normal file
27
variants/t5s3_epaper/pins_arduino.h
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
#ifndef Pins_Arduino_h
|
||||||
|
#define Pins_Arduino_h
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#define USB_VID 0x303a
|
||||||
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
|
// The default Wire will be mapped to RTC and Touch
|
||||||
|
static const uint8_t SDA = 39;
|
||||||
|
static const uint8_t SCL = 40;
|
||||||
|
|
||||||
|
// Default SPI will be mapped to Radio
|
||||||
|
static const uint8_t SS = 46;
|
||||||
|
static const uint8_t MOSI = 17;
|
||||||
|
static const uint8_t MISO = 8;
|
||||||
|
static const uint8_t SCK = 18;
|
||||||
|
|
||||||
|
// Default SPI1 will be mapped to SD Card
|
||||||
|
#define SPI_MOSI (13)
|
||||||
|
#define SPI_SCK (14)
|
||||||
|
#define SPI_MISO (21)
|
||||||
|
#define SPI_CS (16)
|
||||||
|
|
||||||
|
#define SDCARD_CS SPI_CS
|
||||||
|
|
||||||
|
#endif /* Pins_Arduino_h */
|
29
variants/t5s3_epaper/platformio.ini
Normal file
29
variants/t5s3_epaper/platformio.ini
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
[env:t5s3-epaper-inkhud]
|
||||||
|
extends = esp32s3_base, inkhud
|
||||||
|
board = t5-epaper-s3
|
||||||
|
board_build.partition = default_16MB.csv
|
||||||
|
board_check = false
|
||||||
|
upload_protocol = esptool
|
||||||
|
|
||||||
|
build_flags =
|
||||||
|
${esp32_base.build_flags}
|
||||||
|
${inkhud.build_flags}
|
||||||
|
-I variants/t5s3_epaper
|
||||||
|
-D PRIVATE_HW
|
||||||
|
-D MESHTASTIC_EXCLUDE_I2C=1
|
||||||
|
-D MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR=1
|
||||||
|
; -D GPS_POWER_TOGGLE
|
||||||
|
-D HAS_SDCARD
|
||||||
|
-D SDCARD_USE_SPI1
|
||||||
|
-D PCF8563_RTC=0x51
|
||||||
|
|
||||||
|
build_src_filter =
|
||||||
|
${esp32s3_base.build_src_filter}
|
||||||
|
${inkhud.build_src_filter}
|
||||||
|
|
||||||
|
lib_deps =
|
||||||
|
${inkhud.lib_deps} ; InkHUD libs first, so we get GFXRoot instead of AdafruitGFX
|
||||||
|
${esp32s3_base.lib_deps}
|
||||||
|
lewisxhe/PCF8563_Library@^1.0.1
|
||||||
|
lewisxhe/XPowersLib@^0.2.3
|
||||||
|
lewisxhe/SensorLib@^0.2.2
|
49
variants/t5s3_epaper/variant.h
Normal file
49
variants/t5s3_epaper/variant.h
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
|
||||||
|
// TODO: Display (E-Ink)
|
||||||
|
#define PIN_EINK_EN 11 // BL
|
||||||
|
#define PIN_EINK_CS 11
|
||||||
|
#define PIN_EINK_BUSY -1
|
||||||
|
#define PIN_EINK_DC 21
|
||||||
|
#define PIN_EINK_RES -1
|
||||||
|
#define PIN_EINK_SCLK 14
|
||||||
|
#define PIN_EINK_MOSI 13 // SDI
|
||||||
|
|
||||||
|
#define EPD_WIDTH 960
|
||||||
|
#define EPD_HEIGHT 540
|
||||||
|
|
||||||
|
// TODO: battery voltage measurement (I2C)
|
||||||
|
// BQ25896
|
||||||
|
// BQ27220
|
||||||
|
|
||||||
|
// #define I2C_SDA SDA
|
||||||
|
// #define I2C_SCL SCL
|
||||||
|
|
||||||
|
// optional GPS
|
||||||
|
#define GPS_DEFAULT_NOT_PRESENT 1
|
||||||
|
// #define GPS_RX_PIN 43
|
||||||
|
// #define GPS_TX_PIN 44
|
||||||
|
|
||||||
|
#define BUTTON_PIN 48
|
||||||
|
#define BUTTON_PIN_SECONDARY 0
|
||||||
|
|
||||||
|
#define USE_SX1262
|
||||||
|
#define LORA_SCK 18
|
||||||
|
#define LORA_MISO 8
|
||||||
|
#define LORA_MOSI 17
|
||||||
|
#define LORA_CS 46
|
||||||
|
#define LORA_RESET 1
|
||||||
|
|
||||||
|
#define LORA_DIO0
|
||||||
|
#define LORA_DIO1 10
|
||||||
|
#define LORA_DIO2
|
||||||
|
#define LORA_RXEN NC
|
||||||
|
#define LORA_TXEN NC
|
||||||
|
|
||||||
|
#ifdef USE_SX1262
|
||||||
|
#define SX126X_CS LORA_CS
|
||||||
|
#define SX126X_DIO1 LORA_DIO1
|
||||||
|
#define SX126X_BUSY 47
|
||||||
|
#define SX126X_RESET LORA_RESET
|
||||||
|
#define SX126X_DIO2_AS_RF_SWITCH
|
||||||
|
#define SX126X_DIO3_TCXO_VOLTAGE 2.4
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user