Countdown to Something New

Eventually, the timer will reach zero, and your event will start. What can you do with your countdown timer after that? Count down to another event!

There are two things you can easily customise in the example code: event info, and scroll speed.

Event Info

At the top of the example code, you'll find a list of variables. These are used to determine the future event date, and subsequently how much time should show on the timer as the event gets closer. You can change these to any future date, and update the event name and message to match your countdown.

  • EVENT_YEAR - The year of your event, using the full 4-digit year number.
  • EVENT_MONTH - The month of your event.
  • EVENT_DAY - The day of your event.
  • EVENT_HOUR - The hour part of the time of your event, if it has a specific time. Otherwise, for an all-day event, you can leave this at 0.
  • EVENT_MINUTE - The minute part of the time of your event, if it has a specific time. Otherwise, for an all-day event, you can leave this at 0.
  • EVENT_NAME - The name of your event. Must be wrapped in ".
  • EVENT_MSG - The message you would like to display when it's time for the event. Must be wrapped in ".
EVENT_YEAR = 2022
EVENT_MONTH = 12
EVENT_DAY = 25
EVENT_HOUR = 0
EVENT_MINUTE = 0
EVENT_NAME = "Christmas"
EVENT_MSG = "Merry Christmas * "

Scroll Speed

This sets the amount of time each character is shown on the right-most segment of the three displays before the it is bumped one to the left and the next character is displayed. More simply, it controls the speed at which text scrolls on the display.

Increase the value to slow down the scrolling. Decrease the value to speed up the scrolling. It can be any value 0 or above, including both integers and floats. That said, 0 is too fast to read, and 1 takes forever. Keep that in mind, and find a speed that works for you!

scroll_speed = 0.25

This guide was first published on Dec 20, 2022. It was last updated on Jan 07, 2023.

This page (Usage) was last updated on Dec 21, 2022.

Text editor powered by tinymce.