Skip to content

Commit c744c8d

Browse files
author
Ladislav Krivý
committed
Add simple function for measuring temperature
1 parent 616c560 commit c744c8d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

API.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,3 +375,12 @@ byte b = LoRa.random();
375375
```
376376

377377
Returns random byte.
378+
379+
### Temperature
380+
381+
Measures chip temperature in °C (blocking, ~150μs)
382+
(uncalibrated accuracy ±10°C)
383+
384+
```
385+
int temp = LoRa.temperature();
386+
```

0 commit comments

Comments
 (0)