Esempio n. 1
0
 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
Esempio n. 2
0
    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
Esempio n. 3
0
 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)