1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /*
- * GFX_FUNCTIONS.h
- *
- * Created on: 30-Oct-2020
- * Author: meh
- */
- #ifndef INC_GFX_FUNCTIONS_H_
- #define INC_GFX_FUNCTIONS_H_
- void drawPixel(int16_t x, int16_t y, uint16_t color);
- void writeLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color);
- void drawFastVLine(int16_t x, int16_t y, int16_t h, uint16_t color);
- void drawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color);
- void fillRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color);
- void drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color);
- void drawCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
- void drawCircleHelper( int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color);
- void fillCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t corners, int16_t delta, uint16_t color);
- void fillCircle(int16_t x0, int16_t y0, int16_t r, uint16_t color);
- void drawRect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color);
- void drawRoundRect(int16_t x, int16_t y, int16_t w, int16_t h, int16_t r, uint16_t color);
- void fillRoundRect(int16_t x, int16_t y, int16_t w, int16_t h, int16_t r, uint16_t color);
- void drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color);
- void fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color);
- void fillScreen(uint16_t color);
- void testLines(uint16_t color);
- void testFastLines(uint16_t color1, uint16_t color2);
- void testRects(uint16_t color) ;
- void testFilledRects(uint16_t color1, uint16_t color2);
- void testFilledCircles(uint8_t radius, uint16_t color);
- void testCircles(uint8_t radius, uint16_t color);
- void testTriangles();
- void testFilledTriangles();
- void testRoundRects();
- void testFilledRoundRects();
- void testFillScreen();
- void testAll (void);
- #endif /* INC_GFX_FUNCTIONS_H_ */
|