en-us_commands:reference:irtcsquarewave
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en-us_commands:reference:irtcsquarewave [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1 | en-us_commands:reference:irtcsquarewave [2026/09/14 20:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| ===== Example ===== | ===== Example ===== | ||
| + | |||
| + | This example connects a DS3231 RTC module to the MPINO-16A8R8T I²C port. The RTC's 32 kHz and square-wave outputs use different pins. | ||
| <code cpp> | <code cpp> | ||
| void setup() { | void setup() { | ||
| - | if (!IrtcBegin()) return; | + | |
| - | + | | |
| - | // Output a 1Hz square wave on the INT/SQW terminal. | + | Serial.println(F(" |
| - | | + | |
| + | } | ||
| + | const bool configured = IrtcSquareWave(true, | ||
| + | | ||
| } | } | ||
| - | void loop() { | + | void loop() {} |
| - | } | + | |
| </ | </ | ||
| Line 30: | Line 34: | ||
| Run each device' | Run each device' | ||
| + | |||
| + | ===== Built-in Commands in the Same Category ===== | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| [[: | [[: | ||
en-us_commands/reference/irtcsquarewave.1788785568.txt.gz · Last modified: by 127.0.0.1
