This sample writes the tmp108 temperature to the console once every 3 seconds. There are macro definitions included for turning off and on alerts if that is set up, and also using low power one shot mode. Signed-off-by: Jimmy Johnson <catch22@fastmail.net>
7 lines
114 B
Plaintext
7 lines
114 B
Plaintext
CONFIG_SENSOR=y
|
|
CONFIG_STDOUT_CONSOLE=y
|
|
CONFIG_CBPRINTF_FP_SUPPORT=y
|
|
CONFIG_I2C=y
|
|
CONFIG_TMP108=y
|
|
CONFIG_ASSERT=y
|