@@ -0,0 +1,737 @@
+import os, sys%0A%0Aif os.path.isfile(%22/proc/device-tree/hat/product%22):%0A    file = open(%22/proc/device-tree/hat/product%22,%22r%22)%0A    hat = file.readline()%0A    if  hat == %22Sense HAT%5Cx00%22:%0A        print('Sense HAT detected')%0A        mypath = os.path.dirname(os.path.abspath(__file__))%0A        file.close()%0A        os.system(%22/usr/bin/env python %22 + mypath+%22/8x8grid-sense.py%22)%0A    elif hat == %22Unicorn HAT%5Cx00%22:%0A        print('Unicorn HAT detected')%0A        mypath = os.path.dirname(os.path.abspath(__file__))%0A        file.close()%0A        os.system(%22/usr/bin/env python %22 + mypath+%22/8x8grid-unicorn.py%22)%0A    else:%0A        print(%22Unknown HAT : %22 + str(hat))%0A        file.close()%0A        sys.exit()%0Aelse:%0A    print('No HAT detected')%0A    sys.exit()%0A

Create 8x8grid.py