drivers/ili9341 : Move 'ILI9341_VCOMH' to 'CONFIG_'

This commit is contained in:
Akshai M 2020-11-30 16:35:43 +01:00
parent 7bb83f9e01
commit d6935cd7bb
2 changed files with 3 additions and 3 deletions

View File

@ -121,7 +121,7 @@ int ili9341_init(ili9341_t *dev, const ili9341_params_t *params)
_write_cmd(dev, ILI9341_CMD_PWCTRL2, command_params, 1); _write_cmd(dev, ILI9341_CMD_PWCTRL2, command_params, 1);
/* VCOMCTL */ /* 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); command_params[1] = _ili9341_calc_vml(ILI9341_VCOML);
_write_cmd(dev, ILI9341_CMD_VMCTRL1, command_params, 2); _write_cmd(dev, ILI9341_CMD_VMCTRL1, command_params, 2);

View File

@ -63,8 +63,8 @@ extern "C" {
* *
* Default VCOMH voltage of 4.25V * Default VCOMH voltage of 4.25V
*/ */
#ifndef ILI9341_VCOMH #ifndef CONFIG_ILI9341_VCOMH
#define ILI9341_VCOMH 4250 #define CONFIG_ILI9341_VCOMH 4250
#endif #endif
/** /**