it works!

Dependencies:   SDFileSystem2 mbed

Fork of manworm_tv_raster by Bayley Wang

Revision:
14:5ee7843f2805
Parent:
13:9cf720873bf6
--- a/main.h	Fri May 04 19:18:18 2018 +0000
+++ b/main.h	Sun Sep 30 18:03:58 2018 +0000
@@ -6,15 +6,28 @@
 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
+// 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 75  // start of image in X
-#define Y0 30  // start of image in Y
-#define XL 220 // 25 chars
-#define YL 165 // 20 chars
+#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;