185 const uint16_t *bitmap, int16_t w, int16_t h)
206 int16_t ddF_y = -2 * r;
253 int16_t ddF_y = -2 * r;
268 if (cornername & 0x4)
273 if (cornername & 0x2)
278 if (cornername & 0x8)
283 if (cornername & 0x1)
308 int16_t ddF_y = -2 * r;
324 if (cornername & 0x1)
329 if (cornername & 0x2)
364 int16_t w, int16_t h,
385 int16_t h, int16_t r,
uint16_t color)
415 int16_t h, int16_t r,
uint16_t color)
438 int16_t x1, int16_t y1,
439 int16_t x2, int16_t y2,
uint16_t color)
459 int16_t x1, int16_t y1,
460 int16_t x2, int16_t y2,
uint16_t color)
463 int16_t a, b,
y, last;
483 else if(x1 > b) b = x1;
485 else if(x2 > b) b = x2;
506 if(y1 == y2) last = y1;
509 for(y=y0; y<=last; y++)
525 sa = dx12 * (y - y1);
526 sb = dx02 * (y - y0);
MEMSPACE void tft_drawTriangle(window *win, int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
Draw a triangle.
void tft_drawFastHLine(window *win, int16_t x, int16_t y, int16_t w, uint16_t color)
Fast virtical line drawing.
Master include file for project Includes all project includes and defines here.
void tft_fillRectWH(window *win, int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
Partial window Fill with color We clip the window to the current view.
MEMSPACE void tft_fillCircleHelper(window *win, int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color)
Fill circle helper.
MEMSPACE void tft_configRegister(void)
Initialize ILI9341 display.
MEMSPACE void tft_drawBitmap(window *win, int16_t x, int16_t y, const uint16_t *bitmap, int16_t w, int16_t h)
Draw bitmap Replaced by tft_writeRect()
void tft_writeRect(window *win, int16_t x, int16_t y, int16_t w, int16_t h, uint16_t *color)
Write a rectangle pixel array.
void tft_drawFastVLine(window *win, int16_t x, int16_t y, int16_t h, uint16_t color)
Fast virtical line drawing.
MEMSPACE void tft_fillTriangle(window *win, int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color)
Fill a triangle.
void tft_drawPixel(window *win, int16_t x, int16_t y, int16_t color)
Pixel functions
MEMSPACE void tft_drawRoundRect(window *win, int16_t x, int16_t y, int16_t w, int16_t h, int16_t r, uint16_t color)
Draw a rounded rectangle.
MEMSPACE void tft_drawRect(window *win, int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color)
Draw a rectangle.
void tft_drawLine(window *win, int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color)
Draw line From my blit test code testit.c 1984 - 1985 Mike Gore.
void tft_Cmd_Data_TX(uint8_t cmd, uint8_t *data, int bytes)
Transmit 8 bit command and optionally send data buffer.
MEMSPACE void tft_fillCircle(window *win, int16_t x0, int16_t y0, int16_t r, uint16_t color)
Fill circle.
ili9341 driver inspired by Adafruit ili9341 code All code in this file has been rewritten by Mike Gor...
MEMSPACE void tft_drawCircleHelper(window *win, int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color)
Draw a circle helper.
MEMSPACE void tft_drawCircle(window *win, int16_t x0, int16_t y0, int16_t r, uint16_t color)
Draw a circle outline.
MEMSPACE void tft_fillRoundRect(window *win, int16_t x, int16_t y, int16_t w, int16_t h, int16_t r, uint16_t color)
Fill a rounded rectangle.