Bayley Wang
/
manworm_tv_raster
cube
Fork of manworm_tv_gpu by
Diff: main.h
- Revision:
- 13:9cf720873bf6
- Parent:
- 9:2a47b9ff8911
diff -r e99cc1e9d928 -r 9cf720873bf6 main.h --- a/main.h Fri May 04 01:45:05 2018 +0000 +++ b/main.h Fri May 04 19:18:18 2018 +0000 @@ -5,4 +5,19 @@ void new_line(); void clear_all_text(); void draw_gfx_line(float x0, float y0, float x1, float y1); + +// Resolution, including porches +#define V_RES 200 +#define H_RES 300 + +// good new stuff +#define X0 75 // start of image in X +#define Y0 30 // start of image in Y +#define XL 220 // 25 chars +#define YL 165 // 20 chars + +extern uint8_t *im_line_va; + +#define set_pixel(x, y, color) im_line_va[H_RES*((y)+Y0) + (x) + X0] = (color) + #endif \ No newline at end of file