discoverpixy
ll_tft.h
Go to the documentation of this file.
1 /**************************************************************************************************************************************
2 * Project: discoverpixy
3 * Website: https://github.com/t-moe/discoverpixy
4 * Authors: Aaron Schmocker, Timo Lang
5 * Institution: BFH Bern University of Applied Sciences
6 * File: common/lowlevel/ll_tft.h
7 *
8 * Version History:
9 * Date Autor Email SHA Changes
10 * 2015-04-03 timolang@gmail.com 51089aa Refactored Project Structure for use with emulator
11 * 2015-04-03 timolang@gmail.com 1f2af9f Added more tft functions to common and emulator. Fixed eventloop.
12 * 2015-04-03 timolang@gmail.com 9a1d12a Refactored discovery, to use new project structure. Almost ready.
13 * 2015-04-03 timolang@gmail.com 1aa9194 Fixed Drawing of rects in Emulator. Got frames from pixy to emulator. Slooooow.
14 * 2015-04-27 aaron@duckpond.ch aed90ef Drawcircle added (emulator)
15 * 2015-04-27 timolang@gmail.com e249fb2 Added font support
16 * 2015-04-27 aaron@duckpond.ch f0a6c3b Implemented init functions for gpio, fsmc and display
17 * 2015-04-27 aaron@duckpond.ch 0b61f21 Fixed misplacement of prototypes in ll_tft.h and implemented a propper init function.
18 * 2015-05-15 timolang@gmail.com 9a16865 Added doxgen comments to filesyste, checkbox, numupdown and screen module. And some minor changes to the other modules.
19 *
20 **************************************************************************************************************************************/
21 
22 #include <stdint.h>
23 #include <stdbool.h>
24 
25 
30 
36 
41 
42 // init functions
43 bool ll_tft_init();
44 
45 // draw functions
46 void ll_tft_clear(uint16_t color);
47 void ll_tft_draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color);
48 void ll_tft_draw_pixel(uint16_t x, uint16_t y, uint16_t color);
49 void ll_tft_draw_rectangle(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color);
50 void ll_tft_fill_rectangle(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color);
51 void ll_tft_draw_bitmap_unscaled(uint16_t x, uint16_t y, uint16_t width, uint16_t height, const uint16_t* dat);
52 void ll_tft_draw_circle(uint16_t x, uint16_t y, uint16_t r, uint16_t color);
53 
54 
55 uint8_t ll_tft_num_fonts();
56 uint8_t ll_tft_font_height(uint8_t fontnum);
57 uint8_t ll_tft_font_width(uint8_t fontnum);
58 void ll_tft_draw_char(uint16_t x, uint16_t y, uint16_t color, uint16_t bgcolor, uint8_t font, char c);
59 
void ll_tft_draw_circle(uint16_t x, uint16_t y, uint16_t r, uint16_t color)
uint8_t ll_tft_font_width(uint8_t fontnum)
uint8_t ll_tft_num_fonts()
void ll_tft_draw_pixel(uint16_t x, uint16_t y, uint16_t color)
void ll_tft_draw_char(uint16_t x, uint16_t y, uint16_t color, uint16_t bgcolor, uint8_t font, char c)
uint8_t ll_tft_font_height(uint8_t fontnum)
void ll_tft_draw_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
void ll_tft_fill_rectangle(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
bool ll_tft_init()
void ll_tft_clear(uint16_t color)
void ll_tft_draw_rectangle(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
void ll_tft_draw_bitmap_unscaled(uint16_t x, uint16_t y, uint16_t width, uint16_t height, const uint16_t *dat)