Commit f4d0fb45 authored by Vít Ramba's avatar Vít Ramba
Browse files

Changes to dev doc to reflect LCD buffer elimination

parent 7983acb8
......@@ -10,6 +10,6 @@ Functions and files
Block diagram
At startup, the program loads peripherals status, creates drawing area in memory, transfers it to frame buffer and sets drawing color.
Program loads positions of red and green knobs and in case of a difference it computes a suitable neighbour to the current cursor position. Program can also change the drawing color if the value of blue knob has chnged or user used the terminal to change the color.
At startup, the program loads peripherals status, sets drawing color, and writes directly to LCD.
Program loads positions of red and green knobs and in case of a difference it computes a suitable neighbour to the current cursor position. Program can also change the drawing color if the value of blue knob has changed or user used the terminal to change the color.
Current drawing color is indicated by two LEDs.
......@@ -9,6 +9,9 @@ This structure contains vertical and horizontal coordinates of draw pointer
* uint16_t x
* uint16_t y
# int main()
* main of the code, loops it to draw on lcd
# void loadKnobs(volatile knobs_t *knobs)
* gets values from each knob
# void setPoint(point_t *newPoint, uint16_t x, uint16_t y)
......@@ -19,5 +22,5 @@ This structure contains vertical and horizontal coordinates of draw pointer
* draw new point into the lcd display
# void set_draw_color(uint16_t *color16b, uint64_t *color64b, int wait_time)
* gets color from input and changes the draw color and led color to it
# int main()
* main of the code, loops it to draw on lcd
# void setDrawColor_knob(uint16_t *color16b, uint64_t *color64b, volatile knobs_t *knobs)
* changes the color based on blue knob value
......@@ -46,8 +46,6 @@ uint64_t yellow;
# int get_width_of_char(font_descriptor_t *file_des, int ch_char)
* Function for getting the width of a char from a fond for lcd display
# void erase_text_field(void)
* Erase whole text field (buffer) to black (zero)
# void color_pixels(uint16_t pix_color, int start_pos, int block_size)
* Colors pixels in field according to inputs
# void make_draw_frame(uint16_t pix_color)
......@@ -58,8 +56,6 @@ uint64_t yellow;
* Writes one character into the text field
# void draw_line(int size_of_font, int line_number, uint16_t text_color, font_descriptor_t *file_des, int idx, char *str_text)
* Writes one line of a string according to inputs
# void draw_to_lcd(void)
* Redraws whole text field into the lcd
# void init_lcd_message(int size_of_font, uint16_t text_color, font_descriptor_t *file_des)
* Draws initialization message to lcd display
# void pick_color(int size_of_font, uint16_t text_color, font_descriptor_t *file_des)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment