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
mmPython/mmProject.txt
- Committer:
- gatedClock
- Date:
- 2013-09-01
- Revision:
- 4:92539904a4ad
- Child:
- 8:db29cce17a33
File content as of revision 4:92539904a4ad:
#!/usr/bin/python -tt # tt: detect mixed space/tab. #---copyright-----------------------------------#------------------------------- # licensed for personal and academic use. # commercial use must be approved by the account-holder of # gated.clock@gmail.com #=======imports=================================#=============================== import os # import os library. import sys # import sys library. import usb.core # import PyUSB library. from Tkinter import * # Tk library. import ttk # from Tk library. import tkFileDialog # from Tk library. import pexpect # not needed here. import mmUI # specify file. from mmUI import * # specify module. #=======function================================#=============================== #=======main====================================#=============================== #-------parameters------------------------------#------------------------------- #-------locals----------------------------------#------------------------------- #-------execution-------------------------------#------------------------------- if (1): root = Tk() app = mmUI(root) root.mainloop() sys.exit(0) #-----------------------------------------------#-------------------------------