Backlight API fixes

This commit is contained in:
Raphael Coeffic
2022-06-13 22:43:45 +02:00
committed by Raphael Coeffic
parent ec2c5c5bdc
commit 4fc2a2ee5d
9 changed files with 64 additions and 29 deletions
@@ -22,6 +22,8 @@
#include "opentx_types.h"
#include "board.h"
#include "globals.h"
void backlightInit()
{
// PIN init
@@ -61,6 +63,11 @@ void backlightEnable(uint8_t dutyCycle)
lastDutyCycle = dutyCycle;
}
void backlightFullOn()
{
backlightEnable(BACKLIGHT_LEVEL_MAX);
}
void lcdOff() {
backlightEnable(0);
}