A class for managing SSD1306 controlled LCD´s (cheap 128x64 models, 0.96'')
Dependents: mbed_ssd1306 USB_meter_SD_file_number_filtro_for EscanerRf escaner_RTOS ... more
Diff: ssd1306.cpp
- Revision:
- 9:57209a7e9cba
- Parent:
- 8:09b1578f93d9
diff -r 09b1578f93d9 -r 57209a7e9cba ssd1306.cpp --- a/ssd1306.cpp Mon Nov 06 18:22:22 2017 +0000 +++ b/ssd1306.cpp Mon Nov 06 18:35:22 2017 +0000 @@ -537,40 +537,40 @@ qpixel_x[0] = x; qpixel_y[0] = y; - scr.plot (x, y, SSD1306::Normal); + plot (x, y, SSD1306::Normal); while (wqueue != rqueue) { x = qpixel_x[rqueue]; y = qpixel_y[rqueue]; rqueue++; - if (x!=127 && !scr.point (x+1,y)) + if (x!=127 && !point (x+1,y)) { - scr.plot (x+1, y, SSD1306::Normal); + plot (x+1, y, SSD1306::Normal); qpixel_x[wqueue] = x+1; qpixel_y[wqueue] = y; wqueue++; } - if (x!=0 && !scr.point (x-1,y)) + if (x!=0 && !point (x-1,y)) { - scr.plot (x-1, y, SSD1306::Normal); + plot (x-1, y, SSD1306::Normal); qpixel_x[wqueue] = x-1; qpixel_y[wqueue] = y; wqueue++; } - if (y!=63 && !scr.point (x,y+1)) + if (y!=63 && !point (x,y+1)) { - scr.plot (x, y+1, SSD1306::Normal); + plot (x, y+1, SSD1306::Normal); qpixel_x[wqueue] = x; qpixel_y[wqueue] = y+1; wqueue++; } - if (y!=0 && !scr.point (x,y-1)) + if (y!=0 && !point (x,y-1)) { - scr.plot (x, y-1, SSD1306::Normal); + plot (x, y-1, SSD1306::Normal); qpixel_x[wqueue] = x; qpixel_y[wqueue] = y-1; wqueue++;