This commit is contained in:
ladyada 2021-08-16 17:06:30 -04:00
parent ded7afe186
commit af992ff9da

View file

@ -151,7 +151,6 @@ bool Adafruit_SH1107::begin(uint8_t addr, bool reset) {
splash2_data, splash2_width, splash2_height, 1);
}
// Init sequence, make sure its under 32 bytes, or split into multiples!
// clang-format off
static const uint8_t init[] = {
@ -180,8 +179,7 @@ bool Adafruit_SH1107::begin(uint8_t addr, bool reset) {
if (WIDTH == 128 && HEIGHT == 128) {
static const uint8_t init_128x128[] = {
SH110X_SETDISPLAYOFFSET, 0x00,
SH110X_SETMULTIPLEX, 0x7F, // 0xa8, 0x3f,
SH110X_SETDISPLAYOFFSET, 0x00, SH110X_SETMULTIPLEX, 0x7F, // 0xa8, 0x3f,
};
if (!oled_commandList(init_128x128, sizeof(init_128x128))) {
return false;