lm75 LM75 Temperature
The lm75 command reads temperature data from an LM75 (or compatible)
I2C temperature sensor and prints the result to standard output. The
sensor must be enabled via CONFIG_LM75_I2C.
Configuration
Enable the command with CONFIG_SYSTEM_LM75. This option depends on
CONFIG_LM75_I2C.
The following configuration options are available:
CONFIG_SYSTEM_LM75_DEVNAMESensor device path. Default:
/dev/temp.CONFIG_SYSTEM_LM75_FAHRENHEITDisplay temperature in degrees Fahrenheit. This is the default.
CONFIG_SYSTEM_LM75_CELSIUSDisplay temperature in degrees Celsius.
CONFIG_SYSTEM_LM75_STACKSIZEStack size in bytes. Default: 1024.
CONFIG_SYSTEM_LM75_PRIORITYCommand task priority. Default: 100.
Usage
temp [OPTIONS]
Options
-n <count>Number of temperature samples to collect. Each sample is read with a 500 ms interval. Default: 1.
-hShow help message and exit.
Examples
Read a single temperature sample:
nsh> temp
72.50 degrees Fahrenheit
Read five consecutive samples:
nsh> temp -n 5
72.50 degrees Fahrenheit
72.54 degrees Fahrenheit
72.60 degrees Fahrenheit
72.58 degrees Fahrenheit
72.52 degrees Fahrenheit
If CONFIG_SYSTEM_LM75_CELSIUS is selected instead of Fahrenheit,
the output displays degrees Celsius:
nsh> temp
22.50 degrees Celsius