Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of manworm_tv_gpu by
main.h@14:cd89c3c9978a, 2019-01-15 (annotated)
- Committer:
- bwang
- Date:
- Tue Jan 15 23:24:16 2019 +0000
- Revision:
- 14:cd89c3c9978a
- Parent:
- 13:9cf720873bf6
raster
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| dicarloj | 9:2a47b9ff8911 | 1 | #ifndef _mainh | 
| dicarloj | 9:2a47b9ff8911 | 2 | #define _mainh | 
| dicarloj | 9:2a47b9ff8911 | 3 | |
| dicarloj | 9:2a47b9ff8911 | 4 | void draw_vincent_string(char* str); | 
| dicarloj | 9:2a47b9ff8911 | 5 | void new_line(); | 
| dicarloj | 9:2a47b9ff8911 | 6 | void clear_all_text(); | 
| dicarloj | 9:2a47b9ff8911 | 7 | void draw_gfx_line(float x0, float y0, float x1, float y1); | 
| bwang | 13:9cf720873bf6 | 8 | |
| bwang | 13:9cf720873bf6 | 9 | // Resolution, including porches | 
| bwang | 13:9cf720873bf6 | 10 | #define V_RES 200 | 
| bwang | 13:9cf720873bf6 | 11 | #define H_RES 300 | 
| bwang | 13:9cf720873bf6 | 12 | |
| bwang | 13:9cf720873bf6 | 13 | // good new stuff | 
| bwang | 13:9cf720873bf6 | 14 | #define X0 75 // start of image in X | 
| bwang | 13:9cf720873bf6 | 15 | #define Y0 30 // start of image in Y | 
| bwang | 13:9cf720873bf6 | 16 | #define XL 220 // 25 chars | 
| bwang | 13:9cf720873bf6 | 17 | #define YL 165 // 20 chars | 
| bwang | 13:9cf720873bf6 | 18 | |
| bwang | 13:9cf720873bf6 | 19 | extern uint8_t *im_line_va; | 
| bwang | 13:9cf720873bf6 | 20 | |
| bwang | 13:9cf720873bf6 | 21 | #define set_pixel(x, y, color) im_line_va[H_RES*((y)+Y0) + (x) + X0] = (color) | 
| bwang | 13:9cf720873bf6 | 22 | |
| dicarloj | 9:2a47b9ff8911 | 23 | #endif | 
