Demo of low res colour vga video for stm32f3 discovery board
Dependencies: STM32F3-Discovery-minimal
Fork of Space_Invaders_Demo by
Diff: video.h
- Revision:
- 3:93e488fbb8a2
- Parent:
- 0:404dae88af71
- Child:
- 5:594c9712697c
--- a/video.h Tue May 17 23:53:10 2016 +0000 +++ b/video.h Wed May 16 02:39:14 2018 +0000 @@ -27,18 +27,22 @@ #include "gdptypes.h" -#define VID_HSIZE 50 // Horizontal resolution (in bytes) -#define VID_VSIZE 300 // Vertical resolution (in lines) +#define VID_HSIZE 175 //261 // Horizontal resolution (in bytes) +#define VID_VSIZE 150 // Vertical resolution (in lines) -#define VID_PIXELS_X (VID_HSIZE * 8) +#define VID_PIXELS_X (VID_HSIZE) #define VID_PIXELS_Y VID_VSIZE + +/* #define VID_PIXELS_XR (VID_PIXELS_X + 16) #define VID_HSIZE_R (VID_HSIZE + 2) - +*/ // Function definitions void vidInit(void); void vidClearScreen(void); +void waitForRefresh(void); +void vidNextBuffer(void);