samples/grove_lcd: build for x86 too

This adds the config file for x86 based platforms.
Also, it no longer clears the screen at each counter update,
as the app is writing the same amount of characters anyway.
This gets rid of the screen flickering.

Change-Id: I1db6dd4b7978b764b7538e120354fc5d010df283
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2016-01-12 09:57:03 -08:00 committed by Anas Nashif
commit 00b0e06b92
6 changed files with 16 additions and 6 deletions

View file

@ -1,6 +1,6 @@
BOARD ?= arduino_101_sss
ARCH ?= arc
KERNEL_TYPE = nano
CONF_FILE = prj.conf
CONF_FILE = prj_$(ARCH).conf
include ${ZEPHYR_BASE}/Makefile.inc

View file

@ -1,5 +1,4 @@
CONFIG_STDOUT_CONSOLE=y
CONFIG_KERNEL_BIN_NAME="arc"
CONFIG_PRINTK=y
CONFIG_I2C=y

View file

@ -0,0 +1,11 @@
CONFIG_STDOUT_CONSOLE=y
CONFIG_PRINTK=y
CONFIG_I2C=y
CONFIG_I2C_DW=y
CONFIG_I2C_DW_0=y
CONFIG_GROVE=y
CONFIG_GROVE_LCD_RGB=y
CONFIG_GROVE_LCD_RGB_I2C_MASTER_DEV_NAME="I2C0"
CONFIG_GROVE_LCD_RGB_INIT_PRIORITY=90

View file

@ -1 +1 @@
obj-y = arc_i2c_grove_lcd.o
obj-y = grove_lcd.o

View file

@ -82,7 +82,7 @@ void main(void)
cnt = 0;
while (1) {
glcd_clear(glcd);
glcd_cursor_pos_set(glcd, 0, 0);
/* RGB values are from 0 - 511.
* First half means incrementally brighter.

View file

@ -2,5 +2,5 @@
build_only = true
tags = drivers
arch_whitelist = arc
platform_whitelist = arduino_101_sss
arch_whitelist = arc x86
platform_whitelist = arduino_101_sss quark_d2000_crb