ScratchData LogoScratchData
Back to jpcaldwell's profile

7 segment clock

JPjpcaldwell•Created July 14, 2018
7 segment clock
9
3
724 views
View on Scratch

Description

I had a lot of fun with this one. I started out with an analog clock, but decided it might be more fun to try and replicate a classic LED 7 segement display based clock. The toughest part of getting this right is trying to create a 2d array for the truth table that dictates which combination of LEDs to use for each number. While I couldn't create a true 2d array, I got around the limitation by storing an array of strings and then using each character of the strings to represent an LED in the display.

Project Details

Project ID236406641
CreatedJuly 14, 2018
Last ModifiedJuly 15, 2018
SharedJuly 15, 2018
Visibilityvisible
CommentsAllowed