Search found 10 matches
- Wed Aug 01, 2018 6:09 am
- Forum: micro:bit boards
- Topic: 'Files' Button of Mu Editor
- Replies: 4
- Views: 4178
Re: 'Files' Button of Mu Editor
Thanks, Rhubarb. I'll explore and experiment a bit further (based on what you described) and see if I have a better gripping of this issue.
- Wed Aug 01, 2018 2:27 am
- Forum: micro:bit boards
- Topic: 'Files' Button of Mu Editor
- Replies: 4
- Views: 4178
Re: 'Files' Button of Mu Editor
Hi Rhubarb, Thanks for your post. But I am not sure if I fully understand.
(1) So you are saying that it is normal I do not see any HEX file shown on the left pane?
(2) Are you also saying that if I name my py file as main.py, I will see it in the left pane after flashing?
(1) So you are saying that it is normal I do not see any HEX file shown on the left pane?
(2) Are you also saying that if I name my py file as main.py, I will see it in the left pane after flashing?
- Tue Jul 31, 2018 5:20 am
- Forum: micro:bit boards
- Topic: 'Files' Button of Mu Editor
- Replies: 4
- Views: 4178
'Files' Button of Mu Editor
I have recently installed Mu Editor (version 1.0.0beta16) on My Windows 10 PC. Installation was a breeze and every 'Button' is working as I understood, except the 'Files' button. (1) Based on some printed doc description, if I click the 'Files' Button, I can see two panes opened and the left one sho...
- Thu Mar 29, 2018 3:11 pm
- Forum: MicroPython pyboard
- Topic: how to execute "OTHER" python scripts
- Replies: 12
- Views: 64486
Re: how to execute "OTHER" python scripts
I usually do this: cat test01.py def my_test(): print("hello, test") def main(): my_test() if __name__ == "__main__": main() and then, can do: >>> import test01 >>> from test01 import my_test >>> >>> test01.my_test() hello, test >>> test01.main() hello, test >>> >>> my_test() hello, test Thanks. Go...
- Thu Mar 29, 2018 2:57 pm
- Forum: MicroPython pyboard
- Topic: how to execute "OTHER" python scripts
- Replies: 12
- Views: 64486
Re: how to execute "OTHER" python scripts
Yes, I thought of this after using the reload method. Thanks
- Thu Mar 29, 2018 9:23 am
- Forum: MicroPython pyboard
- Topic: how to execute "OTHER" python scripts
- Replies: 12
- Views: 64486
Re: how to execute "OTHER" python scripts
Confirmation to OotB, your method works. Exactly as I needed. A big thank you.
However I need to change your second line to "import sys" in my env.
However I need to change your second line to "import sys" in my env.
- Thu Mar 29, 2018 8:48 am
- Forum: MicroPython pyboard
- Topic: how to execute "OTHER" python scripts
- Replies: 12
- Views: 64486
Re: how to execute "OTHER" python scripts
Hi OotB,
Many thanks for sharing your idea. I'll try this out tonight.
regards
YK
Many thanks for sharing your idea. I'll try this out tonight.
regards
YK
- Thu Mar 29, 2018 8:11 am
- Forum: MicroPython pyboard
- Topic: how to execute "OTHER" python scripts
- Replies: 12
- Views: 64486
Re: how to execute "OTHER" python scripts
A little bit of follow up. The “import myfile ” method works. But I recently notice that it only works if that is the first time I do the import in that terminal session. If I type “import myfile ” again after its first successful run, I will not see the Python script run again. There is no error sh...
- Wed Dec 27, 2017 10:01 am
- Forum: MicroPython pyboard
- Topic: how to execute "OTHER" python scripts
- Replies: 12
- Views: 64486
- Tue Dec 26, 2017 11:42 am
- Forum: MicroPython pyboard
- Topic: how to execute "OTHER" python scripts
- Replies: 12
- Views: 64486
how to execute "OTHER" python scripts
Hi everyone, I have to admit I am new to Pyboard so if my question does not make sense in the PYB env, please feel free to correct me. I got my Pyb a couple of months ago. Hardware, REPL,....everything works fine. Perfect, no complaint. My question is I do not know how to run a python script in the ...