![](/media/cache/profiles/916954106a13204fa4909ae2d48e0602.jpg.50x50_q85.jpg)
gameboy wormboy manboy gameworm gameman wormgame mangame manworm
Dependencies: mbed SDFileSystem2
main.h@17:c9afe1a7b423, 2019-01-13 (annotated)
- Committer:
- dicarloj
- Date:
- Sun Jan 13 19:00:10 2019 +0000
- Revision:
- 17:c9afe1a7b423
- Parent:
- 14:5ee7843f2805
a
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); |
dicarloj | 17:c9afe1a7b423 | 8 | extern volatile uint8_t drawing; |
bwang | 14:5ee7843f2805 | 9 | // Buffer sizes |
dicarloj | 17:c9afe1a7b423 | 10 | #define V_RES 144 |
dicarloj | 17:c9afe1a7b423 | 11 | #define H_RES (279 - 80 + 20 - 4) |
bwang | 14:5ee7843f2805 | 12 | |
bwang | 14:5ee7843f2805 | 13 | // Porches |
bwang | 14:5ee7843f2805 | 14 | #define V_PORCH_SIZE 30 |
bwang | 14:5ee7843f2805 | 15 | #define H_PORCH_SIZE 25 |
bwang | 13:9cf720873bf6 | 16 | |
bwang | 13:9cf720873bf6 | 17 | // good new stuff |
bwang | 14:5ee7843f2805 | 18 | #define X0 50 // start of image in X |
bwang | 14:5ee7843f2805 | 19 | #define Y0 0 // start of image in Y |
dicarloj | 17:c9afe1a7b423 | 20 | #define XL (224 - 80 + 20 - 4) // 25 chars |
dicarloj | 17:c9afe1a7b423 | 21 | #define YL 144 // 20 chars |
bwang | 14:5ee7843f2805 | 22 | |
bwang | 14:5ee7843f2805 | 23 | //video |
bwang | 14:5ee7843f2805 | 24 | #define VIDEO_FRAME_SIZE (XL * YL / 2) |
bwang | 14:5ee7843f2805 | 25 | |
bwang | 14:5ee7843f2805 | 26 | //*SD card*/ |
bwang | 14:5ee7843f2805 | 27 | #define DI PC_3 |
bwang | 14:5ee7843f2805 | 28 | #define DO PC_2 |
bwang | 14:5ee7843f2805 | 29 | #define SCK PB_10 |
bwang | 14:5ee7843f2805 | 30 | #define CS PB_12 |
bwang | 13:9cf720873bf6 | 31 | |
dicarloj | 17:c9afe1a7b423 | 32 | extern uint8_t *im_line_vas[]; |
dicarloj | 17:c9afe1a7b423 | 33 | extern volatile uint8_t bufferSelect; |
dicarloj | 17:c9afe1a7b423 | 34 | extern uint32_t tics; |
bwang | 13:9cf720873bf6 | 35 | |
bwang | 13:9cf720873bf6 | 36 | #define set_pixel(x, y, color) im_line_va[H_RES*((y)+Y0) + (x) + X0] = (color) |
bwang | 13:9cf720873bf6 | 37 | |
dicarloj | 9:2a47b9ff8911 | 38 | #endif |