Files
learngo/15-project-retro-led-clock
2021-06-08 11:19:26 +03:00
..
2019-10-30 19:41:13 +03:00
2019-10-30 19:41:13 +03:00
2019-10-30 19:41:13 +03:00
2021-06-08 11:19:26 +03:00
2019-01-29 19:56:18 +03:00

NOTES

  • I've explained the challenges and the solutions step by step
  • So, if you get stuck, you can check out the next step without having to look at the entire final solution
  • You can find the explanations and solutions by clicking on the header links below

GET SOCIAL


GOALS:

👉 STEP #1 — Print the Digits

  • Define a new placeholder type
  • Create the digit arrays from 0 to 9
  • Put them into the "digits" array
  • Print them side-by-side

👉 STEP #2 — Print the Clock

  • Get the current time
  • Create the clock array
  • Print the clock
  • Add the separators

👉 STEP #3 — Animate the Clock

  • Create an infinite loop to update the clock
  • Update the clock every second
  • Clear the screen before the infinite loop
  • Move the cursor to the top-left corner of the screen before each step of the infinite loop
  • Blink the separators

👉 FULL ANNOTATED SOLUTION