1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/pinetime: add defines for controlling the backlight

This commit is contained in:
Alexandre Abadie 2020-03-19 10:23:51 +01:00
parent fc6b586919
commit bad9d6c93f
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -52,6 +52,17 @@ extern "C" {
#define BATTERY_ADC NRF52_AIN7
/** @} */
/**
* @name Backlight control defines, default uses LCD_BACKLIGHT_LOW values
* @{
*/
#ifndef BACKLIGHT_MASK
#define BACKLIGHT_MASK (1 << 14)
#endif
#define BACKLIGHT_ON (NRF_P0->OUTCLR = BACKLIGHT_MASK)
#define BACKLIGHT_OFF (NRF_P0->OUTSET = BACKLIGHT_MASK)
/** @ */
/**
* @name LCD configuration
* @{