mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Displayport tidy
This commit is contained in:
parent
c1576cdba6
commit
1c7f574a55
5 changed files with 23 additions and 9 deletions
|
@ -56,7 +56,7 @@ static int oledScreenSize(const displayPort_t *displayPort)
|
|||
return displayPort->rows * displayPort->cols;
|
||||
}
|
||||
|
||||
static int oledWrite(displayPort_t *displayPort, uint8_t x, uint8_t y, const char *s)
|
||||
static int oledWriteString(displayPort_t *displayPort, uint8_t x, uint8_t y, const char *s)
|
||||
{
|
||||
i2c_OLED_set_xy(displayPort->device, x, y);
|
||||
i2c_OLED_send_string(displayPort->device, s);
|
||||
|
@ -99,7 +99,7 @@ static const displayPortVTable_t oledVTable = {
|
|||
.clearScreen = oledClearScreen,
|
||||
.drawScreen = oledDrawScreen,
|
||||
.screenSize = oledScreenSize,
|
||||
.write = oledWrite,
|
||||
.writeString = oledWriteString,
|
||||
.writeChar = oledWriteChar,
|
||||
.isTransferInProgress = oledIsTransferInProgress,
|
||||
.heartbeat = oledHeartbeat,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue