Skip to content

Commit fa2514f

Browse files
committed
variants: update power initialization in variant.cpp
Refactor the initVariant function to correctly set the OLED power state to LOW and add comments for clarity. Signed-off-by: ChihoSin [email protected]
1 parent a1afae3 commit fa2514f

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed
Binary file not shown.
-16 Bytes
Binary file not shown.

variants/fobe_quill_esp32s3_mesh/variant.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
extern "C" {
55

66
void initVariant(void) {
7+
// Turn on the peripheral power
78
pinMode(PIN_PERI_EN, OUTPUT);
89
digitalWrite(PIN_PERI_EN, HIGH);
910

11+
// Turn on the OLED power
1012
pinMode(PIN_OLED_EN, OUTPUT);
11-
digitalWrite(PIN_OLED_EN, HIGH);
13+
digitalWrite(PIN_OLED_EN, LOW);
1214
}
1315
}

0 commit comments

Comments
 (0)