Fix rotation offsets for JAYCAR display

The JAYCAR display was not having its offsets set correctly now that
they were being set by default.
This commit is contained in:
Jack Massey 2019-02-28 22:05:21 +10:00
parent a3766f41e9
commit d953156461
1 changed files with 10 additions and 0 deletions

View File

@ -188,6 +188,7 @@ void st7735_set_orientation(enum ST7735_ORIENTATION orientation) {
}
if(st7735_type == ST7735_RED144_JAYCAR) {
st7735_column_start = 32;
st7735_row_start = 32;
}
break;
@ -234,6 +235,11 @@ void st7735_set_orientation(enum ST7735_ORIENTATION orientation) {
} else {
st7735_height = st7735_default_height_18;
}
if(st7735_type == ST7735_RED144_JAYCAR) {
st7735_column_start = 0;
}
break;
case ST7735_LANDSCAPE_INV:
@ -252,6 +258,10 @@ void st7735_set_orientation(enum ST7735_ORIENTATION orientation) {
st7735_width = st7735_default_height_18;
}
if(st7735_type == ST7735_RED144_JAYCAR) {
st7735_column_start = 0;
}
st7735_height = st7735_default_width;
break;
}