mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Add HD OSD support (#11964)
This commit is contained in:
parent
1a45c87281
commit
3e51d15559
14 changed files with 287 additions and 32 deletions
|
@ -80,6 +80,15 @@ void displaySetXY(displayPort_t *instance, uint8_t x, uint8_t y)
|
|||
instance->posY = y;
|
||||
}
|
||||
|
||||
int displaySys(displayPort_t *instance, uint8_t x, uint8_t y, displayPortSystemElement_e systemElement)
|
||||
{
|
||||
if (instance->vTable->writeSys) {
|
||||
return instance->vTable->writeSys(instance, x, y, systemElement);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int displayWrite(displayPort_t *instance, uint8_t x, uint8_t y, uint8_t attr, const char *text)
|
||||
{
|
||||
instance->posX = x + strlen(text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue