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
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
def readArduinoBoards(self): return misc.readArduinoConfFile(misc.getArduinoFile("hardware/arduino/boards.txt"))
def readArduinoProgrammers(self): return misc.readArduinoConfFile(misc.getArduinoFile("hardware/arduino/programmers.txt"))
def readArduinoProgrammers(self): return misc.readArduinoConfFile( misc.getArduinoFile("hardware/arduino/programmers.txt"))
def readArduinoBoards(self): return misc.readArduinoConfFile( misc.getArduinoFile("hardware/arduino/boards.txt"))