Adafruit Logo
0
  • SHOP
  • LEARN
  • BLOG
  • FORUMS
  • VIDEOS
  • IO
  • SIGN IN
  • CLOSE MENU
  • Shop
  • Learn
  • Blog
  • Forums
  • Videos
  • Adabox
  • IO
Sign In
0
Adafruit Logo
  • Explore & Learn
    GUIDE CATEGORIES
    (SEE ALL 1751)
    • ADABOX (48)
    • ADAFRUIT PRODUCTS (276)
    • ARDUINO COMPATIBLES (387)
    • BREAKOUT BOARDS (138)
    • CIRCUIT PLAYGROUND (231)
    • COLLIN'S LAB (8)
    • COMPONENTS (110)
    • COMMUNITY SUPPORT (23)
    • CUSTOMER & PARTNER PROJECTS (31)
    • DEVELOPMENT BOARDS (54)
    • EDUCATORS (33)
    • EL WIRE/TAPE/PANEL (13)
    • FEATHER (183)
    • HACKS (49)
    • INTERNET OF THINGS - IOT (158)
    • LCDS & DISPLAYS (182)
    • LEDS (365)
    • MAKER BUSINESS (34)
    • MICRO:BIT (11)
    • MICROCONTROLLERS (322)
    • PROGRAMMING (192)
    • PROJECTS (215)
    • RASPBERRY PI (354)
    • ROBOTICS & CNC (84)
    • SENSORS (356)
    • TOOLS (64)
    • WEARABLES (231)
    • 3D PRINTING (292)
    • CRICKIT (47)
    • MAKECODE (110)
    • TRELLIS (31)
    NEW GUIDES
    (SEE ALL 106)
    • Wireless Dual Stepper Control with Adafruit IO, Raspberry Pi and Python WIRELESS DUAL STEPPER CONTROL WITH ADAFRUIT IO, RASPBERRY PI AND PYTHON
    • CircuitPython BLE Crickit Rover CIRCUITPYTHON BLE CRICKIT ROVER
    • Portable PyPortal PORTABLE PYPORTAL
    • CircuitScheme - Lisp on CircuitPython CIRCUITSCHEME - LISP ON CIRCUITPYTHON
    FEATURED GUIDES
    (SEE ALL 29)
    • Sensor Plotting with Mu and CircuitPython SENSOR PLOTTING WITH MU AND CIRCUITPYTHON
    • CircuitPython on Linux and Raspberry Pi CIRCUITPYTHON ON LINUX AND RASPBERRY PI
    • Adafruit IO Environmental Monitor for Feather or Raspberry Pi ADAFRUIT IO ENVIRONMENTAL MONITOR FOR FEATHER OR RASPBERRY PI
    • Cartoon Network MakeCode: Garnet's Palm Gems from Steven Universe CARTOON NETWORK MAKECODE: GARNET'S PALM GEMS FROM STEVEN UNIVERSE

Circuit Playground Hourglass

Like sands through the hourglass, so are the 1s and 0s of your Circuit Playground.
  • Overview
  • Arduino
    • Basic Timer
    • Less Basic Timer
    • Flip Detect
    • Basic Hourglass
    • Fading Hourglass
  • CircuitPython
    • Basic Timer
    • Less Basic Timer
    • Flip Detect
    • Basic Hourglass
    • Fading Hourglass
  • Questions and Code Challenges
  • Featured Products
  • Single Page
  • Download PDF

Contributors

Carter Nelson
Feedback? Corrections?
CIRCUIT PLAYGROUND / CLASSIC CIRCUIT PLAYGROUND / EXPRESS

CircuitPython

by Carter Nelson

CircuitPython versions of the code are provided on the following pages.

CircuitPython only works on the Circuit Playground Express.
FADING HOURGLASS BASIC TIMER
This guide was first published on Dec 29, 2016. It was last updated on Dec 29, 2016. This page (CircuitPython) was last updated on Jan 24, 2018.
Your browser does not support the video tag.
Circuit Playground Express
$24.95
Add to Cart
Your browser does not support the video tag.
Circuit Playground Classic
$19.95
Add to Cart
3 x AAA Battery Holder with On/Off Switch and 2-Pin JST
$1.95
Add to Cart

Related Guides

Your browser does not support the video tag.
Build a paper craft hack a day logo powered by Circuit Playground!
Spinning Logo
by Ruiz Brothers
Sit up straight, or Circuit Playground will let you know!
Circuit Playground Slouch Detector
by Carter Nelson
Where are those hidden Circuit Playground Express treasures?
Circuit Playground Express Treasure Hunt
by Carter Nelson
Your browser does not support the video tag.
Halloween Masquerade Magic with NeoPixels
Glowing Mirror Mask
by Erin St Blaine
×
OUT OF STOCK NOTIFICATION

You have been successfully subscribed to the Notification List for this product and will therefore receive an e-mail from us when it is back in stock!

For security reasons, an e-mail has been sent to you acknowledging your subscription. Please remember that this subscription will not result in you receiving any e-mail from us about anything other than the restocking of this item.

If, for any reason, you would like to unsubscribe from the Notification List for this product you will find details of how to do so in the e-mail that has just been sent to you!

CLOSE NOTIFY ME
  • CONTACT
  • SUPPORT
  • DISTRIBUTORS
  • EDUCATORS
  • JOBS
  • FAQ
  • SHIPPING & RETURNS
  • TERMS OF SERVICE
  • PRIVACY & LEGAL
  • ABOUT US
ENGINEERED IN NYC Adafruit ®
"Be quick, but don't hurry" - John Wooden