aboutsummaryrefslogtreecommitdiff
path: root/turtetris_master/__init__.py
blob: 401accba7655472fe1efaeb7c097ac4f2ed0932c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import time
from .led_output import Matrix
from .usb_input import Gamepad


def main():
    "Main function"
    inpt = Gamepad()
    print('Gamepad initialized')
    mtrx = Matrix()
    print('Matrix initialized')
    while True:
        print('loop!!!!')
        print(inpt.check())
        mtrx.display()
        time.sleep(1)


if __name__ == '__main__':
    main()