mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-25 01:42:15 +00:00
Trunk fixes for heltec mesh pocket. (#6588)
Some checks are pending
CI / setup (check) (push) Waiting to run
CI / setup (esp32) (push) Waiting to run
CI / setup (esp32c3) (push) Waiting to run
CI / setup (esp32c6) (push) Waiting to run
CI / setup (esp32s3) (push) Waiting to run
CI / setup (nrf52840) (push) Waiting to run
CI / setup (rp2040) (push) Waiting to run
CI / setup (stm32) (push) Waiting to run
CI / check (push) Blocked by required conditions
CI / build-esp32 (push) Blocked by required conditions
CI / build-esp32-s3 (push) Blocked by required conditions
CI / build-esp32-c3 (push) Blocked by required conditions
CI / build-esp32-c6 (push) Blocked by required conditions
CI / build-nrf52 (push) Blocked by required conditions
CI / build-rpi2040 (push) Blocked by required conditions
CI / build-stm32 (push) Blocked by required conditions
CI / build-debian-src (push) Waiting to run
CI / package-pio-deps-native-tft (push) Waiting to run
CI / test-native (push) Waiting to run
CI / docker-debian-amd64 (push) Waiting to run
CI / docker-alpine-amd64 (push) Waiting to run
CI / docker-debian-arm64 (push) Waiting to run
CI / docker-debian-armv7 (push) Waiting to run
CI / after-checks (push) Blocked by required conditions
CI / gather-artifacts (esp32) (push) Blocked by required conditions
CI / gather-artifacts (esp32c3) (push) Blocked by required conditions
CI / gather-artifacts (esp32c6) (push) Blocked by required conditions
CI / gather-artifacts (esp32s3) (push) Blocked by required conditions
CI / gather-artifacts (nrf52840) (push) Blocked by required conditions
CI / gather-artifacts (rp2040) (push) Blocked by required conditions
CI / gather-artifacts (stm32) (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
CI / release-firmware (esp32) (push) Blocked by required conditions
CI / release-firmware (esp32c3) (push) Blocked by required conditions
CI / release-firmware (esp32c6) (push) Blocked by required conditions
CI / release-firmware (esp32s3) (push) Blocked by required conditions
CI / release-firmware (nrf52840) (push) Blocked by required conditions
CI / release-firmware (rp2040) (push) Blocked by required conditions
CI / release-firmware (stm32) (push) Blocked by required conditions
Some checks are pending
CI / setup (check) (push) Waiting to run
CI / setup (esp32) (push) Waiting to run
CI / setup (esp32c3) (push) Waiting to run
CI / setup (esp32c6) (push) Waiting to run
CI / setup (esp32s3) (push) Waiting to run
CI / setup (nrf52840) (push) Waiting to run
CI / setup (rp2040) (push) Waiting to run
CI / setup (stm32) (push) Waiting to run
CI / check (push) Blocked by required conditions
CI / build-esp32 (push) Blocked by required conditions
CI / build-esp32-s3 (push) Blocked by required conditions
CI / build-esp32-c3 (push) Blocked by required conditions
CI / build-esp32-c6 (push) Blocked by required conditions
CI / build-nrf52 (push) Blocked by required conditions
CI / build-rpi2040 (push) Blocked by required conditions
CI / build-stm32 (push) Blocked by required conditions
CI / build-debian-src (push) Waiting to run
CI / package-pio-deps-native-tft (push) Waiting to run
CI / test-native (push) Waiting to run
CI / docker-debian-amd64 (push) Waiting to run
CI / docker-alpine-amd64 (push) Waiting to run
CI / docker-debian-arm64 (push) Waiting to run
CI / docker-debian-armv7 (push) Waiting to run
CI / after-checks (push) Blocked by required conditions
CI / gather-artifacts (esp32) (push) Blocked by required conditions
CI / gather-artifacts (esp32c3) (push) Blocked by required conditions
CI / gather-artifacts (esp32c6) (push) Blocked by required conditions
CI / gather-artifacts (esp32s3) (push) Blocked by required conditions
CI / gather-artifacts (nrf52840) (push) Blocked by required conditions
CI / gather-artifacts (rp2040) (push) Blocked by required conditions
CI / gather-artifacts (stm32) (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
CI / release-firmware (esp32) (push) Blocked by required conditions
CI / release-firmware (esp32c3) (push) Blocked by required conditions
CI / release-firmware (esp32c6) (push) Blocked by required conditions
CI / release-firmware (esp32s3) (push) Blocked by required conditions
CI / release-firmware (nrf52840) (push) Blocked by required conditions
CI / release-firmware (rp2040) (push) Blocked by required conditions
CI / release-firmware (stm32) (push) Blocked by required conditions
https://github.com/meshtastic/firmware/pull/6533 was merged without running trunk. This patch fixes the newly introduced trunk errors.
This commit is contained in:
parent
040a34fca8
commit
98411d408a
@ -1,54 +1,53 @@
|
|||||||
{
|
{
|
||||||
"build": {
|
"build": {
|
||||||
"arduino": {
|
"arduino": {
|
||||||
"ldscript": "nrf52840_s140_v6.ld"
|
"ldscript": "nrf52840_s140_v6.ld"
|
||||||
},
|
|
||||||
"core": "nRF5",
|
|
||||||
"cpu": "cortex-m4",
|
|
||||||
"extra_flags": "-DNRF52840_XXAA",
|
|
||||||
"f_cpu": "64000000L",
|
|
||||||
"hwids": [
|
|
||||||
["0x239A", "0x4405"],
|
|
||||||
["0x239A", "0x0029"],
|
|
||||||
["0x239A", "0x002A"]
|
|
||||||
],
|
|
||||||
"usb_product": "HT-n5262",
|
|
||||||
"mcu": "nrf52840",
|
|
||||||
"variant": "heltec_mesh_pocket",
|
|
||||||
"variants_dir": "variants",
|
|
||||||
"bsp": {
|
|
||||||
"name": "adafruit"
|
|
||||||
},
|
|
||||||
"softdevice": {
|
|
||||||
"sd_flags": "-DS140",
|
|
||||||
"sd_name": "s140",
|
|
||||||
"sd_version": "6.1.1",
|
|
||||||
"sd_fwid": "0x00B6"
|
|
||||||
},
|
|
||||||
"bootloader": {
|
|
||||||
"settings_addr": "0xFF000"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"connectivity": ["bluetooth"],
|
"core": "nRF5",
|
||||||
"debug": {
|
"cpu": "cortex-m4",
|
||||||
"jlink_device": "nRF52840_xxAA",
|
"extra_flags": "-DNRF52840_XXAA",
|
||||||
"onboard_tools": ["jlink"],
|
"f_cpu": "64000000L",
|
||||||
"svd_path": "nrf52840.svd",
|
"hwids": [
|
||||||
"openocd_target": "nrf52840-mdk-rs"
|
["0x239A", "0x4405"],
|
||||||
|
["0x239A", "0x0029"],
|
||||||
|
["0x239A", "0x002A"]
|
||||||
|
],
|
||||||
|
"usb_product": "HT-n5262",
|
||||||
|
"mcu": "nrf52840",
|
||||||
|
"variant": "heltec_mesh_pocket",
|
||||||
|
"variants_dir": "variants",
|
||||||
|
"bsp": {
|
||||||
|
"name": "adafruit"
|
||||||
},
|
},
|
||||||
"frameworks": ["arduino"],
|
"softdevice": {
|
||||||
"name": "Heltec nrf (Adafruit BSP)",
|
"sd_flags": "-DS140",
|
||||||
"upload": {
|
"sd_name": "s140",
|
||||||
"maximum_ram_size": 248832,
|
"sd_version": "6.1.1",
|
||||||
"maximum_size": 815104,
|
"sd_fwid": "0x00B6"
|
||||||
"speed": 115200,
|
|
||||||
"protocol": "nrfutil",
|
|
||||||
"protocols": ["jlink", "nrfjprog", "nrfutil", "stlink"],
|
|
||||||
"use_1200bps_touch": true,
|
|
||||||
"require_upload_port": true,
|
|
||||||
"wait_for_upload_port": true
|
|
||||||
},
|
},
|
||||||
"url": "https://heltec.org/project/meshpocket/",
|
"bootloader": {
|
||||||
"vendor": "Heltec"
|
"settings_addr": "0xFF000"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"connectivity": ["bluetooth"],
|
||||||
|
"debug": {
|
||||||
|
"jlink_device": "nRF52840_xxAA",
|
||||||
|
"onboard_tools": ["jlink"],
|
||||||
|
"svd_path": "nrf52840.svd",
|
||||||
|
"openocd_target": "nrf52840-mdk-rs"
|
||||||
|
},
|
||||||
|
"frameworks": ["arduino"],
|
||||||
|
"name": "Heltec nrf (Adafruit BSP)",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 248832,
|
||||||
|
"maximum_size": 815104,
|
||||||
|
"speed": 115200,
|
||||||
|
"protocol": "nrfutil",
|
||||||
|
"protocols": ["jlink", "nrfjprog", "nrfutil", "stlink"],
|
||||||
|
"use_1200bps_touch": true,
|
||||||
|
"require_upload_port": true,
|
||||||
|
"wait_for_upload_port": true
|
||||||
|
},
|
||||||
|
"url": "https://heltec.org/project/meshpocket/",
|
||||||
|
"vendor": "Heltec"
|
||||||
|
}
|
||||||
|
@ -219,7 +219,7 @@ bool EInkDisplay::connect()
|
|||||||
}
|
}
|
||||||
#elif defined(HELTEC_MESH_POCKET)
|
#elif defined(HELTEC_MESH_POCKET)
|
||||||
{
|
{
|
||||||
spi1=&SPI1;
|
spi1 = &SPI1;
|
||||||
spi1->begin();
|
spi1->begin();
|
||||||
// VExt already enabled in setup()
|
// VExt already enabled in setup()
|
||||||
// RTC GPIO hold disabled in setup()
|
// RTC GPIO hold disabled in setup()
|
||||||
|
@ -23,16 +23,16 @@ void LCMEN2R13ECC1::configScanning()
|
|||||||
void LCMEN2R13ECC1::configWaveform()
|
void LCMEN2R13ECC1::configWaveform()
|
||||||
{
|
{
|
||||||
switch (updateType) {
|
switch (updateType) {
|
||||||
case FAST:
|
case FAST:
|
||||||
sendCommand(0x3C); // Border waveform:
|
sendCommand(0x3C); // Border waveform:
|
||||||
sendData(0x85);
|
sendData(0x85);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FULL:
|
case FULL:
|
||||||
default:
|
default:
|
||||||
// From OTP memory
|
// From OTP memory
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LCMEN2R13ECC1::configUpdateSequence()
|
void LCMEN2R13ECC1::configUpdateSequence()
|
||||||
@ -65,4 +65,4 @@ void LCMEN2R13ECC1::detachFromUpdate()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
@ -28,13 +28,13 @@ class LCMEN2R13ECC1 : public SSD16XX
|
|||||||
static constexpr UpdateTypes supported = (UpdateTypes)(FULL | FAST);
|
static constexpr UpdateTypes supported = (UpdateTypes)(FULL | FAST);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LCMEN2R13ECC1() : SSD16XX(width, height, supported, 1) {} // Note: left edge of this display is offset by 1 byte
|
LCMEN2R13ECC1() : SSD16XX(width, height, supported, 1) {} // Note: left edge of this display is offset by 1 byte
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void configScanning() override;
|
virtual void configScanning() override;
|
||||||
virtual void configWaveform() override;
|
virtual void configWaveform() override;
|
||||||
virtual void configUpdateSequence() override;
|
virtual void configUpdateSequence() override;
|
||||||
void detachFromUpdate() override;
|
void detachFromUpdate() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace NicheGraphics::Drivers
|
} // namespace NicheGraphics::Drivers
|
||||||
|
@ -34,7 +34,7 @@ void setupNicheGraphics()
|
|||||||
|
|
||||||
// SPI
|
// SPI
|
||||||
// -----------------------------
|
// -----------------------------
|
||||||
SPIClass *spi1=&SPI1;
|
SPIClass *spi1 = &SPI1;
|
||||||
spi1->begin();
|
spi1->begin();
|
||||||
// Display is connected to SPI1
|
// Display is connected to SPI1
|
||||||
|
|
||||||
|
@ -9,5 +9,3 @@ const uint32_t g_ADigitalPinMap[] = {
|
|||||||
|
|
||||||
// P1
|
// P1
|
||||||
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47};
|
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47};
|
||||||
|
|
||||||
|
|
||||||
|
@ -49,16 +49,16 @@ No longer populated on PCB
|
|||||||
*/
|
*/
|
||||||
#define WIRE_INTERFACES_COUNT 1
|
#define WIRE_INTERFACES_COUNT 1
|
||||||
|
|
||||||
#define PIN_WIRE_SDA (32+15)
|
#define PIN_WIRE_SDA (32 + 15)
|
||||||
#define PIN_WIRE_SCL (32+13)
|
#define PIN_WIRE_SCL (32 + 13)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Lora radio
|
* Lora radio
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USE_SX1262
|
#define USE_SX1262
|
||||||
#define SX126X_CS (0 + 26) // FIXME - we really should define LORA_CS instead
|
#define SX126X_CS (0 + 26) // FIXME - we really should define LORA_CS instead
|
||||||
#define LORA_CS (0 + 26)
|
#define LORA_CS (0 + 26)
|
||||||
#define SX126X_DIO1 (0 + 16)
|
#define SX126X_DIO1 (0 + 16)
|
||||||
// Note DIO2 is attached internally to the module to an analog switch for TX/RX switching
|
// Note DIO2 is attached internally to the module to an analog switch for TX/RX switching
|
||||||
// #define SX1262_DIO3 (0 + 21)
|
// #define SX1262_DIO3 (0 + 21)
|
||||||
@ -72,25 +72,23 @@ No longer populated on PCB
|
|||||||
#define SX126X_DIO3_TCXO_VOLTAGE 1.8
|
#define SX126X_DIO3_TCXO_VOLTAGE 1.8
|
||||||
|
|
||||||
// Display (E-Ink)
|
// Display (E-Ink)
|
||||||
#define PIN_EINK_CS 24
|
#define PIN_EINK_CS 24
|
||||||
#define PIN_EINK_BUSY 32+6
|
#define PIN_EINK_BUSY 32 + 6
|
||||||
#define PIN_EINK_DC 31
|
#define PIN_EINK_DC 31
|
||||||
#define PIN_EINK_RES 32+4
|
#define PIN_EINK_RES 32 + 4
|
||||||
#define PIN_EINK_SCLK 22
|
#define PIN_EINK_SCLK 22
|
||||||
#define PIN_EINK_MOSI 20
|
#define PIN_EINK_MOSI 20
|
||||||
|
|
||||||
|
|
||||||
#define PIN_SPI1_MISO -1
|
#define PIN_SPI1_MISO -1
|
||||||
#define PIN_SPI1_MOSI PIN_EINK_MOSI
|
#define PIN_SPI1_MOSI PIN_EINK_MOSI
|
||||||
#define PIN_SPI1_SCK PIN_EINK_SCLK
|
#define PIN_SPI1_SCK PIN_EINK_SCLK
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GPS pins
|
* GPS pins
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define PIN_SERIAL1_RX 32+5
|
#define PIN_SERIAL1_RX 32 + 5
|
||||||
#define PIN_SERIAL1_TX 32+7
|
#define PIN_SERIAL1_TX 32 + 7
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SPI Interfaces
|
* SPI Interfaces
|
||||||
@ -112,7 +110,7 @@ No longer populated on PCB
|
|||||||
// it is defined in the anlaolgue pin section of this file
|
// it is defined in the anlaolgue pin section of this file
|
||||||
// and has 12 bit resolution
|
// and has 12 bit resolution
|
||||||
|
|
||||||
#define ADC_CTRL 32+2
|
#define ADC_CTRL 32 + 2
|
||||||
#define ADC_CTRL_ENABLED HIGH
|
#define ADC_CTRL_ENABLED HIGH
|
||||||
#define BATTERY_PIN 29
|
#define BATTERY_PIN 29
|
||||||
#define ADC_RESOLUTION 14
|
#define ADC_RESOLUTION 14
|
||||||
@ -124,12 +122,11 @@ No longer populated on PCB
|
|||||||
#define VBAT_AR_INTERNAL AR_INTERNAL_3_0
|
#define VBAT_AR_INTERNAL AR_INTERNAL_3_0
|
||||||
#define ADC_MULTIPLIER (4.90F)
|
#define ADC_MULTIPLIER (4.90F)
|
||||||
|
|
||||||
#undef HAS_GPS
|
#undef HAS_GPS
|
||||||
#define HAS_GPS 0
|
#define HAS_GPS 0
|
||||||
#define HAS_RTC 0
|
#define HAS_RTC 0
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue
Block a user