コード例 #1
0
ファイル: obdmenubasic.py プロジェクト: zanderman/OBD-API
		print(Decoder.Menu09())
		
	elif (number == "0A"):
		print(Decoder.Menu0A())
		
	elif (number == "MENU"):
		print(Decoder.MainMenu())
	elif (number == "EXIT"):
		cont = 0
	elif (number.startswith('SEND')):
		temp = number.split()
		print(Decoder.SendOBD(temp[1]))
	elif (number == "VIN"):
		print(Decoder.getVIN())
	elif (number == "RPM"):
		print(Decoder.getRPM())
	elif (number == "CMV"):
		print(Decoder.getControlModuleVoltage())
	elif (number == "TSES"):
		print(Decoder.getTimeSinceEngineStart())
	elif (number == "DTWM"):
		print(Decoder.getDistTraveledWithMIL())
	elif (number == "NWSCC"):
		print(Decoder.getNumberofWarmupsSinceCodesCleared())
	elif (number == "SPEED"):
		print(Decoder.getSpeed())
	elif (number == "DTSCC"):
		print(Decoder.getDistTraveledSinceCodesCleared())
	elif (number == "TRWM"):
		print(Decoder.getTimeRunWithMIL())
	elif (number == "TSTCC"):
コード例 #2
0
ファイル: tkinterGui.py プロジェクト: zanderman/OBD-API
def startRefresh():
    while(1):
        speed.set(Decoder.getSpeed())
        rpm.set(Decoder.getRPM())
        sleep(0.5)