mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
drivers/ili9341 : Move 'ILI9341_GVDD' to 'CONFIG_'
This commit is contained in:
parent
9d46bc7d7f
commit
7bb83f9e01
@ -114,7 +114,7 @@ int ili9341_init(ili9341_t *dev, const ili9341_params_t *params)
|
||||
_write_cmd(dev, ILI9341_CMD_DISPOFF, NULL, 0);
|
||||
|
||||
/* PWRCTL1/2 */
|
||||
command_params[0] = _ili9341_calc_pwrctl1(ILI9341_GVDD);
|
||||
command_params[0] = _ili9341_calc_pwrctl1(CONFIG_ILI9341_GVDD);
|
||||
_write_cmd(dev, ILI9341_CMD_PWCTRL1, command_params, 1);
|
||||
|
||||
command_params[0] = 0x10; /* PWRCTL 0 0 0 */
|
||||
|
@ -54,8 +54,8 @@ extern "C" {
|
||||
*
|
||||
* Default GVDD voltage of 4.8V
|
||||
*/
|
||||
#ifndef ILI9341_GVDD
|
||||
#define ILI9341_GVDD 4800
|
||||
#ifndef CONFIG_ILI9341_GVDD
|
||||
#define CONFIG_ILI9341_GVDD 4800
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user