Skip to content

Commit

Permalink
remove getConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Jan 25, 2024
1 parent c230797 commit 013e0e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/st7735/panic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,15 @@ void ST7735::init() {
busy_wait_us(20 * 1000);
}

uint32_t cfg0 = getConfig(CFG_DISPLAY_CFG0, 0x40);
uint32_t frmctr1 = getConfig(CFG_DISPLAY_CFG1, 0x000603);
uint32_t cfg0 = MY_DISPLAY_CFG0;
uint32_t frmctr1 = MY_CFG_DISPLAY_CFG1;
auto madctl = cfg0 & 0xff;

sendCmdSeq(initCmds);
configure(madctl, frmctr1);

width = getConfig(CFG_DISPLAY_WIDTH, 160);
height = getConfig(CFG_DISPLAY_HEIGHT, 128);
width = MY_DISPLAY_WIDTH;
height = MY_DISPLAY_HEIGHT;
}

void ST7735::configure(uint8_t madctl, uint32_t frmctr1) {
Expand Down

0 comments on commit 013e0e6

Please sign in to comment.