#!/usr/bin/env python3 # ---------------------------------------------------------------------------- # "THE BEER-WARE LICENSE" (Revision 42): # wrote this file. As long as you retain this notice # you can do whatever you want with this stuff. If we meet some day, and you # think this stuff is worth it, you can buy me a beer in return. Thomas Buck # ---------------------------------------------------------------------------- import platform def isPi(): return platform.machine() == "armv7l" def getTarget(): t = None if isPi(): from pi import PiMatrix t = PiMatrix() else: from test import TestGUI t = TestGUI() return t