cube

Dependencies:   mbed

Fork of manworm_tv_gpu by Jared DiCarlo

main.h

Committer:
bwang
Date:
2019-01-15
Revision:
14:cd89c3c9978a
Parent:
13:9cf720873bf6

File content as of revision 14:cd89c3c9978a:

#ifndef _mainh
#define _mainh

void draw_vincent_string(char* str);
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