Skip to content

Commit

Permalink
up to (1, 0, 7)
Browse files Browse the repository at this point in the history
  • Loading branch information
junhuanchen committed May 19, 2019
1 parent b9d4342 commit 2941cc6
Show file tree
Hide file tree
Showing 25 changed files with 369 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/untitled.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

297 changes: 297 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ Simple! Easy! Quick! Start your micropython code!

# uasge

1. download editor.exe

double click it.

2. pip insrall mpy-editor

run `pip insrall mpy-editor` in your cmd(shell), then input `editor` run it.

```shell
pip insrall mpy-editor

editor
```

## Open mpy-editor.

## Connect your hardware.
Expand All @@ -22,8 +36,20 @@ pyinstaller -w -F editor.py -i logo.ico

2. modify editor.spec

in 9 line editor.spec add `datas=[('img', 'img')],`
in 9 line editor.spec add `datas=[('mpy\\img','img')],`

3. create editor.exe

pyinstaller -w -F editor.spec -i logo.ico

# uplaod pypi

```shell
python setup.py sdist build
```

```shell
# pip install twine
twine upload dist/*
```

11 changes: 11 additions & 0 deletions editor
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env python

import sys

from mpy.editor import run

try:
run()
except Exception as e:
sys.stderr.write(str(e) + "\n")
exit(1)
Empty file added mpy/__init__.py
Empty file.
Loading

0 comments on commit 2941cc6

Please sign in to comment.