Move to Native SPI implementations of ILI9341 and STMPE610

This commit is contained in:
Pim van Pelt
2017-12-01 13:57:43 +01:00
parent 5b80d88b86
commit eab5f31a92
36 changed files with 71 additions and 10325 deletions

View File

@ -1,14 +1,13 @@
#include "mgos.h"
#include "tft.h"
#include "mongoose-touch.h"
static void widget_topbar_render(struct widget_t *w, void *ev_data) {
if (!w)
return;
mgos_ili9341_setclipwin(w->x, w->y, w->x+w->w, w->y+w->h);
mgos_ili9341_fillRect(0, 0, w->w, w->h, ILI9341_WHITE);
mgos_ili9341_resetclipwin();
mgos_ili9341_set_window(w->x, w->y, w->x+w->w, w->y+w->h);
mgos_ili9341_set_fgcolor565(ILI9341_WHITE);
mgos_ili9341_fillRect(0, 0, w->w, w->h);
(void) ev_data;
}