gameboy wormboy manboy gameworm gameman wormgame mangame manworm
Dependencies: mbed SDFileSystem2
main.h
- Committer:
- bwang
- Date:
- 2018-09-30
- Revision:
- 14:5ee7843f2805
- Parent:
- 13:9cf720873bf6
- Child:
- 17:c9afe1a7b423
File content as of revision 14:5ee7843f2805:
#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); // Buffer sizes #define V_RES 96 #define H_RES 279 // Porches #define V_PORCH_SIZE 30 #define H_PORCH_SIZE 25 // good new stuff #define X0 50 // start of image in X #define Y0 0 // start of image in Y #define XL 224 // 25 chars #define YL 96 // 20 chars //video #define VIDEO_FRAME_SIZE (XL * YL / 2) //*SD card*/ #define DI PC_3 #define DO PC_2 #define SCK PB_10 #define CS PB_12 extern uint8_t *im_line_va; #define set_pixel(x, y, color) im_line_va[H_RES*((y)+Y0) + (x) + X0] = (color) #endif