Creating a binary clock in CL

Is it possible to create a binary clock, like a clock that toggles from 1 to 0 in CL? I was thinking something like this (I would put this inside a Note Component):

c = mod(button.timeSincePressed, 2)
clock = when (c = 0) 1 otherwise 0
content: "${clock}"

Again, just like some of my other questions, this is just out of curiosity and probably not going to be very useful in an activity.

After about 1 hour of debugging, I have done it!
BINARY CLOCK

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.