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:
parent
fc6b586919
commit
bad9d6c93f
@ -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
|
||||
* @{
|
||||
|
Loading…
Reference in New Issue
Block a user