@@ -0,0 +1,1173 @@
+#!/usr/bin/python%0A%0Aimport time%0Aimport datetime%0A%0Afrom Adafruit_LED_Backpack import SevenSegment%0A%0A# ===========================================================================%0A# Clock Example%0A# ===========================================================================%0Asegment = SevenSegment.SevenSegment(address=0x70)%0A%0A# Initialize the display. Must be called once before using the display.%0Asegment.begin()%0A%0Aprint %22Press CTRL+Z to exit%22%0A%0A# Continually update the time on a 4 char, 7-segment display%0Awhile(True):%0A  now = datetime.datetime.now()%0A  hour = now.hour%0A  minute = now.minute%0A  second = now.second%0A%0A  segment.clear()%0A  # Set hours%0A  segment.set_digit(0, int(hour / 10))     # Tens%0A  segment.set_digit(1, hour %25 10)          # Ones%0A  # Set minutes%0A  segment.set_digit(2, int(minute / 10))   # Tens%0A  segment.set_digit(3, minute %25 10)        # Ones%0A  # Toggle colon%0A  segment.set_colon(second %25 2)              # Toggle colon at 1Hz%0A%0A  # Write the display buffer to the hardware.  This must be called to%0A  # update the actual display LEDs.%0A  segment.write_display()%0A%0A  # Wait a quarter second (less than 1 second to prevent colon blinking getting$%0A  time.sleep(0.25)%0A

Create ex_7segment_clock.py