Skip to content

Commit

Permalink
fixed lcd draw skew caused by setCursor now setting column addressing
Browse files Browse the repository at this point in the history
  • Loading branch information
greenbreakfast committed Dec 9, 2015
1 parent 3cf61bb commit db00176
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/oled-exp.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,10 @@ int oledDraw (uint8_t *buffer, int bytes)

onionPrint(ONION_SEVERITY_INFO, "> Writing buffer data to display\n");

// set the column addressing for the full width
status = oledSetColumnAddressing(0, OLED_EXP_WIDTH-1);
_bColumnsSetForText = 0;

// set addressing mode to horizontal (automatic newline at the end of each line)
oledSetMemoryMode(OLED_EXP_MEM_HORIZONTAL_ADDR_MODE);

Expand Down

0 comments on commit db00176

Please sign in to comment.