parent
5e805bba83
commit
f6591008e2
|
@ -70,8 +70,8 @@ addr: string, the address of DS18B20. It will select the first address which be
|
|||
unit: integer, unit conversion. Only Constant is acceptable, such as C(Celsius),F(Fahrenheit) and K(Kelvin). If this parameter is nil, the constant C(Celsius) will be selected automatically. <br />
|
||||
|
||||
####Returns
|
||||
t1: 数值,温度的整数部分。如果读取失败返回nil.<br />
|
||||
t2: 数值,温度的小数部分。如果读取失败返回nil.<br />
|
||||
t1: integer. The integer part of the temperature. If it read fails, return nil. <br />
|
||||
t2: integer. The fractional part of the temperature. If it read fails, return nil. <br />
|
||||
|
||||
####Example
|
||||
```lua
|
||||
|
@ -111,7 +111,7 @@ addr: string, the address of DS18B20. It will select the first address which be
|
|||
unit: integer, unit conversion. Only Constant is acceptable, such as C(Celsius),F(Fahrenheit) and K(Kelvin). If this parameter is nil, the constant C(Celsius) will be selected automatically. <br />
|
||||
|
||||
####Returns
|
||||
t: 字符串,表示成字符串形式的温度。如果读取失败返回nil.<br />
|
||||
t: string. The string of the temperature. If it read fails, return nil.<br />
|
||||
|
||||
####Example
|
||||
```lua
|
||||
|
|
Loading…
Reference in New Issue