1
0
Fork 0
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:
Steve Evans 2022-11-15 01:58:14 +00:00 committed by GitHub
parent 1a45c87281
commit 3e51d15559
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 287 additions and 32 deletions

View file

@ -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);