fix SPI send data
This commit is contained in:
parent
1f72ee9f43
commit
94bc703fe2
@ -81,11 +81,8 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
||||
write_cmd(g, PCF8812_SET_X); // X = 0
|
||||
write_cmd(g, PCF8812_SET_Y); // Y = 0
|
||||
|
||||
coord_t i;
|
||||
|
||||
for (i = 0; i < GDISP_MATRIX_BYTES; i++) {
|
||||
write_data(g, 0x00, 1);
|
||||
}
|
||||
write_data(g, 0x00, GDISP_MATRIX_BYTES);
|
||||
|
||||
// Finish Init
|
||||
post_init_board(g);
|
||||
@ -120,11 +117,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
||||
write_cmd(g, PCF8812_SET_X | 0); // X = 0
|
||||
write_cmd(g, PCF8812_SET_Y | 0); // Y = 0
|
||||
|
||||
coord_t i;
|
||||
|
||||
for (i = 0; i < GDISP_MATRIX_BYTES; i++) {
|
||||
write_data(g, RAM(g)[i], 1);
|
||||
}
|
||||
write_data(g, RAM(g), GDISP_MATRIX_BYTES);
|
||||
|
||||
release_bus(g);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user