from tkinter import *
import tkinter as tk
#ARM Cortex M0",48,16,2,16,1,5,2,1,1,1,8,0,0,"QFN20"
mc_list={
1: {
'id':'MM32f003NW',
'processor':'ARM Cortex M0',
'frequency':'48',
'flash':'16',
'ram':'2',
"gpio":"16",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"8x12bit",
"eeprom":"0",
"pack":"QFN20",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
2:{
"id":"MM32f003TW",
"processor":"ARM Cortex M0",
"frequency":"48",
"flash":"16",
"ram":"2",
"gpio":"16",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"-",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"8x12bit",
"eeprom":"0",
"pack":"TSSOP20",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
#MM32f031 controller started
3:{
"id":"MM32F031F4P6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"16",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"-",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"9x12bit",
"eeprom":"",
"pack":"TSSOP20",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
4:{
"id":"MM32F031F4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"16",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"9x12bit",
"eeprom":"",
"pack":"QFN20",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
5:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
6:{
"id":"MM32f031K4T6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"25",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"-",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"-",
"pack":"LQFP32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
7:{
"id":"MM32f031C4T6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"39",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
8:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
9:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
10:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
11:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
12:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
13:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
14:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
15:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
16:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
}, 17:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
18:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
############################################################################
##------------------MM32F032-----
##-------------total 8 controllers available------
#############################################################################
19:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
20:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
21:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
22:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
23:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
24:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
25:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
26:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
}
}
def micro_controller_details():
row_items=1
d=1
for i in range(0,26):
microcontroller=Label(master,text=mc_list[d]['id'],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=0,sticky=N+S+E+W)
processor=Label(master,text=mc_list[d]['processor'],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=1,sticky=N+S+E+W)
frequency=Label(master,text=mc_list[d]['frequency'],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=2,sticky=N+S+E+W)
flash=Label(master,text=mc_list[d]["flash"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=3,sticky=N+S+E+W)
ram=Label(master,text=mc_list[d]["ram"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=4,sticky=N+S+E+W)
gpio=Label(master,text=mc_list[d]["gpio"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=5,sticky=N+S+E+W)
adv_tm=Label(master,text=mc_list[d]["adv_tm"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=6,sticky=N+S+E+W)
gptm=Label(master,text=mc_list[d]["gptm"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=7,sticky=N+S+E+W)
wdg=Label(master,text=mc_list[d]["wdg"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=8,sticky=N+S+E+W)
rtc=Label(master,text=mc_list[d]["rtc"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=9,sticky=N+S+E+W)
uart=Label(master,text=mc_list[d]["uart"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=10,sticky=N+S+E+W)
i2c=Label(master,text=mc_list[d]["i2c"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=11,sticky=N+S+E+W)
spi=Label(master,text=mc_list[d]["spi"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=12,sticky=N+S+E+W)
adc=Label(master,text=mc_list[d]["adc"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=13,sticky=N+S+E+W)
eeprom=Label(master,text=mc_list[d]["eeprom"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=14,sticky=N+S+E+W)
pack=Label(master,text=mc_list[d]["pack"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=15,sticky=N+S+E+W)
dac=Label(master,text=mc_list[d]["dac"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=16,sticky=N+S+E+W)
usb=Label(master,text=mc_list[d]["usb"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=17,sticky=N+S+E+W)
can=Label(master,text=mc_list[d]["can"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=18,sticky=N+S+E+W)
sdio=Label(master,text=mc_list[d]["sdio"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=19,sticky=N+S+E+W)
comp=Label(master,text=mc_list[d]["comp"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=20,sticky=N+S+E+W)
aes=Label(master,text=mc_list[d]["aes"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=21,sticky=N+S+E+W)
trng=Label(master,text=mc_list[d]["trng"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=22,sticky=N+S+E+W)
row_items=row_items+1
d=d+1
'''def details(processor,frequency,flash,ram,gpio,adv_tm,gptm,wdg,rtc,uart,i2c,spi,adc,eeprom="-",pack="-",dac="-",usb="",can="",sdio=0,comp=0,aes=0,trng=0,**para):
T.insert(tk.END, "===========================================================================\n")
T.insert(tk.END, "Max speed in hz\t\tFLASH\t\tRAM\t\tGPIO\n")
T.insert(tk.END, "=========================================================================\n")
T.insert(tk.END,"PROCESSOR::======>{}\n".format(processor))
T.insert(tk.END,"Frequency Max speed ::====>{}Mhz\n".format(frequency))
T.insert(tk.END,"FLASH::====>{}KBytes\n".format(flash))
T.insert(tk.END,"RAM::====>{}KBytes\n".format(ram))
T.insert(tk.END,"GPIO::====>{}Pins\n".format(gpio))
T.insert(tk.END,"Advanced timer::====>{}\n".format(adv_tm))
T.insert(tk.END,"GPTM::====>{}\n".format(gptm))
T.insert(tk.END,"WDG::====>{}\n".format(wdg))
T.insert(tk.END,"RTC::====>{}\n".format(rtc))
T.insert(tk.END,"UART::====>{}\n".format(uart))
T.insert(tk.END,"I2C::====>{}\n".format(i2c))
T.insert(tk.END,"SPI::====>{}\n".format(spi))
T.insert(tk.END,"ADC::====>{}x12bit\n".format(adc))
T.insert(tk.END,"EEPROM::====>{}KBytes\n".format(eeprom))
T.insert(tk.END,"PACk::====>{}\n".format(pack))
T.insert(tk.END,"DAC::====>{}\n".format(dac))
T.insert(tk.END,"USB::====>{}\n".format(usb))
T.insert(tk.END,"CAN::====>{}\n".format(can))
T.insert(tk.END,"SDIO::====>{}\n".format(sdio))
T.insert(tk.END,"COMP::====>{}\n".format(comp))
T.insert(tk.END,"AES::====>{}\n".format(aes))
T.insert(tk.END,"TRNG::====>{}\n".format(trng))
T.insert(tk.END,"===========================================================================\n")
'''
#####------------------main program start_here-----------------
master = tk.Tk()
#scrollbar = Scrollbar(master)
#scrollbar.grid( side = RIGHT, fill=Y )
#mylist = Listbox(master, yscrollcommand = scrollbar.set )
microcontroller=Label(master,text="microcontroller",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=0,sticky=N+S+E+W)
processor=Label(master,text="Processor",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=1,sticky=N+S+E+W)
frequency=Label(master,text="Frequency",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=2,sticky=N+S+E+W)
flash=Label(master,text="Flash",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=3,sticky=N+S+E+W)
ram=Label(master,text="RAM",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=4,sticky=N+S+E+W)
gpio=Label(master,text="GPIO",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=5,sticky=N+S+E+W)
adv_tm=Label(master,text="Adv TM",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=6,sticky=N+S+E+W)
gptm=Label(master,text="GPTM",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=7,sticky=N+S+E+W)
wdg=Label(master,text="WDG",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=8,sticky=N+S+E+W)
rtc=Label(master,text="RTC",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=9,sticky=N+S+E+W)
uart=Label(master,text="UART",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=10,sticky=N+S+E+W)
i2c=Label(master,text="I2C",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=11,sticky=N+S+E+W)
spi=Label(master,text="SPI",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=12,sticky=N+S+E+W)
adc=Label(master,text="ADC",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=13,sticky=N+S+E+W)
eeprom=Label(master,text="EEPROM",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=14,sticky=N+S+E+W)
pack=Label(master,text="PACK",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=15,sticky=N+S+E+W)
dac=Label(master,text="DAC",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=16,sticky=N+S+E+W)
usb=Label(master,text="USB",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=17,sticky=N+S+E+W)
can=Label(master,text="CAN",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=18,sticky=N+S+E+W)
sdio=Label(master,text="SDIO",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=19,sticky=N+S+E+W)
comp=Label(master,text="COMP",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=20,sticky=N+S+E+W)
aes=Label(master,text="AES",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=21,sticky=N+S+E+W)
trng=Label(master,text="TRNG",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=22,sticky=N+S+E+W)
#micro_controller_details(1)
#micro_controller_details(2)
micro_controller_details()
#mylist.pack( side = LEFT, fill = BOTH )
#scrollbar.config( command = mylist.yview )
tk.mainloop()
print(mc_list)
#print(mc_list[2])
print("end of the program\n")
import tkinter as tk
#ARM Cortex M0",48,16,2,16,1,5,2,1,1,1,8,0,0,"QFN20"
mc_list={
1: {
'id':'MM32f003NW',
'processor':'ARM Cortex M0',
'frequency':'48',
'flash':'16',
'ram':'2',
"gpio":"16",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"8x12bit",
"eeprom":"0",
"pack":"QFN20",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
2:{
"id":"MM32f003TW",
"processor":"ARM Cortex M0",
"frequency":"48",
"flash":"16",
"ram":"2",
"gpio":"16",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"-",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"8x12bit",
"eeprom":"0",
"pack":"TSSOP20",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
#MM32f031 controller started
3:{
"id":"MM32F031F4P6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"16",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"-",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"9x12bit",
"eeprom":"",
"pack":"TSSOP20",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
4:{
"id":"MM32F031F4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"16",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"9x12bit",
"eeprom":"",
"pack":"QFN20",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
5:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
6:{
"id":"MM32f031K4T6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"25",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"-",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"-",
"pack":"LQFP32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
7:{
"id":"MM32f031C4T6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"39",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
8:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
9:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
10:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
11:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
12:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
13:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
14:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
15:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
16:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
}, 17:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
18:{
"id":"MM32f031K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
############################################################################
##------------------MM32F032-----
##-------------total 8 controllers available------
#############################################################################
19:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
20:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
21:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
22:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
23:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
24:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
25:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
},
26:{
"id":"MM32f032K4U6",
"processor":"ARM Cortex M0",
"frequency":"72",
"flash":"16",
"ram":"4",
"gpio":"27",
"adv_tm":"1",
"gptm":"5",
"wdg":"2",
"rtc":"",
"uart":"1",
"i2c":"1",
"spi":"1",
"adc":"10x12bit",
"eeprom":"",
"pack":"QFN32",
"dac":"",
"usb":"",
"can":"",
"sdio":"",
"comp":"",
"aes":"",
"trng":""
}
}
def micro_controller_details():
row_items=1
d=1
for i in range(0,26):
microcontroller=Label(master,text=mc_list[d]['id'],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=0,sticky=N+S+E+W)
processor=Label(master,text=mc_list[d]['processor'],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=1,sticky=N+S+E+W)
frequency=Label(master,text=mc_list[d]['frequency'],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=2,sticky=N+S+E+W)
flash=Label(master,text=mc_list[d]["flash"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=3,sticky=N+S+E+W)
ram=Label(master,text=mc_list[d]["ram"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=4,sticky=N+S+E+W)
gpio=Label(master,text=mc_list[d]["gpio"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=5,sticky=N+S+E+W)
adv_tm=Label(master,text=mc_list[d]["adv_tm"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=6,sticky=N+S+E+W)
gptm=Label(master,text=mc_list[d]["gptm"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=7,sticky=N+S+E+W)
wdg=Label(master,text=mc_list[d]["wdg"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=8,sticky=N+S+E+W)
rtc=Label(master,text=mc_list[d]["rtc"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=9,sticky=N+S+E+W)
uart=Label(master,text=mc_list[d]["uart"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=10,sticky=N+S+E+W)
i2c=Label(master,text=mc_list[d]["i2c"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=11,sticky=N+S+E+W)
spi=Label(master,text=mc_list[d]["spi"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=12,sticky=N+S+E+W)
adc=Label(master,text=mc_list[d]["adc"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=13,sticky=N+S+E+W)
eeprom=Label(master,text=mc_list[d]["eeprom"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=14,sticky=N+S+E+W)
pack=Label(master,text=mc_list[d]["pack"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=15,sticky=N+S+E+W)
dac=Label(master,text=mc_list[d]["dac"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=16,sticky=N+S+E+W)
usb=Label(master,text=mc_list[d]["usb"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=17,sticky=N+S+E+W)
can=Label(master,text=mc_list[d]["can"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=18,sticky=N+S+E+W)
sdio=Label(master,text=mc_list[d]["sdio"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=19,sticky=N+S+E+W)
comp=Label(master,text=mc_list[d]["comp"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=20,sticky=N+S+E+W)
aes=Label(master,text=mc_list[d]["aes"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=21,sticky=N+S+E+W)
trng=Label(master,text=mc_list[d]["trng"],bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=row_items,column=22,sticky=N+S+E+W)
row_items=row_items+1
d=d+1
'''def details(processor,frequency,flash,ram,gpio,adv_tm,gptm,wdg,rtc,uart,i2c,spi,adc,eeprom="-",pack="-",dac="-",usb="",can="",sdio=0,comp=0,aes=0,trng=0,**para):
T.insert(tk.END, "===========================================================================\n")
T.insert(tk.END, "Max speed in hz\t\tFLASH\t\tRAM\t\tGPIO\n")
T.insert(tk.END, "=========================================================================\n")
T.insert(tk.END,"PROCESSOR::======>{}\n".format(processor))
T.insert(tk.END,"Frequency Max speed ::====>{}Mhz\n".format(frequency))
T.insert(tk.END,"FLASH::====>{}KBytes\n".format(flash))
T.insert(tk.END,"RAM::====>{}KBytes\n".format(ram))
T.insert(tk.END,"GPIO::====>{}Pins\n".format(gpio))
T.insert(tk.END,"Advanced timer::====>{}\n".format(adv_tm))
T.insert(tk.END,"GPTM::====>{}\n".format(gptm))
T.insert(tk.END,"WDG::====>{}\n".format(wdg))
T.insert(tk.END,"RTC::====>{}\n".format(rtc))
T.insert(tk.END,"UART::====>{}\n".format(uart))
T.insert(tk.END,"I2C::====>{}\n".format(i2c))
T.insert(tk.END,"SPI::====>{}\n".format(spi))
T.insert(tk.END,"ADC::====>{}x12bit\n".format(adc))
T.insert(tk.END,"EEPROM::====>{}KBytes\n".format(eeprom))
T.insert(tk.END,"PACk::====>{}\n".format(pack))
T.insert(tk.END,"DAC::====>{}\n".format(dac))
T.insert(tk.END,"USB::====>{}\n".format(usb))
T.insert(tk.END,"CAN::====>{}\n".format(can))
T.insert(tk.END,"SDIO::====>{}\n".format(sdio))
T.insert(tk.END,"COMP::====>{}\n".format(comp))
T.insert(tk.END,"AES::====>{}\n".format(aes))
T.insert(tk.END,"TRNG::====>{}\n".format(trng))
T.insert(tk.END,"===========================================================================\n")
'''
#####------------------main program start_here-----------------
master = tk.Tk()
#scrollbar = Scrollbar(master)
#scrollbar.grid( side = RIGHT, fill=Y )
#mylist = Listbox(master, yscrollcommand = scrollbar.set )
microcontroller=Label(master,text="microcontroller",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=0,sticky=N+S+E+W)
processor=Label(master,text="Processor",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=1,sticky=N+S+E+W)
frequency=Label(master,text="Frequency",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=2,sticky=N+S+E+W)
flash=Label(master,text="Flash",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=3,sticky=N+S+E+W)
ram=Label(master,text="RAM",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=4,sticky=N+S+E+W)
gpio=Label(master,text="GPIO",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=5,sticky=N+S+E+W)
adv_tm=Label(master,text="Adv TM",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=6,sticky=N+S+E+W)
gptm=Label(master,text="GPTM",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=7,sticky=N+S+E+W)
wdg=Label(master,text="WDG",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=8,sticky=N+S+E+W)
rtc=Label(master,text="RTC",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=9,sticky=N+S+E+W)
uart=Label(master,text="UART",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=10,sticky=N+S+E+W)
i2c=Label(master,text="I2C",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=11,sticky=N+S+E+W)
spi=Label(master,text="SPI",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=12,sticky=N+S+E+W)
adc=Label(master,text="ADC",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=13,sticky=N+S+E+W)
eeprom=Label(master,text="EEPROM",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=14,sticky=N+S+E+W)
pack=Label(master,text="PACK",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=15,sticky=N+S+E+W)
dac=Label(master,text="DAC",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=16,sticky=N+S+E+W)
usb=Label(master,text="USB",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=17,sticky=N+S+E+W)
can=Label(master,text="CAN",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=18,sticky=N+S+E+W)
sdio=Label(master,text="SDIO",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=19,sticky=N+S+E+W)
comp=Label(master,text="COMP",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=20,sticky=N+S+E+W)
aes=Label(master,text="AES",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=21,sticky=N+S+E+W)
trng=Label(master,text="TRNG",bg="#142E54",fg="white",font="Lato 12 bold",padx="5",pady="5",borderwidth=2,relief="groove").grid(row=0,column=22,sticky=N+S+E+W)
#micro_controller_details(1)
#micro_controller_details(2)
micro_controller_details()
#mylist.pack( side = LEFT, fill = BOTH )
#scrollbar.config( command = mylist.yview )
tk.mainloop()
print(mc_list)
#print(mc_list[2])
print("end of the program\n")
No comments:
Post a Comment