![](/media/cache/profiles/916954106a13204fa4909ae2d48e0602.jpg.50x50_q85.jpg)
gameboy wormboy manboy gameworm gameman wormgame mangame manworm
Dependencies: mbed SDFileSystem2
main.h
- Committer:
- dicarloj
- Date:
- 2019-01-13
- Revision:
- 17:c9afe1a7b423
- Parent:
- 14:5ee7843f2805
File content as of revision 17:c9afe1a7b423:
#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); extern volatile uint8_t drawing; // Buffer sizes #define V_RES 144 #define H_RES (279 - 80 + 20 - 4) // 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 - 80 + 20 - 4) // 25 chars #define YL 144 // 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_vas[]; extern volatile uint8_t bufferSelect; extern uint32_t tics; #define set_pixel(x, y, color) im_line_va[H_RES*((y)+Y0) + (x) + X0] = (color) #endif