Merged in pashamray/ugfx/pcf8812 (pull request #14)

fix SPI send data
This commit is contained in:
Joel Bodenman 2014-07-12 11:47:42 +02:00
commit 2f1af41b27

View File

@ -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);
}