1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

merge in savaga

This commit is contained in:
nathan 2016-06-16 02:29:52 -07:00
commit b95e540217
41 changed files with 408 additions and 323 deletions

View file

@ -38,13 +38,13 @@
static IO_t max7456CsPin = IO_NONE;
/** PAL or NTSC, value is number of chars total */
#define VIDEO_MODE_PIXELS_NTSC 390
#define VIDEO_MODE_PIXELS_PAL 480
#define VIDEO_BUFFER_CHARS_NTSC 390
#define VIDEO_BUFFER_CHARS_PAL 480
uint16_t max_screen_size;
uint8_t video_signal_type = 0;
uint8_t max7456_lock = 0;
char screen[VIDEO_MODE_PIXELS_PAL];
char screen[VIDEO_BUFFER_CHARS_PAL];
uint8_t max7456_send(uint8_t add, uint8_t data) {
@ -93,10 +93,10 @@ void max7456_init(uint8_t system) {
}
if (video_signal_type) { //PAL
max_screen_size = VIDEO_MODE_PIXELS_PAL;
max_screen_size = VIDEO_BUFFER_CHARS_PAL;
max_screen_rows = 16;
} else { // NTSC
max_screen_size = VIDEO_MODE_PIXELS_NTSC;
max_screen_size = VIDEO_BUFFER_CHARS_NTSC;
max_screen_rows = 13;
}