Skip to content

SquareWave.ino

Arnd edited this page Dec 11, 2020 · 2 revisions

Sample Arduino sketch to demonstrate setting and using the two alarms on the MCP7940. For a detailed breadboard setup description see the SetAndCalibrate.ino page.

Program Overview

The sketch sets the multifunction pin MFP to a square wave with 1Hz (once a second) and links the MFP pin to the Arduino's on board LED to get it to blink every second. The square wave is turned off after 10 seconds.

Clone this wiki locally