-- Objects

local displayMap = 	  { {1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1},	-- 0
						{0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1},	-- 1
						{1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1},	-- 2
						{1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1},	-- 3
						{1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1},	-- 4
						{1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1},	-- 5
						{1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1},	-- 6
						{1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1},	-- 7
						{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},	-- 8
						{1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1} }	-- 9

local blankPattern =	{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
local error_E = 		{1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1}
local error_R =			{0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0}
local noon_A =			{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1}
local noon_P =			{1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0}

local lightingService = game:GetService("Lighting")
local minsAfterMidnightVar = script.Parent.MinutesAfterMidnight
local msPerUpdateVar = script.MillisecondsPerUpdate
local isOnVar = script.Parent.isOn
local prevIsOn = true

local screen = script.Parent.Display.SurfaceGui.Screen
local hrsTens = script.Parent.Display.SurfaceGui.Screen.Hours10
local hrsOnes = script.Parent.Display.SurfaceGui.Screen.Hours1
local minsTens = script.Parent.Display.SurfaceGui.Screen.Minutes10
local minsOnes = script.Parent.Display.SurfaceGui.Screen.Minutes1
local noon = script.Parent.Display.SurfaceGui.Screen.Noon
