text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```unknown
CONFIG_SENSOR=y
CONFIG_MCUX_LPCMP_TRIGGER=y
``` | /content/code_sandbox/samples/sensor/mcux_lpcmp/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14 |
```restructuredtext
.. _mcux_lpcmp:
NXP MCUX Low-power Analog Comparator (LPCMP)
############################################
Overview
********
This sample show how to use the NXP MCUX Analog Comparator (LPCMP) driver.
In this application, the negative input port of the LPCMP is set to 7 which
means the input volta... | /content/code_sandbox/samples/sensor/mcux_lpcmp/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 337 |
```yaml
sample:
description: Demonstration of the NXP MCUX LPCMP driver
name: NXP MCUX LPCMP sample
common:
platform_allow:
- frdm_mcxn947/mcxn947/cpu0
integration_platforms:
- frdm_mcxn947/mcxn947/cpu0
tags:
- drivers
- sensor
tests:
sample.sensor.mcux_lpcmp:
harness: console
harnes... | /content/code_sandbox/samples/sensor/mcux_lpcmp/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 160 |
```unknown
/*
*
*/
&lpcmp0 {
function-clock = "CMP_CLOCK";
};
``` | /content/code_sandbox/samples/sensor/mcux_lpcmp/boards/frdm_mcxn947_mcxn947_cpu0.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 18 |
```unknown
/*
*
*/
/*
* A DPS310 attached to the Arduino I2C pins
*/
&arduino_i2c {
DPS310@77 {
status = "okay";
compatible = "infineon,dps310";
reg = <0x77>;
};
};
``` | /content/code_sandbox/samples/sensor/dps310/app.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 60 |
```restructuredtext
.. _dps310:
DPS310 Temperature and Pressure Sensor
######################################
Overview
********
This sample application periodically reads temperature and pressure data from
the first available device that implements SENSOR_CHAN_AMBIENT_TEMP and
SENSOR_CHAN_PRESS. This sample checks t... | /content/code_sandbox/samples/sensor/dps310/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 315 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_I2C=y
CONFIG_SENSOR=y
``` | /content/code_sandbox/samples/sensor/dps310/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 17 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/sensor/mcux_lpcmp.h>
#include <zephyr/kernel.h>
#include <stdio.h>
struct lpcmp_attr {
int16_t attr;
int32_t val;
};
static const struct lpcmp_attr attrs[] = {
{.attr = SENSOR_ATTR_MCUX_LPCMP_POSITIVE_MUX_INPUT, ... | /content/code_sandbox/samples/sensor/mcux_lpcmp/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,091 |
```yaml
sample:
name: DP310 Sensor sample
tests:
sample.sensor.dps310:
harness: console
tags: sensors
depends_on:
- i2c
- arduino_i2c
harness_config:
type: one_line
regex:
- "temp: (.*); press: (.*);"
fixture: fixture_i2c_dps310
``` | /content/code_sandbox/samples/sensor/dps310/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 86 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <stdlib.h>
int main(void)
{
printk("Hello DPS310\n");
const struct device *const dev = DEVICE_DT_GET_ONE(infineon_dps310);
if (!device_is_ready(dev)) {
printk("Device %s is not ready\n", dev->name);
... | /content/code_sandbox/samples/sensor/dps310/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 217 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_SENSOR_LOG_LEVEL_INF=y
CONFIG_LOG=y
CONFIG_LOG_BUFFER_SIZE=4096
CONFIG_I2C=y
CONFIG_SENSOR=y
#CONFIG_AMG88XX_TRIGGER_GLOBAL_THREAD=y
#CONFIG_AMG88XX_TRIGGER_OWN_THREAD=y
``` | /content/code_sandbox/samples/sensor/amg88xx/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 59 |
```restructuredtext
.. _amg88xx:
AMG88XX Infrared Array Sensor
#############################
Overview
********
This sample application periodically reads the 8x8 temperature array from
the AMG88XX sensor and displays its values to the serial console.
The sample can also be configured to be triggered when the upper t... | /content/code_sandbox/samples/sensor/amg88xx/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 405 |
```yaml
common:
tags: sensors
sample:
description: AMG88XX sensor sample
name: AMG88XX sample
tests:
sample.sensor.amg88xx.amg88xx_grid_eye_eval_shield:
build_only: true
depends_on: arduino_i2c arduino_gpio
platform_allow: pan1780_evb pan1770_evb pan1781_evb pan1782_evb
integration_platforms:
... | /content/code_sandbox/samples/sensor/amg88xx/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 233 |
```restructuredtext
.. _vl53l0x:
VL53L0X: Time Of Flight sensor
##############################
Overview
********
This sample periodically measures distance between vl53l0x sensor
and target. The result is displayed on the console.
It also shows how we can use the vl53l0x as a proximity sensor.
Requirements
********... | /content/code_sandbox/samples/sensor/vl53l0x/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 230 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_I2C=y
CONFIG_GPIO=y
CONFIG_SENSOR=y
CONFIG_VL53L0X_PROXIMITY_THRESHOLD=100
#debug
#CONFIG_DEBUG=y
#CONFIG_LOG=y
#CONFIG_SENSOR_LOG_LEVEL_DBG=y
CONFIG_CBPRINTF_FP_SUPPORT=y
``` | /content/code_sandbox/samples/sensor/vl53l0x/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/printk.h>
static struct sensor_value temp_value[64];
#ifdef CONFIG_AMG88XX_TRIGGER
K_SEM_DEFINE(sem, 0, 1);
static void trigger_handler(const struct device *dev,
const struct sensor_tr... | /content/code_sandbox/samples/sensor/amg88xx/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 625 |
```yaml
sample:
name: Sample for MEMS sensors VL53L0X
tests:
sample.sensor.vl53l0x:
build_only: true
depends_on:
- i2c
- vl53l0x
tags: sensors
``` | /content/code_sandbox/samples/sensor/vl53l0x/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 58 |
```unknown
/*
*
*/
&arduino_i2c {
status = "okay";
bmi270@68 {
compatible = "bosch,bmi270";
reg = <0x68>;
};
};
``` | /content/code_sandbox/samples/sensor/bmi270/app.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 43 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
#include <zephyr/sys/printk.h>
int main(void)
{
const struct device *const dev = DEVICE_DT_GET_ONE(st_vl53l0x);
struct sensor_value value;
int ret;
if (!device_is_ready(dev)) {
printk("sen... | /content/code_sandbox/samples/sensor/vl53l0x/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 224 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_I2C=y
CONFIG_SENSOR=y
``` | /content/code_sandbox/samples/sensor/bmi270/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 17 |
```yaml
sample:
name: BMI270 Sensor sample
tests:
sample.sensor.bmi270:
harness: sensor
tags:
- samples
- sensor
depends_on: arduino_i2c
``` | /content/code_sandbox/samples/sensor/bmi270/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 46 |
```restructuredtext
.. _bmi270:
BMI270: 6 axis inertial measurement unit
########################################
Description
***********
This sample application configures the accelerometer and gyroscope to
measure data at 100Hz. The result is written to the console.
References
**********
- BMI270: path_to_url
... | /content/code_sandbox/samples/sensor/bmi270/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 505 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
int main(void)
{
const struct device *const dev = DEVICE_DT_GET_ONE(bosch_bmi270);
struct sensor_value acc[3], gyr[3];
struct sensor_value full_scale, sampling_freq, oversampling;
if (!devic... | /content/code_sandbox/samples/sensor/bmi270/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 762 |
```restructuredtext
.. _isl29035:
ISL29035: Digital Light Sensor
##############################
Overview
********
If trigger is not enabled the sample displays measured light intensity
every 2 seconds.
If trigger is enabled the sample displays light intensity from the
ISL29035 sensor every 10 seconds if it is withi... | /content/code_sandbox/samples/sensor/isl29035/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 669 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_I2C=y
CONFIG_SENSOR=y
CONFIG_ISL29035_TRIGGER_GLOBAL_THREAD=y
CONFIG_ISL29035_LUX_RANGE_4K=y
CONFIG_CBPRINTF_FP_SUPPORT=y
``` | /content/code_sandbox/samples/sensor/isl29035/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 47 |
```yaml
sample:
name: ISL29035 Digital Light Sensor
tests:
sample.sensor.isl29035:
tags: sensors
depends_on: i2c
platform_allow: nrf52dk/nrf52832
integration_platforms:
- nrf52dk/nrf52832
harness: console
harness_config:
type: one_line
regex:
- "Ambient light sense"... | /content/code_sandbox/samples/sensor/isl29035/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 101 |
```unknown
/*
*
*/
&i2c0 { /* SDA P0.26, SCL P0.27, ALERT P1.11 */
isl29035@44 {
compatible = "isil,isl29035";
reg = <0x44>;
int-gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
};
};
``` | /content/code_sandbox/samples/sensor/isl29035/boards/nrf52dk_nrf52832.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 82 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
#include <zephyr/sys/util.h>
#define LUX_ALERT_DELTA 50
static volatile bool alerted;
struct k_sem sem;
static void trigger_handler(const struct device *dev,
const struct sensor_trigger ... | /content/code_sandbox/samples/sensor/isl29035/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 775 |
```unknown
#
#
#
CONFIG_STDOUT_CONSOLE=y
CONFIG_I2C=y
CONFIG_SENSOR=y
CONFIG_LOG=y
CONFIG_SENSOR_LOG_LEVEL_DBG=y
CONFIG_SHT3XD_TRIGGER_GLOBAL_THREAD=y
``` | /content/code_sandbox/samples/sensor/sht3xd/trigger.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 41 |
```unknown
#
#
#
CONFIG_STDOUT_CONSOLE=y
CONFIG_I2C=y
CONFIG_SENSOR=y
CONFIG_CBPRINTF_FP_SUPPORT=y
``` | /content/code_sandbox/samples/sensor/sht3xd/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 27 |
```restructuredtext
.. _sht3xd:
SHT3XD: High accuracy digital I2C humidity sensor
#################################################
Description
***********
This sample application periodically (2 Hz) measures the ambient
temperature and humidity. The result is written to the console.
Optionally, it also shows how to... | /content/code_sandbox/samples/sensor/sht3xd/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 372 |
```yaml
#
#
#
sample:
name: SHT3XD Sensor Sample
common:
platform_allow:
- sltb004a
- frdm_k64f
- nrf51_ble400
- nrf52840dk/nrf52840
- nucleo_l476rg
integration_platforms:
- nrf52840dk/nrf52840
tags: sensors
build_only: true
tests:
sample.sensor.sht3xd: {}
sample.sensor.sht3xd.tri... | /content/code_sandbox/samples/sensor/sht3xd/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 123 |
```unknown
/*
*
*/
&i2c0 { /* SDA H16=PC10, SCL H15=PC11, ALERT H13=PF6 */
sht3xd@44 {
compatible = "sensirion,sht3xd";
reg = <0x44>;
alert-gpios = <&gpiof 6 GPIO_ACTIVE_HIGH>;
};
};
``` | /content/code_sandbox/samples/sensor/sht3xd/boards/sltb004a.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 81 |
```unknown
/*
*
*/
&i2c1 { /* SDA CN5.9=PB9, SCL CN5.10=PB8, ALERT CN5.1=D8=PA9 */
/* &i2c3 { * SDA CN7.36=PC1, SCL CN7.38=PC0, ALERT CN7.34=PB0 */
sht3xd@44 {
compatible = "sensirion,sht3xd";
reg = <0x44>;
alert-gpios = <&gpioa 9 GPIO_ACTIVE_HIGH>;
};
};
``` | /content/code_sandbox/samples/sensor/sht3xd/boards/nucleo_l476rg.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 126 |
```unknown
/*
*
*/
&i2c0 { /* SDA P0.26, SCL P0.27, ALERT P1.10 */
sht3xd@44 {
compatible = "sensirion,sht3xd";
reg = <0x44>;
alert-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
};
};
``` | /content/code_sandbox/samples/sensor/sht3xd/boards/nrf52840dk_nrf52840.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 78 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
#define ALERT_HUMIDITY_LO 50
#define ALERT_HUMIDITY_HI 60
#ifdef CONFIG_SHT3XD_TRIGGER
static volatile bool alerted;
static void trigger_handler(const struct device *dev,
const struct se... | /content/code_sandbox/samples/sensor/sht3xd/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 695 |
```unknown
/*
*
*/
&i2c0 { /* SDA PTE25, SCL PTE24, ALERT PTE26 */
sht3xd@44 {
compatible = "sensirion,sht3xd";
reg = <0x44>;
alert-gpios = <&gpioe 26 GPIO_ACTIVE_HIGH>;
};
};
``` | /content/code_sandbox/samples/sensor/sht3xd/boards/frdm_k64f.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 75 |
```unknown
/*
*
*/
&i2c0 { /* SDA 0, SCL 1 */
sht3xd@44 {
compatible = "sensirion,sht3xd";
reg = <0x44>;
alert-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
};
};
``` | /content/code_sandbox/samples/sensor/sht3xd/boards/nrf51_ble400.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 68 |
```unknown
#
#
#
mainmenu "CCS811 sample application"
choice
prompt "CCS811 Trigger On"
default APP_TRIGGER_ON_DATAREADY
depends on CCS811_TRIGGER
help
Select the type of trigger to use
config APP_TRIGGER_ON_DATAREADY
bool "Trigger on data ready"
config APP_TRIGGER_ON_THRESHOLD
bool "Trigger on eCO2 thresh... | /content/code_sandbox/samples/sensor/ccs811/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 261 |
```unknown
#
#
#
CONFIG_STDOUT_CONSOLE=y
CONFIG_I2C=y
CONFIG_SENSOR=y
``` | /content/code_sandbox/samples/sensor/ccs811/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 20 |
```yaml
#
#
#
sample:
description: Demonstration of the CCS811 Digital Gas Sensor driver
name: CCS811 sample
tests:
sample.sensor.ccs811:
harness: sensor
tags: sensors
platform_allow:
- thingy52/nrf52832
- sltb004a
integration_platforms:
- sltb004a
depends_on: i2c
``` | /content/code_sandbox/samples/sensor/ccs811/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 87 |
```restructuredtext
.. _ccs811:
CCS811 Indoor Air Quality Sensor
################################
Overview
********
The CCS811 digital gas sensor detects volatile organic compounds (VOCs)
for indoor air quality measurements. VOCs are often categorized as
pollutants and/or sensory irritants and can come from a variet... | /content/code_sandbox/samples/sensor/ccs811/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 863 |
```unknown
/*
*
*/
&i2c1 {
status = "okay";
};
``` | /content/code_sandbox/samples/sensor/ccs811/boards/sltb004a.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 16 |
```unknown
#
#
#
CONFIG_STDOUT_CONSOLE=y
CONFIG_SENSOR=y
#CONFIG_CCS811_DRIVE_MODE_2=y
#CONFIG_CCS811_TRIGGER_GLOBAL_THREAD=y
#CONFIG_CCS811_TRIGGER_OWN_THREAD=y
``` | /content/code_sandbox/samples/sensor/ccs811/boards/nrf51_ble400.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 46 |
```unknown
/*
*
*/
&pinctrl {
i2c0_default_alt: i2c0_default_alt {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 0)>,
<NRF_PSEL(TWIM_SCL, 0, 1)>;
};
};
i2c0_sleep_alt: i2c0_sleep_alt {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 0)>,
<NRF_PSEL(TWIM_SCL, 0, 1)>;
low-power-enable;
};
};
};
&i2c0 {... | /content/code_sandbox/samples/sensor/ccs811/boards/nrf51_ble400.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 287 |
```restructuredtext
.. _tmd2620:
Generic Proximity Sensor Sample
###############################
Overview
********
This sample demonstrates how to use one or multiple proximity sensors.
Building and Running
********************
The sample supports up to 10 proximity sensors. The number of the sensors will
automati... | /content/code_sandbox/samples/sensor/proximity_polling/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 312 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/printk.h>
#include <zephyr/drivers/sensor/ccs811.h>
#include <stdio.h>
static bool app_fw_2;
static const char *now_str(void)
{
static char buf[16]; /* ...HH:MM:SS.MMM */
uint32_t now = k_up... | /content/code_sandbox/samples/sensor/ccs811/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,374 |
```unknown
CONFIG_SENSOR=y
``` | /content/code_sandbox/samples/sensor/proximity_polling/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5 |
```yaml
sample:
name: Proximity sensor polling sample
tests:
sample.sensor.proximity_polling:
harness: sensor
tags:
- sensors
- proximity
filter: dt_alias_exists("prox-sensor0")
integration_platforms:
- nrf52840dk/nrf52840
``` | /content/code_sandbox/samples/sensor/proximity_polling/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```unknown
/ {
aliases {
prox-sensor0 = &tmd2620;
};
};
&i2c0 {
status = "okay";
tmd2620: tmd2620@29 {
compatible = "ams,tmd2620";
reg = <0x29>;
int-gpios = <&gpio1 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
proximity-gain = <4>;
proximity-pulse-length = <16>;
proximity-pulse-count = <15>;
proximity-hig... | /content/code_sandbox/samples/sensor/proximity_polling/boards/nrf52840dk_nrf52840.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 179 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/util_macro.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/device.h>
#include <zephyr/pm/device.h>
#include <zephyr/sys/printk.h>
/* getting all devices from device tree with alias "prox_sensor?" */
#define PROX_ALIASES(i) DT_ALIAS(_CONCAT(prox_sen... | /content/code_sandbox/samples/sensor/proximity_polling/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 368 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_SENSOR=y
CONFIG_SENSOR_ASYNC_API=y
``` | /content/code_sandbox/samples/sensor/dht_polling/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 17 |
```yaml
#
#
#
sample:
description: Digital Humidity Temperature polling sample
name: DHT polling sample
tests:
sample.sensor.dht_polling:
tags: sensors
filter: dt_alias_exists("dht0")
integration_platforms:
- nucleo_f401re
harness: console
harness_config:
fixture: fixture_i2c_hs30... | /content/code_sandbox/samples/sensor/dht_polling/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 127 |
```restructuredtext
.. _dht_polling:
Generic Digital Humidity Temperature sensor polling sample
##########################################################
Overview
********
This sample application demonstrates how to use digital humidity temperature
sensors.
Building and Running
********************
This sample su... | /content/code_sandbox/samples/sensor/dht_polling/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 487 |
```unknown
/*
*
*/
/ {
aliases {
dht0 = &hs300x;
};
};
&i2c1 {
status = "okay";
hs300x: hs300x@44 {
compatible = "renesas,hs300x";
reg = <0x44>;
#address-cells = <1>;
#size-cells = <0>;
};
};
``` | /content/code_sandbox/samples/sensor/dht_polling/boards/nucleo_f401re.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 87 |
```restructuredtext
.. _lsm303dlhc:
LSM303DLHC: Magnetometer and Accelerometer data Monitor
#######################################################
Overview
********
This sample application periodically reads magnetometer and accelerometer data
from the LSM303DLHC eCompass module's sensors, and displays the sensor da... | /content/code_sandbox/samples/sensor/lsm303dlhc/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 363 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_I2C=y
CONFIG_SENSOR=y
CONFIG_CBPRINTF_FP_SUPPORT=y
``` | /content/code_sandbox/samples/sensor/lsm303dlhc/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 24 |
```yaml
sample:
name: LSM303DLHC Magnetometer and Accelerometer data Monitor
tests:
sample.sensor.lsm303dlhc:
harness: sensor
tags:
- samples
- sensor
depends_on:
- i2c
- lsm303dlhc
``` | /content/code_sandbox/samples/sensor/lsm303dlhc/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 63 |
```c
/*
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <zephyr/device.h>
#include <zephyr/sys/util_macro.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/sensor_data_types.h>
#include <zephyr/rtio/rtio.h>
#include <zephyr/dsp/print_format.h>
#define DHT_ALIAS(i) DT_AL... | /content/code_sandbox/samples/sensor/dht_polling/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 777 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
#include <zephyr/sys/util.h>
static int32_t read_sensor(const struct device *sensor,
enum sensor_channel channel)
{
struct sensor_value val[3];
int32_t ret = 0;
ret = sensor_sample_fetc... | /content/code_sandbox/samples/sensor/lsm303dlhc/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 424 |
```restructuredtext
.. _ms5837-sample:
MS5837 Sensor Sample
####################
Overview
********
This sample application retrieves the pressure and temperature from a MS5837
sensor every 10 seconds, and prints this information to the UART console.
Requirements
************
- `nRF52840 Preview development kit`_
-... | /content/code_sandbox/samples/sensor/ms5837/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 274 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_LOG=y
CONFIG_LOG_BACKEND_SHOW_COLOR=y
CONFIG_LOG_DEFAULT_LEVEL=1
CONFIG_LOG_OVERRIDE_LEVEL=1
CONFIG_I2C=y
CONFIG_SENSOR=y
``` | /content/code_sandbox/samples/sensor/ms5837/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 42 |
```yaml
sample:
description: TBD
name: TBD
tests:
sample.sensor.ms5837:
build_only: true
platform_allow: nrf52840dk/nrf52840
integration_platforms:
- nrf52840dk/nrf52840
tags: sensors
``` | /content/code_sandbox/samples/sensor/ms5837/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```unknown
/*
*
*/
&i2c1 {
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;
ms5837@76 {
compatible = "meas,ms5837";
reg = <0x76>;
};
};
``` | /content/code_sandbox/samples/sensor/ms5837/boards/nrf52840dk_nrf52840.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 55 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(main);
int main(void)
{
struct sensor_value oversampling_rate = { 8192, 0 };
const struct device *const dev = DEVICE_DT_GET_ANY(meas_ms5837)... | /content/code_sandbox/samples/sensor/ms5837/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 335 |
```unknown
CONFIG_STDOUT_CONSOLE=y
CONFIG_I2C=y
CONFIG_SENSOR=y
CONFIG_LOG=y
``` | /content/code_sandbox/samples/sensor/bq274xx/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 21 |
```restructuredtext
.. _bq274xx-sample:
BQ274XX Sensor Sample
#####################
Overview
********
This sample application retrieves all the fuel gauge parameters:
- Voltage, in volts
- Average current, in amps
- Standby current, in amps
- Maximum load current, in amps
- Gauge temperature
- State of charge measu... | /content/code_sandbox/samples/sensor/bq274xx/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 240 |
```yaml
sample:
description: Demonstration of the BQ274XX Fuel gauge Sensor driver
name: BQ274XX Sample
tests:
sample.sensor.bq274xx:
harness: sensor
platform_allow: innblue22/nrf9160
integration_platforms:
- innblue22/nrf9160
tags: sensors
depends_on: i2c
sample.sensor.bq274xx_without... | /content/code_sandbox/samples/sensor/bq274xx/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 154 |
```restructuredtext
.. _adc_cmp_npcx:
NPCX ADC Comparator
###################
Overview
********
This sample show how to use the NPCX ADC Comparator driver. The
sample supports the :ref:`npcx9m6f_evb`.
This application is a voltage comparator with hysteresis, upper limit is
set at 1 V while lower limit is 250 mV. In... | /content/code_sandbox/samples/sensor/adc_cmp_npcx/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 185 |
```unknown
CONFIG_ADC=y
CONFIG_SENSOR=y
CONFIG_SENSOR_SHELL=n
CONFIG_TACH_NPCX=n
``` | /content/code_sandbox/samples/sensor/adc_cmp_npcx/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 22 |
```yaml
sample:
description: Demonstration of nuvoton NPCX ADC comparator driver
name: NPCX ADC comparator sample
common:
platform_allow: npcx9m6f_evb
integration_platforms:
- npcx9m6f_evb
tags:
- drivers
- adc
tests:
sample.sensor.adc_cmp:
harness: console
harness_config:
type: mu... | /content/code_sandbox/samples/sensor/adc_cmp_npcx/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 121 |
```c
/*
*
*/
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/drivers/sensor/adc_cmp_npcx.h>
#include <zephyr/sys/atomic.h>
#include <zephyr/kernel.h>
#include <stdio.h>
#define ADC_CMP_NODE DT_NODELABEL(adc_cmp)
#define ADC_CMP_UPPER_THRESHOLD_MV 1000
#define ADC_CMP_LOWER_THRESHO... | /content/code_sandbox/samples/sensor/adc_cmp_npcx/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 691 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/printk.h>
static void bq274xx_show_values(const char *type, struct sensor_value value)
{
if ((value.val2 < 0) && (value.val1 >= 0)) {
value.val2 = -(value.val2);
printk("%s: -%d.%06d\n", t... | /content/code_sandbox/samples/sensor/bq274xx/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,560 |
```unknown
/*
*
*/
/ {
adc_cmp: comparator {
compatible = "nuvoton,adc-cmp";
io-channels = <&adc0 8>;
};
};
``` | /content/code_sandbox/samples/sensor/adc_cmp_npcx/boards/npcx9m6f_evb.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 40 |
```unknown
CONFIG_SENSOR=y
CONFIG_STDOUT_CONSOLE=y
CONFIG_CBPRINTF_FP_SUPPORT=y
``` | /content/code_sandbox/samples/sensor/thermometer/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 18 |
```yaml
sample:
name: Temperature Sensor
tests:
sample.sensor.thermometer:
tags: sensors
harness: sensor
filter: dt_alias_exists("ambient-temp0")
integration_platforms:
- nrf52840dk/nrf52840 # mcp9700a
- frdm_k22f # tcn75a
- robokit1 # ntc_thermistor
... | /content/code_sandbox/samples/sensor/thermometer/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 110 |
```restructuredtext
.. _thermometer-sample:
Thermometer sample
##################
Overview
********
This sample application periodically measures the ambient temperature
at 1Hz. The result is written to the console.
Wiring
*******
VDD pin should be connected to 2.3V to 5.5V
GND pin connected to 0V
VOUT pin connect... | /content/code_sandbox/samples/sensor/thermometer/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 522 |
```unknown
/ {
mcp9700a: mcp9700a {
status = "okay";
compatible = "microchip,mcp970x";
family = "MCP9700/9700A";
io-channels = <&adc 7>;
};
aliases {
ambient-temp0 = &mcp9700a;
};
};
&adc {
#address-cells = <1>;
#size-cells = <0>;
channel@7 {
reg = <7>;
zephyr,gain = "ADC_GAIN_1_3";
zephyr,ref... | /content/code_sandbox/samples/sensor/thermometer/boards/nrf52840dk_nrf52840.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 218 |
```unknown
/*
*
*/
/ {
aliases {
ambient-temp0 = &temp_sensor;
};
};
/*
* Note- TCN75A is not present on the FRDM-K22F eval board, and must be
* wired to i2c0 and PTC2 externally
*/
&i2c0 {
temp_sensor: tcn75a@48 {
reg = <0x48>;
compatible = "microchip,tcn75a";
alert-gpios = <&gpioc 2 (GPIO_ACTIVE_LOW... | /content/code_sandbox/samples/sensor/thermometer/boards/frdm_k22f.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 131 |
```unknown
# Enable trigger support
CONFIG_TCN75A_TRIGGER_GLOBAL_THREAD=y
``` | /content/code_sandbox/samples/sensor/thermometer/boards/frdm_k22f.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 16 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
static double high_temp;
static double low_temp;
int read_temperature(const struct device *dev, struct sensor_value *val)
{
int ret;
ret = sensor_sample_fetch_chan(dev, SENSOR_CHAN_AMBIENT_TEMP);
if (ret < 0) {
prin... | /content/code_sandbox/samples/sensor/thermometer/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 849 |
```unknown
CONFIG_SENSOR=y
CONFIG_ADC=y
CONFIG_PRINTK=y
CONFIG_CBPRINTF_FP_SUPPORT=y
``` | /content/code_sandbox/samples/sensor/die_temp_polling/prj.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 21 |
```restructuredtext
.. _die_temp_polling:
CPU Die Temperature polling
###########################
Overview
********
This sample periodically reads temperature from the CPU Die
temperature sensor and display the results.
Building and Running
********************
To run this sample, enable the sensor node that suppo... | /content/code_sandbox/samples/sensor/die_temp_polling/README.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 192 |
```unknown
/*
*
*
* Application overlay for creating temperature sensor device instance
*/
&coretemp {
status = "okay";
};
``` | /content/code_sandbox/samples/sensor/die_temp_polling/socs/esp32c3.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 25 |
```unknown
CONFIG_REQUIRES_FULL_LIBC=y
``` | /content/code_sandbox/samples/sensor/die_temp_polling/socs/esp32c3.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9 |
```yaml
sample:
description: CPU Die temperature polling sample
name: die_temp_polling
tests:
sample.sensor.die_temperature_polling:
tags:
- sensors
filter: dt_alias_exists("die-temp0")
integration_platforms:
- stm32f3_disco
- nucleo_h7a3zi_q
harness: console
harness_config:
... | /content/code_sandbox/samples/sensor/die_temp_polling/sample.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 126 |
```unknown
CONFIG_REQUIRES_FULL_LIBC=y
``` | /content/code_sandbox/samples/sensor/die_temp_polling/boards/mimxrt1050_evk.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/printk.h>
#define DIE_TEMP_ALIAS(i) DT_ALIAS(_CONCAT(die_temp, i))
#define DIE_TEMPERATURE_SENSOR(i, _) \
IF_ENABLED(DT_NODE_EXIST... | /content/code_sandbox/samples/sensor/die_temp_polling/src/main.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 388 |
```unknown
/*
*
*/
/ {
aliases {
die-temp0 = &temp;
};
};
``` | /content/code_sandbox/samples/sensor/die_temp_polling/boards/nrf52840dk_nrf52840.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 20 |
```unknown
/*
*
*/
&die_temp {
status = "okay";
};
``` | /content/code_sandbox/samples/sensor/die_temp_polling/boards/xmc47_relax_kit.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14 |
```unknown
/*
*
*/
/ {
aliases {
die-temp0 = &temp;
};
};
``` | /content/code_sandbox/samples/sensor/die_temp_polling/boards/nrf51dk_nrf51822.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 20 |
```unknown
CONFIG_ADC=y
``` | /content/code_sandbox/samples/sensor/die_temp_polling/boards/rpi_pico.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5 |
```unknown
/*
*
*
* Application overlay for creating temperature sensor device instance
*/
&coretemp {
status = "okay";
};
``` | /content/code_sandbox/samples/sensor/die_temp_polling/boards/esp32s2_saola.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 25 |
```unknown
CONFIG_REQUIRES_FULL_LIBC=y
``` | /content/code_sandbox/samples/sensor/die_temp_polling/boards/esp32s2_saola.conf | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9 |
```unknown
/*
*
*/
/ {
aliases {
die-temp0 = &die_temp;
};
};
&die_temp {
status = "okay";
};
&adc1 {
pinctrl-0 = <&adc1_in0_pa0>;
pinctrl-names = "default";
st,adc-prescaler = <4>;
status = "okay";
};
``` | /content/code_sandbox/samples/sensor/die_temp_polling/boards/nucleo_f756zg.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 73 |
```unknown
/*
*
*/
&tempmon {
status = "okay";
};
``` | /content/code_sandbox/samples/sensor/die_temp_polling/boards/mimxrt1050_evk.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14 |
```unknown
/*
*
*/
&die_temp {
status = "okay";
};
``` | /content/code_sandbox/samples/sensor/die_temp_polling/boards/xmc45_relax_kit.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14 |
```unknown
/*
*
*/
&die_temp {
status = "okay";
};
``` | /content/code_sandbox/samples/sensor/die_temp_polling/boards/rpi_pico.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 14 |
```unknown
/*
*
*
* Application overlay for enabling temperature sensor device instance
*/
&coretemp {
status = "okay";
};
``` | /content/code_sandbox/samples/sensor/die_temp_polling/boards/esp32s3_devkitm_procpu.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 25 |
```unknown
/*
*
*
* Application overlay for creating temperature sensor device instance
*/
/ {
aliases {
die-temp0 = &digi_die_temp;
};
};
&digi_die_temp {
status = "okay";
};
``` | /content/code_sandbox/samples/sensor/die_temp_polling/boards/nucleo_h7a3zi_q.overlay | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 46 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.