add shield to add driver to hardware setup

This commit is contained in:
Patrick Moessler 2024-01-06 22:03:37 +01:00
parent 2c53c45c4b
commit c7d9cb3fa8
4 changed files with 35 additions and 1 deletions

View file

@ -0,0 +1,12 @@
# Copyright (c) 2024 PM
# SPDX-License-Identifier: Apache-2.0
if SHIELD_MLX90640_ELECROW_I2C
config SENSOR
default y
config MLX90640
default y
endif # SHIELD_MLX90640_ELECROW_I2C

View file

@ -0,0 +1,6 @@
# Copyright (c) 2024 PM
#
# SPDX-License-Identifier: Apache-2.0
config SHIELD_MLX90640_ELECROW_I2C
def_bool $(shields_list_contains,mlx90640_elecrow_i2c)

View file

@ -0,0 +1,15 @@
/*
* Copyright (c) 2024 PM
*
* SPDX-License-Identifier: Apache-2.0
*/
&i2c0 {
status = "okay";
mlx90640_mlx90640_elecrow_i2c: mlx90640@33 {
compatible = "melexis,mlx90640";
reg = <0x33>;
status = "okay";
};
};

View file

@ -4,7 +4,8 @@
CONFIG_BOARD_ELECROW_ESP_TERMINAL=y
CONFIG_SOC_SERIES_ESP32S3=y
CONFIG_MAIN_STACK_SIZE=8192 # increased for LVGL
# increased for LVGL
CONFIG_MAIN_STACK_SIZE=8192
CONFIG_CONSOLE=y
CONFIG_SERIAL=y