mirror of
https://github.com/kou029w/megabit.git
synced 2025-01-30 21:58:04 +00:00
docs: unit format
This commit is contained in:
parent
215649f60a
commit
d9be61a282
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ const { sht30 } = require("megabit");
|
|||
|
||||
async function measure() {
|
||||
const { humidity, temperature } = await sht30().read();
|
||||
console.log(`Humidity: ${humidity.toFixed(2)}%`);
|
||||
console.log(`Humidity: ${humidity.toFixed(2)} %`);
|
||||
console.log(`Temperature: ${temperature.toFixed(2)} ℃`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue