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:
parent
a3766f41e9
commit
d953156461
10
st7735.c
10
st7735.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue