1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 18:12:46 +01:00

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

This commit is contained in:
Akshai M 2020-11-30 16:33:32 +01:00
parent 9d46bc7d7f
commit 7bb83f9e01
2 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ int ili9341_init(ili9341_t *dev, const ili9341_params_t *params)
_write_cmd(dev, ILI9341_CMD_DISPOFF, NULL, 0); _write_cmd(dev, ILI9341_CMD_DISPOFF, NULL, 0);
/* PWRCTL1/2 */ /* 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); _write_cmd(dev, ILI9341_CMD_PWCTRL1, command_params, 1);
command_params[0] = 0x10; /* PWRCTL 0 0 0 */ command_params[0] = 0x10; /* PWRCTL 0 0 0 */

View File

@ -54,8 +54,8 @@ extern "C" {
* *
* Default GVDD voltage of 4.8V * Default GVDD voltage of 4.8V
*/ */
#ifndef ILI9341_GVDD #ifndef CONFIG_ILI9341_GVDD
#define ILI9341_GVDD 4800 #define CONFIG_ILI9341_GVDD 4800
#endif #endif
/** /**