1
0
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:
Akshai M 2020-11-30 16:37:44 +01:00
parent d6935cd7bb
commit a322c6d4c0
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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
/**