Skip to content

Commit 2f77ea6

Browse files
Update README.md
1 parent 1bc5437 commit 2f77ea6

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1-
# moonPhase
1+
### moonPhase
22

33
An ESP32 library to get the moon phase angle and percentage of the moon that is illuminated.
44

5-
#### Usage:
5+
#### Usage
66

77
1. Download the latest release and unpack in the esp32 `libraries` folder.
88
2. Restart the Arduino IDE.
99

10-
#### Example code:
10+
|function | result |
11+
|:-----------------|:-------------------------------------|
12+
| `getPhase()` | Get the current moon phase.<br>( First set freeRTOS system time ) |
13+
| `getPhase( time_t t )` | Get the moon phase at time `t`. |
14+
15+
#### Example code
16+
1117
````c++
1218
#include <moonPhase.h>
1319

0 commit comments

Comments
 (0)