display.cpp: oled.setPower added
This commit is contained in:
parent
ee644597c0
commit
6b111bfd5c
@ -61,7 +61,8 @@ display_library = ; set by build.py and taken from hal file
|
|||||||
lib_deps_lora =
|
lib_deps_lora =
|
||||||
mcci-catena/MCCI LoRaWAN LMIC library @ ^4.1.1
|
mcci-catena/MCCI LoRaWAN LMIC library @ ^4.1.1
|
||||||
lib_deps_display =
|
lib_deps_display =
|
||||||
bitbank2/OneBitDisplay @ ^2.1.0
|
https://github.com/bitbank2/OneBitDisplay#8d4ab34
|
||||||
|
;bitbank2/OneBitDisplay @ ^2.1.0
|
||||||
ricmoo/QRCode @ ^0.0.1
|
ricmoo/QRCode @ ^0.0.1
|
||||||
bodmer/TFT_eSPI @ ^2.3.84
|
bodmer/TFT_eSPI @ ^2.3.84
|
||||||
lib_deps_ledmatrix =
|
lib_deps_ledmatrix =
|
||||||
|
@ -538,10 +538,7 @@ void dp_contrast(uint8_t contrast) {
|
|||||||
|
|
||||||
void dp_power(uint8_t screenon) {
|
void dp_power(uint8_t screenon) {
|
||||||
#if (HAS_DISPLAY) == 1
|
#if (HAS_DISPLAY) == 1
|
||||||
//not yet in library, awaiting PR https://github.com/bitbank2/OneBitDisplay/pull/34
|
oled.setPower(screenon);
|
||||||
//oled.setPower(screenon);
|
|
||||||
//as workaround be blank the sreen
|
|
||||||
dp_clear();
|
|
||||||
#elif (HAS_DISPLAY) == 2
|
#elif (HAS_DISPLAY) == 2
|
||||||
// to come
|
// to come
|
||||||
#endif
|
#endif
|
||||||
@ -549,10 +546,7 @@ void dp_power(uint8_t screenon) {
|
|||||||
|
|
||||||
void dp_shutdown(void) {
|
void dp_shutdown(void) {
|
||||||
#if (HAS_DISPLAY) == 1
|
#if (HAS_DISPLAY) == 1
|
||||||
//not yet in library, awaiting PR https://github.com/bitbank2/OneBitDisplay/pull/34
|
oled.setPower(false);
|
||||||
//oled.setPower(false);
|
|
||||||
//as workaround be blank the sreen
|
|
||||||
dp_clear();
|
|
||||||
delay(DISPLAYREFRESH_MS / 1000 * 1.1);
|
delay(DISPLAYREFRESH_MS / 1000 * 1.1);
|
||||||
#elif (HAS_DISPLAY) == 2
|
#elif (HAS_DISPLAY) == 2
|
||||||
// to come
|
// to come
|
||||||
|
Loading…
Reference in New Issue
Block a user