Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Document incomplete nature of "p08_DigitalHourglass"
The sketches under the "10.StarterKit_BasicKit" folder are provided to accompany the Arduino Projects Book of the
Arduino Starter Kit. The Arduino Projects Book explains the code of these sketches and gives instructions for their
usage.

In addition to owners of the Arduino Starter Kit, other users might use these prominent sketches as learning references.
Those users won't have the context that would be provided by the Arduino Projects Book. For this reason, explanatory
comments have been added to these sketches.

The "p08_DigitalHourglass" is unique in that it is intentionally left incomplete. The Arduino Projects Book instructs
the user to add their own code to indicate the completion of the timer. It is important that this code be added, since
the incomplete code does not halt the LED control code at the end of the hour. If the incomplete code is used unchanged,
the LED control code will call `digitalWrite` on additional pins.

Previously, the comments in the sketch did not explain the incomplete nature of the sketch. Comments are hereby added to
explain this to users who don't have the context provided by the Arduino Projects Book.
  • Loading branch information
per1234 committed Feb 16, 2025
commit e695e8e3fc0f4ebe4df49ebf25fceccda9528a97
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
- six LEDs
- tilt switch

NOTE: This sketch is intentionally incomplete. Make sure to add your own code
for whatever you want to happen at the end of the hour.

created 13 Sep 2012
by Scott Fitzgerald

Expand Down Expand Up @@ -55,6 +58,7 @@ void loop() {

if (led == 7) {
// the hour is up
// add your indicator code here
}
}

Expand Down
Loading