'Simple Binary Display Clock
'UniKorn ProDucKions 2020
'Last program of 2020 for me...
Clock&
= _NEWIMAGE(640, 400, 32) 'Clock Base LayerMix&
= _NEWIMAGE(640, 400, 32) 'Composite Layer'---Draw Clock Base---
Blank_Clock
'---------------------
_DEST Mix&
'draw only to mix layer
DO 'Run Our simple Binary Display Clock _PUTIMAGE , Clock&
, Mix&
'Place the blank clock '"Light up" the LEDs
Light_Hour_LEDs H$
Light_Minute_LEDs M$
Light_Second_LEDs S$
Light_MilliSecond_LEDs MS$
'-------------------
'------------------Blank LEDs---------------------
'-------------------------------------------------
'----------------------Headers---------------------
'--------------------------------------------------
SUB Light_Hour_LEDs
(Hour$
) 'tens LEDs
'Ones LEDs
SUB Light_Minute_LEDs
(Minute$
) 'tens LEDs
'Ones LEDs
SUB Light_Second_LEDs
(Second$
) 'tens LEDs
'Ones LEDs
SUB Light_MilliSecond_LEDs
(MilliSecond$
) 'tens LEDs
'Ones LEDs