Skip to content

Commit

Permalink
Merge branch 'setup_patch'
Browse files Browse the repository at this point in the history
  • Loading branch information
YukkuriC committed Jul 8, 2019
2 parents cda9a51 + c49f155 commit 6032aff
Show file tree
Hide file tree
Showing 69 changed files with 231 additions and 327 deletions.
20 changes: 16 additions & 4 deletions Setup/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
dxkStickIDE可以运行在Windows和macOS等多种操作系统,请根据需要下载。

# macOS系统安装注意
macOS安装时需打开信任第三方应用的设置,方法为:
- 运行dmg镜像内 __安装前运行.sh__
- 或直接在控制台输入 __sudo spctl --master-disable__ 命令并执行。
# 安装操作
1. 安装纯净版thonny3.1.2:
* 推荐:
* [Windows (exe格式)](https://github.com/thonny/thonny/releases/download/v3.1.2/thonny-3.1.2.exe)
* [Mac (dmg格式)](https://github.com/thonny/thonny/releases/download/v3.1.2/thonny-3.1.2.dmg)
* [Linux (检测系统版本安装脚本)](https://github.com/thonny/thonny/releases/download/v3.1.2/thonny-3.1.2.bash)
* 其它版本:
* [Windows (免安装版)](https://github.com/thonny/thonny/releases/download/v3.1.2/thonny-3.1.2-portable-win.zip)
* [Linux (x86_64架构, tar.gz格式)](https://github.com/thonny/thonny/releases/download/v3.1.2/thonny-3.1.2-x86_64.tar.gz)
* [Linux (i686架构, tar.gz格式)](https://github.com/thonny/thonny/releases/download/v3.1.2/thonny-3.1.2-i686.tar.gz)

1. 下载setup.zip并解压其中plugins_setup文件夹

1. 打开Thonny, 运行该文件夹下*setup.py*文件
* 安装汉化插件**thonny_translate**
* 安装dxkStick支持插件**microbit_dxk**

# win7系统安装注意
win7系统需要安装驱动程序,可以下载本目录下的【mbedWinSerial_16466.exe】,或者在【 https://os.mbed.com/docs/latest/tutorials/windows-serial-driver.html 】下载。
Binary file removed Setup/setup_Linux_i686.tar.gz
Binary file not shown.
Binary file removed Setup/setup_Linux_x86_64.tar.gz
Binary file not shown.
Binary file removed Setup/setup_macOS.dmg
Binary file not shown.
Binary file removed Setup/setup_windows.exe
Binary file not shown.
Empty file.
5 changes: 0 additions & 5 deletions microbit_dxk/dummy_modules/array.py

This file was deleted.

8 changes: 0 additions & 8 deletions microbit_dxk/dummy_modules/audio.py

This file was deleted.

2 changes: 0 additions & 2 deletions microbit_dxk/dummy_modules/love.py

This file was deleted.

50 changes: 0 additions & 50 deletions microbit_dxk/dummy_modules/math.py

This file was deleted.

159 changes: 0 additions & 159 deletions microbit_dxk/dummy_modules/microbit.py

This file was deleted.

10 changes: 0 additions & 10 deletions microbit_dxk/dummy_modules/micropython.py

This file was deleted.

15 changes: 0 additions & 15 deletions microbit_dxk/dummy_modules/music.py

This file was deleted.

5 changes: 0 additions & 5 deletions microbit_dxk/dummy_modules/neopixel.py

This file was deleted.

8 changes: 0 additions & 8 deletions microbit_dxk/dummy_modules/os.py

This file was deleted.

17 changes: 0 additions & 17 deletions microbit_dxk/dummy_modules/radio.py

This file was deleted.

16 changes: 0 additions & 16 deletions microbit_dxk/dummy_modules/random.py

This file was deleted.

8 changes: 0 additions & 8 deletions microbit_dxk/dummy_modules/speech.py

This file was deleted.

7 changes: 0 additions & 7 deletions microbit_dxk/dummy_modules/sys.py

This file was deleted.

2 changes: 0 additions & 2 deletions microbit_dxk/dummy_modules/this.py

This file was deleted.

10 changes: 0 additions & 10 deletions microbit_dxk/dummy_modules/ustruct.py

This file was deleted.

12 changes: 12 additions & 0 deletions plugins_setup/dxk_compact_ext/clock.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from mb import _exe,gc
_=[0]*6
def time(addr):
_exe(addr,b'getT',6,1)
try:
for i in range(6):
_[i]=t[i]-1
return tuple(_)
except:pass
def set_time(Y,M,D,h,m,s,addr):
_exe(addr,b"setT%c%c%c%c%c%c"%(Y,M,D,h,m,s))
gc()
Loading

0 comments on commit 6032aff

Please sign in to comment.