drivers/ili9341 : Move 'ILI9341_VCOMH' to 'CONFIG_'
This commit is contained in:
parent
7bb83f9e01
commit
d6935cd7bb
@ -121,7 +121,7 @@ int ili9341_init(ili9341_t *dev, const ili9341_params_t *params)
|
||||
_write_cmd(dev, ILI9341_CMD_PWCTRL2, command_params, 1);
|
||||
|
||||
/* VCOMCTL */
|
||||
command_params[0] = _ili9341_calc_vmh(ILI9341_VCOMH);
|
||||
command_params[0] = _ili9341_calc_vmh(CONFIG_ILI9341_VCOMH);
|
||||
command_params[1] = _ili9341_calc_vml(ILI9341_VCOML);
|
||||
_write_cmd(dev, ILI9341_CMD_VMCTRL1, command_params, 2);
|
||||
|
||||
|
||||
@ -63,8 +63,8 @@ extern "C" {
|
||||
*
|
||||
* Default VCOMH voltage of 4.25V
|
||||
*/
|
||||
#ifndef ILI9341_VCOMH
|
||||
#define ILI9341_VCOMH 4250
|
||||
#ifndef CONFIG_ILI9341_VCOMH
|
||||
#define CONFIG_ILI9341_VCOMH 4250
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user