def get_file_esp(self, button): from uPy_IDE.pyboard import Pyboard import uPy_IDE.files as files eboard = files.Files(Pyboard(self.portselect.value)) fdata = eboard.get(self.textfile.value) self.textterminal.clear() self.textterminal.value = fdata
def read_files(self, button): from uPy_IDE.pyboard import Pyboard from uPy_IDE import cli from uPy_IDE import files eboard = files.Files(Pyboard(self.portselect.value)) filesesp = eboard.ls() print(filesesp) lstext = "" for f in filesesp: lstext = lstext + f + "\n" self.textoutputs.clear self.textoutputs.value = lstext
def erase_from_esp(self, button): from uPy_IDE.pyboard import Pyboard import uPy_IDE.files as files eboard = files.Files(Pyboard(self.portselect.value)) eboard.rm(self.textfile.value)