Merged in pashamray/ugfx/pcd8544 (pull request #13)

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

View File

@ -76,11 +76,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
write_cmd(g, PCD8544_SET_X); // X = 0
write_cmd(g, PCD8544_SET_Y); // Y = 0
coord_t i;
for (i = 0; i < GDISP_SCREEN_BYTES; i++) {
write_data(g, 0x00, 1);
}
write_data(g, 0x00, GDISP_SCREEN_BYTES);
// Finish Init
post_init_board(g);
@ -115,11 +111,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
write_cmd(g, PCD8544_SET_X | 0); // X = 0
write_cmd(g, PCD8544_SET_Y | 0); // Y = 0
coord_t i;
for (i = 0; i < GDISP_SCREEN_BYTES; i++) {
write_data(g, RAM(g)[i], 1);
}
write_data(g, RAM(g), GDISP_SCREEN_BYTES);
release_bus(g);
}
@ -128,7 +120,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
#if GDISP_HARDWARE_DRAWPIXEL
LLDSPEC void gdisp_lld_draw_pixel(GDisplay *g) {
coord_t x, y;
#if GDISP_NEED_CONTROL
switch(g->g.Orientation) {
default: