1
0
Fork 0
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:
Nebel 2021-07-25 00:24:21 +09:00 committed by GitHub
parent 215649f60a
commit d9be61a282
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)} ℃`);
}