code: def minute_change(device):
      '''When we reach a minute change, animate it.'''
      hours = datetime.now().strftime('%H')
      minutes = datetime.now().strftime('%M')
  
      def helper(current_y):
          with canvas(device) as draw:
              text(draw, (0, 1), hours, fill="white", font=proportional(CP437_FONT))
              text(draw, (15, 1), ":", fill="white", font=proportional(TINY_FONT))
              text(draw, (17, current_y), minutes, fill="white", font=proportional(CP437_FONT))
          time.sleep(0.1)
      for current_y in range(1, 9):
          helper(current_y)
      minutes = datetime.now().strftime('%M')
      for current_y in range(9, 1, -1):
          helper(current_yf minute_change(device):
      '''When we reach a minute change, animate it.'''
      hours = datetime.now().strftime('%H')
      minutes = datetime.now().strftime('%M')
  
      def helper(current_y):
          with canvas(device) as draw:
              text(draw, (0, 1), hours, fill="white", font=proportional(CP437_FONT))
              text(draw, (15, 1), ":", fill="white", font=proportional(TINY_FONT))
              text(draw, (17, current_y), minutes, fill="white", font=proportional(CP437_FONT))
          time.sleep(0.1)
      for current_y in range(1, 9):
          helper(current_y)
      minutes = datetime.now().strftime('%M')
      for current_y in range(9, 1, -1):
          helper(current_y)
docs: When we reach a minute change, animate it.