mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-08-05 21:04:29 -04:00
Update RNode_Firmware_CE.ino
This commit is contained in:
parent
98136ed1ab
commit
43aa2f60c8
1 changed files with 2 additions and 5 deletions
|
@ -1756,14 +1756,11 @@ void sleep_now() {
|
|||
display.setCursor(8,88 );
|
||||
display.print("> 8 secs : Sleep");
|
||||
display.display(false);
|
||||
display.hibernate();
|
||||
display.setFont(SMALL_FONT);
|
||||
display.setTextSize(2);
|
||||
display.setCursor(5, 100);
|
||||
display.printf("%02X%02X", bt_dh[14], bt_dh[15]); // last two bytes of the BLE MAC
|
||||
// display.setPartialWindow(0, 0, DISP_W, DISP_H);
|
||||
|
||||
|
||||
display.hibernate();
|
||||
// BD addin telling sx1262 to deep sleep
|
||||
npset(0,0,0);
|
||||
digitalWrite(PIN_VEXT_EN, LOW);
|
||||
|
@ -1813,7 +1810,7 @@ void button_event(uint8_t event, unsigned long duration) {
|
|||
sleep_now();
|
||||
#endif
|
||||
} else {
|
||||
//BD
|
||||
//BD
|
||||
Serial.print("Button : Bluetooth powered ");
|
||||
//BD
|
||||
#if HAS_BLUETOOTH || HAS_BLE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue