Skip to content
Merged
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
5 changes: 0 additions & 5 deletions boards/st/sensortile_box_pro/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ Motion and environmental sensors
(`lps22df datasheet`_)
- **LIS2DU12** 3-axis accelerometer
(`lis2du12 datasheet`_)
- **HTS221** Humidity sensor
(`hts221 datasheet`_)
- **STTS22H** Digital temperature sensor
(`stts22hh datasheet`_)
- **MP23db01HP** Microphone / audio sensor
Expand Down Expand Up @@ -353,9 +351,6 @@ References
.. _lis2du12 datasheet:
https://www.st.com/en/mems-and-sensors/lis2du12.html

.. _hts221 datasheet:
https://www.st.com/en/mems-and-sensors/hts221.html

.. _stts22hh datasheet:
https://www.st.com/en/mems-and-sensors/stts22h.html

Expand Down
7 changes: 0 additions & 7 deletions boards/st/sensortile_box_pro/sensortile_box_pro.dts
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,6 @@ stm32_lp_tick_source: &lptim1 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;

hts221@5f {
compatible = "st,hts221";
reg = <0x5f>;
drdy-gpios = <&gpioe 11 GPIO_ACTIVE_HIGH>;
status = "okay";
};

lps22df@5d {
compatible = "st,lps22df";
reg = <0x5d>;
Expand Down
3 changes: 0 additions & 3 deletions samples/boards/sensortile_box_pro/sensors-on-board/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ This sample enables all sensors of SensorTile.box Pro board, and then
periodically reads and displays data on the console from the following
sensors:

- HTS221: ambient temperature and relative humidity
- LPS22DF: ambient temperature and atmospheric pressure
- LSM6DSV16X: 6-Axis acceleration and angular velocity
- LIS2DU12: 3-Axis acceleration
Expand Down Expand Up @@ -62,8 +61,6 @@ The sample code outputs sensors data on the SensorTile.box Pro console.

SensorTile.box Pro dashboard

HTS221: Temperature: 26.4 C
HTS221: Relative Humidity: 60.5%
LPS22DF: Temperature: 28.4 C
LPS22DF: Pressure:99.694 kpa
LSM6DSV16X: Accel (m.s-2): x: -0.158, y: 0.158, z: 9.811
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_GPIO=y
# config sensors
CONFIG_SENSOR=y
CONFIG_SENSOR_LOG_LEVEL_DBG=y
CONFIG_HTS221_TRIGGER_NONE=y
CONFIG_LPS2XDF_TRIGGER_OWN_THREAD=y
CONFIG_LSM6DSV16X_TRIGGER_OWN_THREAD=y
CONFIG_LIS2MDL_TRIGGER_OWN_THREAD=y
Expand Down
22 changes: 0 additions & 22 deletions samples/boards/sensortile_box_pro/sensors-on-board/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,17 +299,12 @@ int main(void)

printk("SensorTile.box Pro sensor test\n");

const struct device *const hts221 = DEVICE_DT_GET_ONE(st_hts221);
const struct device *const lps22df = DEVICE_DT_GET_ONE(st_lps22df);
const struct device *const lsm6dsv16x = DEVICE_DT_GET_ONE(st_lsm6dsv16x);
const struct device *const lis2mdl = DEVICE_DT_GET_ONE(st_lis2mdl);
const struct device *const lis2du12 = DEVICE_DT_GET_ONE(st_lis2du12);
const struct device *const stts22h = DEVICE_DT_GET_ONE(st_stts22h);

if (!device_is_ready(hts221)) {
printk("%s: device not ready.\n", hts221->name);
return 0;
}
if (!device_is_ready(lps22df)) {
printk("%s: device not ready.\n", lps22df->name);
return 0;
Expand Down Expand Up @@ -338,20 +333,13 @@ int main(void)
lsm6dsv16x_config(lsm6dsv16x);

while (1) {
struct sensor_value hts221_hum, hts221_temp;
struct sensor_value lps22df_press, lps22df_temp;
struct sensor_value lsm6dsv16x_accel[3], lsm6dsv16x_gyro[3];
struct sensor_value lis2mdl_magn[3];
struct sensor_value lis2mdl_temp;
struct sensor_value lis2du12_accel[3];
struct sensor_value stts22h_temp;

/* handle HTS221 sensor */
if (sensor_sample_fetch(hts221) < 0) {
printf("HTS221 Sensor sample update error\n");
return 0;
}

#ifndef CONFIG_LSM6DSV16X_TRIGGER
if (sensor_sample_fetch(lsm6dsv16x) < 0) {
printf("LSM6DSV16X Sensor sample update error\n");
Expand Down Expand Up @@ -387,8 +375,6 @@ int main(void)
}
#endif

sensor_channel_get(hts221, SENSOR_CHAN_HUMIDITY, &hts221_hum);
sensor_channel_get(hts221, SENSOR_CHAN_AMBIENT_TEMP, &hts221_temp);
sensor_channel_get(lps22df, SENSOR_CHAN_AMBIENT_TEMP, &lps22df_temp);
sensor_channel_get(lps22df, SENSOR_CHAN_PRESS, &lps22df_press);
sensor_channel_get(lsm6dsv16x, SENSOR_CHAN_ACCEL_XYZ, lsm6dsv16x_accel);
Expand All @@ -405,14 +391,6 @@ int main(void)

printf("SensorTile.box dashboard\n\n");

/* HTS221 temperature */
printf("HTS221: Temperature: %.1f C\n",
sensor_value_to_double(&hts221_temp));

/* HTS221 humidity */
printf("HTS221: Relative Humidity: %.1f%%\n",
sensor_value_to_double(&hts221_hum));

/* temperature */
printf("LPS22DF: Temperature: %.1f C\n",
sensor_value_to_double(&lps22df_temp));
Expand Down