Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align AS6212 sample to upstream #93

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions samples/as6212_sample/Kconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#
# Copyright (c) 2021 Jimmy Johnson <[email protected]>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not remove this copyright notice

# Copyright (c) 2022 T-Mobile USA, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -20,8 +19,8 @@ config APP_ENABLE_ONE_SHOT

config APP_TEMP_ALERT_HIGH_THRESH
int "RH [%] high threshold for alert trigger in celsius"
range 0 50
default 26
range -40 125
default 44
help
Set this to enable alerts for high temperatures
although this will work with one shot enabled,
Expand All @@ -31,8 +30,8 @@ config APP_TEMP_ALERT_HIGH_THRESH

config APP_TEMP_ALERT_LOW_THRESH
int "RH [%] low threshold for alert trigger in celsius"
range 0 50
default 18
range -40 125
default 38
help
Set this to enable alerts for low temperatures
although this will work with one shot enabled,
Expand Down
4 changes: 2 additions & 2 deletions samples/as6212_sample/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ This application aims to demonstrate the Gecko's Energy Mode 2 (EM2) (Deep Sleep
Mode) and Wake capabilities in conjunction with the temperature interrupt
of DevEdge's (tmo_dev_edge) AMS OSRAM AS6212 Digital Temperature Sensor.

Set SENSOR_ATTR_UPPER_THRESH (44)
Set SENSOR_ATTR_LOWER_THRESH (38)
Set SENSOR_ATTR_UPPER_THRESH (44C)
Set SENSOR_ATTR_LOWER_THRESH (38C)

Set temperature_alert

Expand Down
17 changes: 15 additions & 2 deletions samples/as6212_sample/prj.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
# Copyright (c) 2022 T-Mobile USA, Inc.
#
# SPDX-License-Identifier: Apache-2.0

# Sensor
CONFIG_SENSOR=y
CONFIG_STDOUT_CONSOLE=y
CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_I2C=y
CONFIG_TMP108=y
CONFIG_ASSERT=y
CONFIG_TMP108_ALERT_INTERRUPTS=y
#Power Managment

# Power Managment
CONFIG_PM=y
CONFIG_PM_DEVICE=y
CONFIG_APP_REPORT_TEMP_ALERTS=y

# GPIO
CONFIG_GPIO=y

# Logging
CONFIG_LOG=y
# CONFIG_LOG_MODE_MINIMAL=y
CONFIG_LOG_MODE_IMMEDIATE=y
Loading