예제 #1
0
	def readCustomBoards(self):
		custom = []
		p = prefs.preferences()
		d = os.path.join(p.getValue("sketchbook.path"), "hardware")
		try:
			for i in os.listdir(d):
				if os.path.exists(os.path.join(d, i, "boards.txt")):
					custom.extend(misc.readArduinoConfFile(os.path.join(d, i, "boards.txt")))
			return custom
		except:	return None
예제 #2
0
 def readCustomProgrammers(self):
     custom = []
     p = prefs.preferences()
     d = os.path.join(p.getValue("sketchbook.path"), "hardware")
     try:
         for i in os.listdir(d):
             if os.path.exists(os.path.join(d, i, "programmers.txt")):
                 custom.extend(
                     misc.readArduinoConfFile(
                         os.path.join(d, i, "programmers.txt")))
         return custom
     except:
         return None
예제 #3
0
	def readArduinoBoards(self):
		return misc.readArduinoConfFile(misc.getArduinoFile("hardware/arduino/boards.txt"))
예제 #4
0
	def readArduinoProgrammers(self):
		return misc.readArduinoConfFile(misc.getArduinoFile("hardware/arduino/programmers.txt"))
예제 #5
0
 def readArduinoProgrammers(self):
     return misc.readArduinoConfFile(
         misc.getArduinoFile("hardware/arduino/programmers.txt"))
예제 #6
0
 def readArduinoBoards(self):
     return misc.readArduinoConfFile(
         misc.getArduinoFile("hardware/arduino/boards.txt"))