17 lines
534 B
C
17 lines
534 B
C
#ifndef FRAMEBUFFER_H
|
|
#define FRAMEBUFFER_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define HPIXEL 640 // number of pixels displayed horizontally
|
|
#define VPIXEL 480 // number of pixels displayed vertically
|
|
#define BPP 1 // bits per pixel
|
|
|
|
#define VSPULSE 3 // number of lines during the vertical sync pulse
|
|
#define VBBLANK 16 // number of lines of the initial back porch blanking period
|
|
#define VFBLANK 1 // number of lines of the final front porch blanking period
|
|
|
|
extern uint8_t frame[HPIXEL * (VSPULSE + VBBLANK + VPIXEL) * BPP / 8];
|
|
|
|
#endif
|