Commit f93295bf authored by Matěj Kopecký's avatar Matěj Kopecký
Browse files

Changes to files

parent b2801cba
**LCD_FB_START 0xffe00000** - start address of lcd display
**LCD_FB_END 0xffe4afff** - end address of lcd display
**GAB 2** - gab between two characters, size two
**LCD_WIDTH 480** - width of lcd display
**LCD_HEIGHT 320** - height of lcd display
**DRAW_BORDER 255** - border in pixels for drawing
uint16_t text_field[LCD_WIDTH * LCD_HEIGHT] - lcd buffer
# structure Gcolor16b
This structure contains colors in 16 bites.
uint16_t red;
uint16_t blue;
uint16_t green;
uint16_t black;
uint16_t white;
uint16_t yellow;
# structure Gcolor64b
This structure contains colors in 64 bites.
uint64_t red;
uint64_t blue;
uint64_t green;
uint64_t black;
uint64_t white;
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)
......
......@@ -4,27 +4,26 @@ The code is written without any C library. Just plain C code.
Made by: Matej Kopecky and Vit Ramba
# Installation
1. Download the code:
1. Install QTMips from this site: https://github.com/cvut/QtMips/releases/
1. Set up your QTMips to see LCD Display, terminal with input, LED’s and knobs like the picture shows.
![qtmips_setup]
(qtmips_setup.png?raw=true "QTMips Setup")
2. Install QTMips from this site: https://github.com/cvut/QtMips/releases/
3. Set up your QTMips to see LCD Display, terminal with input, LED’s and knobs like the picture shows.
![qtmips_setup] (qtmips_setup.png?raw=true "QTMips Setup")
1. Build the game using included Makefile.
1. In your folder now should be ‘main’ file.
1. Run that file in QTMips to start Grafo.
4. Build the game using included Makefile.
5. In your folder now should be ‘main’ file.
6. Run that file in QTMips to start Grafo.
# Controls
After you start the code, wait around half a minute before LCD loades. Keep an eye on the terminal. There will instructions for you. After the LCD loads, you can start pressing some buttons to set color of your drawing.
# Color options – press button:
1. ‘r’ for color red
1. ‘g’ for color green
1. ‘b’ for color blue
1. ‘y’ for color yellow
1. ‘w’ for color white
Press ‘p’ for clear of draw field.
Press ‘q’ to end the game.
2. ‘g’ for color green
3. ‘b’ for color blue
4. ‘y’ for color yellow
5. ‘w’ for color white
*Press ‘p’ for clear of draw field.
*Press ‘q’ to end the game.
After you pick color, you will start drawing in the draw screen. Both LED’s will show you the chosen color.
To change color when you start drawing, hold the button for a moment for the code to pick it up.
*To change color when you start drawing, hold the button for a moment for the code to pick it up.
# Terminal
Terminal will show you every now and then coordinates of the cursor.
To change color when you start drawing, hold the button for a moment for the code to pick it up.
......
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