Skip to content

Commit 9c57c09

Browse files
committed
Release LoRa CS pin after deep sleep
#21
1 parent 1d4553f commit 9c57c09

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

docs/WirelessPaper/wireless_paper.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,5 @@ esp_deep_sleep_start();
124124
```
125125
126126
The 18uA current is only achievable when powering with the battery connector. When USB is connected, an orange LED remains on.
127+
128+
The library will automatically reverse this sleep state when the display is next used. If you need to use the LoRa radio before this, you may need to manually call `Platform::VExtOn()`.

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=heltec-eink-modules
2-
version=4.5.0
2+
version=4.5.1
33
author=Todd Herbert
44
maintainer=Todd Herbert
55
sentence=Third party graphics library for Heltec E-Ink modules.

src/Platforms/WirelessPaper/power_controls.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ namespace Platform {
88

99
// Enable power to Wireless Paper's interfaces (Display + LoRa P/A)
1010
void VExtOn() {
11+
gpio_hold_dis((gpio_num_t)PIN_LORA_NSS); // Release any hold on LoRa radio's CS pin (see Platform::prepareToSleep)
12+
1113
pinMode(PIN_PCB_VEXT, OUTPUT); // OUTPUT, incase this is the first call
1214

1315
if (digitalRead(PIN_PCB_VEXT) != VEXT_ACTIVE) { // Read, to avoid waiting unnecessarily for power to stabilize

0 commit comments

Comments
 (0)