gameboy wormboy manboy gameworm gameman wormgame mangame manworm

Dependencies:   mbed SDFileSystem2

Revision:
17:c9afe1a7b423
Parent:
14:5ee7843f2805
--- a/main.h	Thu Oct 04 12:37:25 2018 +0000
+++ b/main.h	Sun Jan 13 19:00:10 2019 +0000
@@ -5,10 +5,10 @@
 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 96
-#define H_RES 279
+#define V_RES 144
+#define H_RES (279 - 80 + 20 - 4)
 
 // Porches
 #define V_PORCH_SIZE 30
@@ -17,8 +17,8 @@
 // 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
+#define XL (224 - 80 + 20 - 4) // 25 chars
+#define YL 144 // 20 chars
 
 //video
 #define VIDEO_FRAME_SIZE (XL * YL / 2)
@@ -29,7 +29,9 @@
 #define SCK PB_10
 #define CS PB_12
 
-extern uint8_t *im_line_va;
+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)