mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
MAX7456: Adjustable screen area position offsets
There are displays and goggles with slightly different timing characteristics compared the standard ones. With such devices, screen area may be too high or too low that top or bottom most characters may be truncated. This PR provides a way to adjust the screen area position so that entire screen area can be shifted up or down, or left or right. A new vcdProfile_t (VCD = Video Character Device) is defined and video_system was moved from osdProfile also.
This commit is contained in:
parent
547230b28b
commit
062e8b7b26
9 changed files with 64 additions and 14 deletions
|
@ -42,6 +42,7 @@
|
|||
#include "drivers/rx_spi.h"
|
||||
#include "drivers/serial.h"
|
||||
#include "drivers/pwm_output.h"
|
||||
#include "drivers/vcd.h"
|
||||
#include "drivers/max7456.h"
|
||||
#include "drivers/sound_beeper.h"
|
||||
#include "drivers/light_ws2811strip.h"
|
||||
|
@ -483,6 +484,15 @@ void resetServoMixerConfig(servoMixerConfig_t *servoMixerConfig)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef USE_MAX7456
|
||||
void resetMax7456Config(vcdProfile_t *pVcdProfile)
|
||||
{
|
||||
pVcdProfile->video_system = 0; // AUTO see drivers/max7456.h
|
||||
pVcdProfile->h_offset = 0;
|
||||
pVcdProfile->v_offset = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
uint8_t getCurrentProfile(void)
|
||||
{
|
||||
return masterConfig.current_profile_index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue