USB Device Programming class project. This project allows a Python/Tk program running on a PC host to monitor/control a test-CPU programmed into an altera development board.

Dependencies:   C12832_lcd USBDevice mbed-rtos mbed mmSPI

Committer:
gatedClock
Date:
Sun Sep 01 22:02:19 2013 +0000
Revision:
12:d10f526ca443
Parent:
8:db29cce17a33
cpu add comments.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gatedClock 8:db29cce17a33 1 #!/usr/bin/python -tt # tt: detect mixed space/tab.
gatedClock 4:92539904a4ad 2 #---copyright-----------------------------------#-------------------------------
gatedClock 4:92539904a4ad 3 # licensed for personal and academic use.
gatedClock 4:92539904a4ad 4 # commercial use must be approved by the account-holder of
gatedClock 4:92539904a4ad 5 # gated.clock@gmail.com
gatedClock 4:92539904a4ad 6 #=======imports=================================#===============================
gatedClock 8:db29cce17a33 7 import os # import os library.
gatedClock 8:db29cce17a33 8 import sys # import sys library.
gatedClock 8:db29cce17a33 9 import usb.core # import PyUSB library.
gatedClock 8:db29cce17a33 10 from Tkinter import * # Tk library.
gatedClock 8:db29cce17a33 11 import ttk # from Tk library.
gatedClock 8:db29cce17a33 12 import tkFileDialog # from Tk library.
gatedClock 8:db29cce17a33 13 import pexpect # not needed here.
gatedClock 8:db29cce17a33 14 import mmUI # specify file.
gatedClock 8:db29cce17a33 15 from mmUI import * # specify module.
gatedClock 4:92539904a4ad 16 #=======function================================#===============================
gatedClock 4:92539904a4ad 17 #=======main====================================#===============================
gatedClock 4:92539904a4ad 18 #-------parameters------------------------------#-------------------------------
gatedClock 4:92539904a4ad 19 #-------locals----------------------------------#-------------------------------
gatedClock 4:92539904a4ad 20 #-------execution-------------------------------#-------------------------------
gatedClock 4:92539904a4ad 21 if (1):
gatedClock 4:92539904a4ad 22
gatedClock 8:db29cce17a33 23 root = Tk()
gatedClock 8:db29cce17a33 24 app = mmUI(root)
gatedClock 8:db29cce17a33 25 root.mainloop()
gatedClock 8:db29cce17a33 26 sys.exit(0)
gatedClock 4:92539904a4ad 27 #-----------------------------------------------#-------------------------------
gatedClock 4:92539904a4ad 28
gatedClock 8:db29cce17a33 29
gatedClock 8:db29cce17a33 30