Skip to content

Commit 6a26ae7

Browse files
committed
Handle 32-bit fb support when available
1 parent 982a508 commit 6a26ae7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ESPHamClock/ArduinoLib/Adafruit_RA8875.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ bool Adafruit_RA8875::begin (int not_used)
449449
// try to disable some fb interference
450450
ourSystem ("dmesg -n 1");
451451

452-
// try to engage 16 bit
453-
ourSystem ("fbset -depth 16");
452+
// try to engage depth matching compile-time depth
453+
ourSystem ("fbset -depth %d", BITSPFBPIX);
454454
ourSystem ("fbset");
455455

456456
// init for mouse thread

0 commit comments

Comments
 (0)