mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
drivers/ili9341 : Move 'ILI9341_VCOML' to 'CONFIG_'
This commit is contained in:
parent
d6935cd7bb
commit
a322c6d4c0
@ -122,7 +122,7 @@ int ili9341_init(ili9341_t *dev, const ili9341_params_t *params)
|
||||
|
||||
/* VCOMCTL */
|
||||
command_params[0] = _ili9341_calc_vmh(CONFIG_ILI9341_VCOMH);
|
||||
command_params[1] = _ili9341_calc_vml(ILI9341_VCOML);
|
||||
command_params[1] = _ili9341_calc_vml(CONFIG_ILI9341_VCOML);
|
||||
_write_cmd(dev, ILI9341_CMD_VMCTRL1, command_params, 2);
|
||||
|
||||
command_params[0] = 0x86;
|
||||
|
@ -72,8 +72,8 @@ extern "C" {
|
||||
*
|
||||
* Default VCOMH voltage of -2V
|
||||
*/
|
||||
#ifndef ILI9341_VCOML
|
||||
#define ILI9341_VCOML -2000
|
||||
#ifndef CONFIG_ILI9341_VCOML
|
||||
#define CONFIG_ILI9341_VCOML -2000
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user