初始化提交
This commit is contained in:
33
.eslintrc.js
Normal file
33
.eslintrc.js
Normal file
@@ -0,0 +1,33 @@
|
||||
module.exports = {
|
||||
// 继承 Eslint 规则
|
||||
extends: ["eslint:recommended"],
|
||||
env: {
|
||||
es6: true,
|
||||
node: true, // 启用node中全局变量
|
||||
browser: true, // 启用浏览器中全局变量
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaVersion: 15,
|
||||
sourceType: "module",
|
||||
},
|
||||
rules: {
|
||||
"no-dupe-args": 2, // 函数参数不能重复
|
||||
"no-duplicate-case": 2, // switch中的case标签不能重复
|
||||
"no-else-return": 2, // 如果if语句里面有return,后面不能跟else语句
|
||||
"no-empty": 2, // 块语句中的内容不能为空
|
||||
"no-var": 0, // 不能使用 var 定义变量
|
||||
"indent": [2, 4], // 缩进风格
|
||||
"strict": 2,
|
||||
"use-isnan": 2,
|
||||
"no-redeclare": 0, // 禁止重复声明变量
|
||||
"no-trailing-spaces": 1, // 一行结束后面不要有空格
|
||||
"no-this-before-super": 2, // 在调用super()之前不能使用this或super
|
||||
"no-unneeded-ternary": 2, // 禁止不必要的嵌套 var isYes = answer === 1 ? true : false;
|
||||
"no-unreachable": 2, // 不能有无法执行的代码
|
||||
"no-use-before-define": 2, // 未定义前不能使用
|
||||
"new-cap": 2, // 函数名首行大写必须使用new方式调用,首行小写必须用不带new方式调用
|
||||
"new-parens": 2, // new时必须加小括号
|
||||
"eqeqeq": 0, // 必须使用全等
|
||||
"no-import-assign": 0
|
||||
},
|
||||
};
|
||||
21
.gitignore
vendored
Normal file
21
.gitignore
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
# 同步时忽略以下路径
|
||||
__pycache__
|
||||
*.pyc
|
||||
*.DS_Store
|
||||
boards/default/**/libraries/ThirdParty/
|
||||
boards/default/**/libraries/myLib/
|
||||
boards/default/**/libraries/cloudLibsUrl.json
|
||||
boards/default/**/wiki/content.md
|
||||
boards/default/**/build/lib/libs.json
|
||||
boards/default/**/build/upload/
|
||||
boards/default_src/**/libraries/ThirdParty/
|
||||
boards/default_src/**/libraries/myLib/
|
||||
boards/default_src/**/libraries/cloudLibsUrl.json
|
||||
boards/default_src/**/wiki/content.md
|
||||
boards/default_src/**/build/lib/libs.json
|
||||
boards/default_src/**/build/upload/
|
||||
boards/extend/
|
||||
node_modules
|
||||
package-lock.json
|
||||
.idea
|
||||
yarn.lock
|
||||
407
CHANGELOG.md
Normal file
407
CHANGELOG.md
Normal file
@@ -0,0 +1,407 @@
|
||||
### 更新日志
|
||||
|
||||
#### 2.0 rc4 2023-08-06
|
||||
|
||||
- 修复 Arduino ESP32C3 板载 WS2812 RGB灯编译出错. [\#I5P20N](https://gitee.com/mixly2/mixly2.0_src/issues/I5P20N)
|
||||
- 修复 win7 32位 gcc版本不匹配. [#I5QOQO](https://gitee.com/mixly2/mixly2.0-win32-ia32/issues/I5QOQO)
|
||||
- 修复 mac 下使用 Python ESP32-C3 初始化固件或上传时报错. [\#I5V5S3](https://gitee.com/mixly2/mixly2.0_src/issues/I5V5S3)
|
||||
- 修复 Arduino AVR 板卡下 RGB 输入框和取色器 R、B 颜色反了. [\#I63AJJ](https://gitee.com/mixly2/mixly2.0_src/issues/I63AJJ)
|
||||
- 修复 Arduino ESP32 板卡下当变量类型设置为布尔时上传错误. [\#I672R5](https://gitee.com/mixly2/mixly2.0_src/issues/I672R5)
|
||||
- 修复 Arduino ESP32 硬件定时器导致系统不断重启. [\#I6B5WZ](https://gitee.com/mixly2/mixly2.0_src/issues/I6B5WZ)
|
||||
- 修复 python3 语音技术运行报错. [\#I6B7AH](https://gitee.com/mixly2/mixly2.0-win32-x64/issues/I6B7AH)
|
||||
- 修复 Arduino ESP32C3 下 串口图形块bug. [\#I6HUWN](https://gitee.com/mixly2/mixly2.0_src/issues/I6HUWN)
|
||||
- 修复 代码区编辑代码后存本地,再打开后不会显示之前已编辑的代码. [\#I6JIM0](https://gitee.com/mixly2/mixly2.0_src/issues/I6JIM0)
|
||||
- 修复 mac 下一键更新安装,Arduino编译提示 "bad CPU type in executable". [\#I6MNUY](https://gitee.com/mixly2/mixly2.0_src/issues/I6MNUY)
|
||||
- 修复 mac Mixly2.0文本内容复制粘贴不了. [\#I6Z21S](https://gitee.com/mixly2/mixly2.0_src/issues/I6Z21S)
|
||||
- 修复 windows Arduino ESP8266代码区无代码,无法编译. [\#I710YW](https://gitee.com/mixly2/mixly2.0_src/issues/I710YW)
|
||||
- 更新 Arduino ESP32C3 GPIO添加11引脚. [\#I6X4L6](https://gitee.com/mixly2/mixly2.0_src/issues/I6X4L6)
|
||||
- 更新 Blockly ( version: 10.0.2 )
|
||||
- `Blockly.Blocks.xxx.HUE` → `Blockly.Msg['xxx_HUE']`
|
||||
- `Blockly.xxx` → `Blockly.Msg['xxx']`
|
||||
- `Blockly.Mutator` → `Blockly.icons.MutatorIcon`
|
||||
- `generator.xxx` → `generator.forBlock['xxx']`
|
||||
|
||||
- 更新 XPython板卡和Arduino板卡
|
||||
- 更新 板卡管理工具和库管理工具
|
||||
- 更新 xpython板卡烧录所用python工具
|
||||
- 更新 `导出PNG` 选项移动到 Blockly 工作区右键菜单
|
||||
- 添加 右键菜单选项项 `添加注释`在 Blockly 工作区
|
||||
- 添加 墨水屏模块在 Arduino 板卡. [\#I670FM](https://gitee.com/mixly2/mixly2.0_src/issues/I670FM)
|
||||
- 添加 用户配置项
|
||||
- 上传结束后自动打开串口. [\#I605PY](https://gitee.com/mixly2/mixly2.0_src/issues/I605PY)
|
||||
- 主题调整为 "跟随系统"、"深色"、"浅色". [\#I692QN](https://gitee.com/mixly2/mixly2.0_src/issues/I692QN)
|
||||
- 添加 消息栏在板卡页面
|
||||
- 添加 配置项说明在配置板卡栏
|
||||
- 添加 `此视图只读` 提示在状态栏和右侧代码预览区 ( `Enter`、`Del`、`Backspace` 触发 )
|
||||
- 添加 新功能在Blockly
|
||||
- 工作区高亮
|
||||
- 工作区网格
|
||||
- 工作区缩略图 ( `实验性` )
|
||||
- 工作区多重选择 ( `实验性` - `Shift` + `鼠标左键` 触发 )
|
||||
- 渲染器切换
|
||||
|
||||
#### 2.0 rc3 2022-08-10
|
||||
|
||||
- 修复自代码区切换至模块区颜色选择模块尺寸改变
|
||||
- 修复串口操作导致窗口崩溃
|
||||
- 修复Blockly解析xml字符串报错
|
||||
- 修复Arduino下创建函数块右键生成函数块乱码
|
||||
- 修复双击文件打开程序不显示
|
||||
- 更新板卡管理工具和库管理工具
|
||||
- 更新Electron ( version: 19.0.6 )
|
||||
- 更新Ace、Ampy、Layui、fontello、skulpt、amWiki、fpJS
|
||||
- 更新XPython板卡和Arduino板卡
|
||||
- 更新Mixly板卡页面布局
|
||||
- 更新配置Arduino板卡操作
|
||||
- 串口输出框、代码框添加右键菜单
|
||||
- 添加反馈、wiki、例程和图文转换按钮
|
||||
- 添加Blockly工具箱查找和工作区查找
|
||||
- 添加书包
|
||||
- 添加Blockly.FieldGridDropdown、Blockly.FieldBitmap和Blockly.FieldSlider
|
||||
|
||||
#### 2.0 rc2 2022-03-19
|
||||
|
||||
- 修复ESP32数码管问题
|
||||
- 修复在图像化模块的注释打开时弹层位置不在窗口中央的问题
|
||||
- 修复导入本地第三方库错误
|
||||
- 尝试修复有时使用Blockly.Xml.textToDom函数报错
|
||||
- 尝试修复串口长时间使用时页面崩溃问题
|
||||
- 更新板卡micropython_esp32_handbit
|
||||
- 更新板卡circuitpython_esp32s2_mixgocar
|
||||
- 更新板卡micropython_k210_mixgoai
|
||||
- 更新板卡micropython_esp32_mixgo
|
||||
- 更新板卡micropython_nrf51822_microbit
|
||||
- 更新板卡micropython_nrf51822_mithoncc
|
||||
- 更新esptool ( version: 3.2 )
|
||||
- 更新Ampy
|
||||
- 更新electron ( version: 17.1.2 )
|
||||
- 添加板卡micropython_esp32_mixgope
|
||||
- 添加板卡micropython_esp32c3_mixgocar
|
||||
- 添加板卡micropython_esp32c3_mixgocc
|
||||
- 添加python_skulpt_mixtoy
|
||||
- 添加【其他固件】按钮在xPython页面
|
||||
- 添加AI Thinker ESP32-CAM在Arduino ESP32
|
||||
- 添加过渡动画在板卡index切换时
|
||||
- 添加程序执行时间显示在python板卡状态栏
|
||||
- 调整头部工具栏
|
||||
- 调整各弹层在dark下的颜色
|
||||
- 自动获取category标签的id属性,不需要在code.js中手动添加
|
||||
- 移除Arduino STM32板卡,改为用户手动导入
|
||||
- 移除Arduino ESP32C3板卡不能使用的blynk,板载资源与蓝牙块
|
||||
|
||||
#### 2.0 rc1 2021-11-07
|
||||
|
||||
- 修复导入云端库时的一些问题
|
||||
- 修复库管理器对本地一些库无法进行管理的问题
|
||||
- 修复Arduino类板卡软串口错误
|
||||
- 修复python页面下生成代码存在很多空行的问题
|
||||
- 修复Arduino类板卡编译时中文输出为乱码的问题
|
||||
- 更新Arduino ESP32c3页面的串口配置和管脚定义
|
||||
- 更新CircuitPython MixGoCE与MixGoCar的固件
|
||||
- 更新MicroPython MixGoAI
|
||||
- 增加通用旋转编码器图形化模块
|
||||
- 增加ESP系列红外解码图形化模块
|
||||
- 增加新板卡mPython
|
||||
- 增加 "until" 及更新 "while" 图形化模块在xPython页面下
|
||||
- 增加OTA图形化模块在Arduino ESP页面下
|
||||
- 增加360°舵机和HCSR04超声波控制图形化模块在CricuitPython MixGoCE页面下
|
||||
- 增加折叠块在MixGoCE&MixGoCar页面下
|
||||
- 移除Arduino ESP页面下WIFI_AP&STA图形化模块 (变为云端导入)
|
||||
|
||||
#### 2.0 rc0 2021-09-30
|
||||
|
||||
- 修复导入第三方库后切换语言一些第三方库语言没有改变
|
||||
- 修复CircuitPython MixGoCE界面下上传程序后状态栏不自动切换到串口输出
|
||||
- 注释串口读取时对连续两个数据时间间隔需大于50ms的限制
|
||||
- 更新CircuitPython MixGoCE与MixGoCar的固件
|
||||
- Arduino下增加对于mixio的支持
|
||||
- 添加Arduino ESP8266管脚映射图形化模块
|
||||
- 更新Arduino和Python第三方库url
|
||||
- 取消导入库和板卡时的编辑url按钮
|
||||
- 板卡页面头部工具栏添加按钮点击效果
|
||||
- 同步弹出打开、保存文件窗口改为异步弹出
|
||||
- Arduino类板卡页面支持云端导入Arduino库文件和管理本地Arduino库文件
|
||||
- Python类板卡页面支持云端导入py文件和管理本地py文件
|
||||
|
||||
#### 2.0 Beta14 2021-09-14
|
||||
|
||||
- 修复软件主题设为dark时从主页面到板卡页面会有短暂闪屏
|
||||
- 修复Arduino类板卡下blynk分类下一些模块无法生成代码
|
||||
- 修复Arduino ESP8266板卡下红外通信模块生成代码编译报错
|
||||
- 修复Arduino ESP32板卡下使用ESP32 CAM相关模块编译报错
|
||||
- 修复设置语言后刷新页面会变成默认语言的问题
|
||||
- 修复Arduino类板卡下编译上传时报错信息会显示两次
|
||||
- 修复串口工具读取数据时会剔除空行的问题
|
||||
- 更新CircuitPython MixGoCE与MixGoCar的固件和相关图形化模块
|
||||
- 更新electron版本到13.3.0
|
||||
- 更新blockly版本到6.20210701.0
|
||||
- 更换主页面背景图片
|
||||
- 板卡页面更改语言后支持动态更新页面
|
||||
- 板卡页面导入和删除第三方库后支持动态更新左侧工具箱
|
||||
- 主页面导入和删除板卡后支持动态更新页面
|
||||
- 完善软件对多国语言的支持
|
||||
- Arduino类板卡编译和上传时支持同时编译所打开MIX、INO所在目录下的[*.h, *.hpp, *.c, *.cpp]文件
|
||||
|
||||
#### 2.0 Beta13 2021-08-26
|
||||
|
||||
- 修复Arduino AVR板卡下Blynk连接状态函数无法生成代码的问题
|
||||
- 修复MicroPython MixGo AI板卡在串口工具打开时复位按钮无法使用的问题
|
||||
- 修复microPython和CircuitPython下数学分类下某些模块生成代码上传报错的问题
|
||||
- 修复打开和保存文件时默认路径有时不为sample文件夹的问题
|
||||
- 修复py下if-else & try-except使用ctrl+z后报错的问题
|
||||
- 修复初始化固件或上传程序后有时遮罩无法关闭的问题
|
||||
- 修复串口读取数据时无法解码中文编码字符串的问题
|
||||
- 调整板卡配置文件
|
||||
- CircuitPython MixGo CE板卡下添加Mixly Key、获取cpu温度、NTP时间和SD卡操作图形化模块
|
||||
- 更新CircuitPython MixGo CE板卡固件
|
||||
- 更新状态栏,支持在状态栏中显示串口号
|
||||
- 更新板卡页面头部工具栏
|
||||
- Arduino板卡下支持导出和导入已编译的bin、hex文件
|
||||
|
||||
#### 2.0 Beta12 2021-08-14
|
||||
|
||||
- 修复Arduino页面下函数声明模块无法被禁用的问题
|
||||
- 修复侧边代码框和代码编辑框字体大小不同步的问题
|
||||
- 修复MixGo AI下有时程序卡住时无法再上传的的问题
|
||||
- 修复串口接收数据为中文时有乱码问题
|
||||
- 修复主页面下显示多行板卡时有时某几行板卡无法显示的问题
|
||||
- 修复Microbit下舵机和蜂鸣器无法使用的问题
|
||||
- 更新Mixgo CE 和 MixGo Car图形化模块及其固件
|
||||
- 更新例程
|
||||
- 支持双击文件在Mixly中打开(需要先关联MIX文件到Mixly)
|
||||
- 串口监视器添加DTR和RTS设置
|
||||
|
||||
#### 2.0 Beta11 2021-08-06
|
||||
|
||||
- 修复Arduino ESP8266和ESP32板卡页面blynk模块编译报错问题
|
||||
- 修复MixGoAI板卡使用kflash工具烧录时的报错问题
|
||||
- 修复Arduino ESP8266和ESP32界面下使用本地导入库后无第三方模块的问题
|
||||
- 修复主页面下显示的板卡在高分辨率屏幕上排列会出错的问题
|
||||
- 修复串口在读取数据时如果没有换行符数据不会显示的问题
|
||||
- Arduino ESP32S2板卡页面增加USB串口程序块
|
||||
- Arduino ESP32S2和ESP32C3板卡页面添加GPIO图
|
||||
- 更新Sample下例程版本为Mixly2.0
|
||||
- 更新MixGo CE和MixGo Car下图形化模块和所用固件
|
||||
- 添加py模块pgzero
|
||||
- Arduino STM32支持使用Mixly烧录固件
|
||||
|
||||
#### 2021-08-01
|
||||
|
||||
- 修复保存文件后不显示保存路径的问题
|
||||
- 修复当软件路径中含有空格时编译、烧录和上传操作会出错的问题
|
||||
- 尝试修复导入Mxixly1.x所用第三方库有些分类无法显示的问题
|
||||
- 更新MixGo CE和MixGo Car下图形化模块和所用固件
|
||||
|
||||
#### 2021-07-30
|
||||
|
||||
- 同步Mixly1.x下Arduino类图形化模块
|
||||
- 添加新板卡Arduino ESP32S2和ESP32C3
|
||||
|
||||
#### 2021-07-29
|
||||
|
||||
- 添加主进程调试工具electron-dev-console
|
||||
- 添加新板卡Arduino MixGo CE
|
||||
|
||||
#### 2021-07-28
|
||||
|
||||
- 修复Mac和Linux下通过VID、PID无法筛选串口的问题
|
||||
- 修复Linux下通过盘符号获取路径出错的问题
|
||||
|
||||
#### 2021-07-27
|
||||
|
||||
- 修复在打开两个及以上窗口时启动速度变慢的问题
|
||||
- 串口工具支持拖拽改变尺寸
|
||||
- 添加本地快捷键
|
||||
| Mixly2.0客户端界面操作 | 快捷键 |
|
||||
| :--------------------: | :----: |
|
||||
| 打开新页面 | Ctrl+N |
|
||||
|
||||
#### 2021-07-26
|
||||
|
||||
- 更新云端板卡TCTM KZB01
|
||||
- 更新本地快捷键
|
||||
| Mixly2.0客户端界面操作 | 快捷键 |
|
||||
| :--------------------: | :----------: |
|
||||
| 缩小页面 | Ctrl+Shift+- |
|
||||
|
||||
#### 2021-07-25
|
||||
|
||||
- 修复K210板卡使用ampy上传有时会失败的问题
|
||||
- Mac系统下使用which python3命令获取已安装python3的路径
|
||||
- 支持使用ampy递归上传文件
|
||||
|
||||
#### 2021-07-24
|
||||
|
||||
- 添加新板卡MixGo AI
|
||||
- 更新云端板卡TCTM KZB01
|
||||
- 添加本地快捷键
|
||||
| Mixly2.0客户端界面操作 | 快捷键 |
|
||||
| :--------------------: | :----: |
|
||||
| 打开更新日志 | Ctrl+H |
|
||||
|
||||
#### 2021-07-22
|
||||
|
||||
- 添加新板卡MixGo Car
|
||||
|
||||
#### 2021-07-21
|
||||
|
||||
- 修复Arduino界面下LCD1602编译出错问题
|
||||
- 修复Arduino界面OLED分类下模块下拉图片链接出错的问题
|
||||
- 修复Arduino界面下模块SDA、SCL等管脚无法使用默认配置的问题
|
||||
|
||||
#### 2021-07-20
|
||||
|
||||
- 修复导入第三方库后在开发者模式下无法查看已导入第三方库js文件的问题
|
||||
|
||||
#### 2021-07-17
|
||||
|
||||
- 修复本地导入板卡和第三方库按钮不可用问题
|
||||
|
||||
#### 2021-07-16
|
||||
|
||||
- 修复Microbit和Mithon页面下【保存HEX】按钮文字不显示的问题
|
||||
- 修复Win下ESP32板卡编译失败的问题
|
||||
- 支持同时对多个同类型板卡进行固件烧录或程序上传操作
|
||||
|
||||
#### 2021-07-14
|
||||
|
||||
- 修复Arduino页面下缩小窗口时编译按钮不折叠的问题
|
||||
- 串口绘图支持绘制多条折线
|
||||
- 添加本地快捷键
|
||||
| Mixly2.0客户端界面操作 | 快捷键 |
|
||||
| :--------------------: | :----------: |
|
||||
| 还原页面 | Ctrl+0 |
|
||||
| 放大页面 | Ctrl+Shift+= |
|
||||
| 缩小页面 | Ctrl+- |
|
||||
|
||||
#### 2021-07-10
|
||||
|
||||
- 添加云端板卡MicroPython_esp32_TCTM_KZB01
|
||||
|
||||
#### 2021-07-09
|
||||
|
||||
- 添加测试板卡MicroPython_K210_MaixDock
|
||||
|
||||
#### 2021-07-07
|
||||
|
||||
- 支持用户自定义arduinoCli和Python3的路径,当在默认路径下未检测到对应软件时,会使用自定义路径
|
||||
|
||||
#### 2021-07-05
|
||||
|
||||
- 添加K210固件烧录工具kflash
|
||||
|
||||
#### 2021-07-04
|
||||
|
||||
- 添加本地快捷键
|
||||
| Mixly2.0客户端界面操作 | 快捷键 |
|
||||
| :--------------------: | :----------: |
|
||||
| 打开或关闭开发者工具 | Ctrl+Shift+I |
|
||||
| 重载页面 | Ctrl+R |
|
||||
| 最小化窗口 | Ctrl+M |
|
||||
| 关闭窗口 | Ctrl+W |
|
||||
- 修复在打开两个及以上窗口时会出现短暂白屏问题
|
||||
|
||||
#### 2021-07-01
|
||||
|
||||
- Mixly 网页端MixGo板卡使用WebSerial上传
|
||||
- Mixly 网页端MixGo和MixGoCE板卡固件烧录采用WebSerial ESPTool
|
||||
- 尝试修复MixGoCE上传结束后的灰屏问题
|
||||
|
||||
#### 2021-06-19
|
||||
|
||||
- 修复microbit界面TCS34725颜色传感器模块读取RGB数据出错的问题
|
||||
- 配置文件支持添加多个盘符
|
||||
- 状态栏支持通过快捷键设置字体大小、发送Ctrl+C和Ctrl+D、清空状态栏
|
||||
| 状态栏操作 | 快捷键 |
|
||||
| :--------: | :------------: |
|
||||
| 增大字体 | Ctrl-=\|Ctrl-+ |
|
||||
| 减小字体 | Ctrl+-\|Ctrl- |
|
||||
| 发送Ctrl+C | Ctrl+Shift+C |
|
||||
| 发送Ctrl+D | Ctrl+Shift+D |
|
||||
| 清空状态栏 | Ctrl+E |
|
||||
|
||||
#### 2021-05-29
|
||||
|
||||
- 修复侧边代码框向左拖动时宽度无限制的问题
|
||||
- 修复打开文件或在文本转图形时图形化模块无法居中的问题
|
||||
- 修复打开文件后左侧分类树无法自动复位的问题
|
||||
- 修复主题设为dark时进入板卡页面后主题依然为light的问题
|
||||
|
||||
#### 2021-05-13
|
||||
|
||||
- 修复打开mix文件显示“无效的xml”的问题
|
||||
- 修复保存png文件后无法打开的问题
|
||||
- 修复串口输出介于[-1,1]的数字会读取出错的问题
|
||||
- 修复有多个串口时无法正常切换串口的问题
|
||||
- 修复板卡页面主题设为dark后左侧分类树字体颜色为黑的问题
|
||||
- 更新MixGo CE页面图形块及固件
|
||||
|
||||
#### 2021-05-09
|
||||
|
||||
- 修复主页面在改变窗口尺寸或屏幕分辨率后板卡会堆叠在一起的问题
|
||||
- 修复板卡页面鼠标滚轮缩放速率过大的问题
|
||||
- 使用node https替换request模块
|
||||
|
||||
#### 2021-04-19
|
||||
|
||||
- 修复Arduino界面终止编译/上传后状态栏仍会继续显示部分编译/上传信息
|
||||
- 修复点击“打开”按钮时未选择文件则会清除当前文件路径的问题
|
||||
- 修复打开文件显示invalid xml file!时会清除工作区和代码区程序的问题
|
||||
- 修复打开文件后退出板卡页面再次进入会丢失文件路径的问题
|
||||
- 修复从板卡页面退出轮播索引会自动设为0的问题
|
||||
|
||||
#### 2021-04-18
|
||||
|
||||
- 修复打开文件显示invalid xml file!时仍会显示文件路径的问题
|
||||
- 修复打开文件显示invalid xml file!时代码区仍会显示部分代码的问题
|
||||
- 修复状态栏和工作区在主题为dark时无效果的问题
|
||||
- 修复代码区代码在退出页面后再次进入无法恢复的问题
|
||||
- 修复设置语言后重启软件会变回默认语言的问题
|
||||
- 修复Arduino界面板卡切换后工作区图形化模块管脚不会同步的问题
|
||||
- 使用Arduino-CLI替换Arduino IDE,加快编译和上传速度,目前已添加AVR板卡
|
||||
- MixGoCE 外接元件/传感器、物联网分类下模块添加文本转图形
|
||||
|
||||
#### 2021-04-16
|
||||
|
||||
- 修复重复打开相同文件时不会读取文件数据的问题
|
||||
- 修复python界面input模块输入中文时输出乱码的问题
|
||||
- 修复python和micropython界面在包含类与对象相关模块时会出错的问题
|
||||
- 更新“保存”、“另存为”、“新建”、“打开”操作
|
||||
- 更新串口可视化
|
||||
- 串口和头部工具栏支持用户使用config.json来配置
|
||||
- 缓存文件支持不同界面数据分开储存
|
||||
|
||||
#### 2021-04-12
|
||||
|
||||
- 更新“保存”、“另存为”按钮
|
||||
- 修复MixGo按RST后无法上传的问题
|
||||
- 串口加上关闭/打开按钮
|
||||
|
||||
#### 2021-04-08
|
||||
|
||||
- 修复板卡选择下拉框展开时展开框不居中的问题
|
||||
- 修复释放头部工具栏中某个按钮后此按钮依旧为按下状态的问题
|
||||
- 调整串口、状态框、编译、烧录、上传等相关函数
|
||||
|
||||
#### 2021-04-02
|
||||
|
||||
- 串口选择下拉框支持显示多行
|
||||
- 修复非MixGOCE、microbit、mithon板卡的串口切换错误问题
|
||||
- 初始化固件、上传支持记住上一次选择的串口或盘符号
|
||||
- 板卡切换按钮设置为一直显示
|
||||
|
||||
#### 2021-03-21
|
||||
|
||||
- RGB灯带的逻辑修改为官网逻辑
|
||||
- python编辑器自动缩进为4个空格
|
||||
- 修复缩小窗口时文字重叠问题
|
||||
- 去掉了初始化超声波图形模块
|
||||
- 更新串口工具
|
||||
- 修复串口短时间获取大量数据时卡死问题
|
||||
- 支持在软件内动态添加板卡,支持直接在软件内删除板卡
|
||||
- 暂时只添加了Arduino AVR板卡
|
||||
- 添加MixGo板卡
|
||||
- 添加导入库、管理库、切换板卡按钮,暂时不支持导入库、管理库、切换板卡操作
|
||||
- 添加Shift+Ctrl+C和Shift+Ctrl+V操作
|
||||
- MixGo上传采用python-shell调用ampy工具
|
||||
- MixGo和MixGoCE烧录固件采用python-shell调用esptool工具
|
||||
3
LICENSE
Normal file
3
LICENSE
Normal file
@@ -0,0 +1,3 @@
|
||||
本软件使用了Electron,Node.JS,Blockly,Skulpt,Arduino,Micropython,CircuitPython,ESP-IDF,Arduino-cli,Arduino-ESP32,,Arduino-ESP8266等一大堆开源软件,用户在使用是必须遵守上述开源软件各种的License,除此以外,除非与上述协议冲突,否则,任何使用本代码的用户和组织在修改后必须保留Mixly这一软件名称及作者信息,但可以使用Mixly4XXX这样的名字,XXX就是使用者自己的名字。
|
||||
|
||||
This software uses a large number of open source software such as Electron, Node.JS, Blockly, Skulpt, Arduino, Micropython,CircuitPython, ESP-IDF, Arduino-cli, Arduino-ESP32, Arduino-ESP8266, etc. The user must comply with the above open source software's Licenses, in addition, Unless it conflicts with the above Licenses, any user or organization using this code must retain the name of the Software and author information after modification, but may use a name such as Mixly4XXX, which is the user's own name.
|
||||
36
README.en.md
36
README.en.md
@@ -1,36 +0,0 @@
|
||||
# mixly3
|
||||
|
||||
#### Description
|
||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
97
README.md
97
README.md
@@ -1,39 +1,82 @@
|
||||
# mixly3
|
||||
<p align="center">
|
||||
<a href="https://mixly2.gitee.io/mixly2.0_src">
|
||||
<img src="https://foruda.gitee.com/images/1677155717148882961/0c044ac0_5225463.png" width="100" alt="Mixly">
|
||||
</a>
|
||||
</p>
|
||||
<h2 align="center">Mixly</h2>
|
||||
<p align="center">
|
||||
一款面向初学者、硬件编程爱好者的图形化编程工具
|
||||
</p>
|
||||
|
||||
#### 介绍
|
||||
{**以下是 Gitee 平台说明,您可以替换此简介**
|
||||
Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
||||
无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
||||
---
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
## 跨平台代码
|
||||
|
||||
### Mixly官方网站
|
||||
|
||||
#### 安装教程
|
||||
http://mixly.org
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
### Mixly wiki帮助
|
||||
|
||||
#### 使用说明
|
||||
http://wiki.mixly.org
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
### 在线预览地址
|
||||
|
||||
#### 参与贡献
|
||||
[Mixly2.0在线版](https://smilebrightly.gitee.io/mixly2.0_src)
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
### 网盘下载地址
|
||||
|
||||
- [百度网盘链接](https://pan.baidu.com/s/1BotIhmA6EGWVout-MoxBLg%C2%A0?pwd=ny1n)
|
||||
- [123网盘链接](https://www.123pan.com/s/uAxvTd-xdX9d.html)
|
||||
|
||||
#### 特技
|
||||
### 图片预览
|
||||
|
||||
---
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><img src="https://foruda.gitee.com/images/1677153641352478950/f4d0eb67_5225463.png"/></td>
|
||||
<td><img src="https://foruda.gitee.com/images/1677153954316335623/5ffa2d91_5225463.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://foruda.gitee.com/images/1677156373211671352/7922a57e_5225463.png"/></td>
|
||||
<td><img src="https://foruda.gitee.com/images/1677156435604305593/6f5e54aa_5225463.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://foruda.gitee.com/images/1677153736660048584/765aa0b6_5225463.png"/></td>
|
||||
<td><img src="https://foruda.gitee.com/images/1677153898146411955/86be2604_5225463.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="https://foruda.gitee.com/images/1677154053942238016/521454df_5225463.png"/></td>
|
||||
<td><img src="https://foruda.gitee.com/images/1677154016356791744/51975de1_5225463.png"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
### 更新工具
|
||||
|
||||
- Mixly2.0-win32-x64一键更新工具:[下载](http://mixlylibs.cloud:8099/mixly2/update-tools/media/branch/master/mixly2.0-win32-x64%E4%B8%80%E9%94%AE%E6%9B%B4%E6%96%B0%E7%89%88.7z)
|
||||
- Mixly2.0-win32-ia32一键更新工具:[下载](http://mixlylibs.cloud:8099/mixly2/update-tools/media/branch/master/mixly2.0-win32-ia32%E4%B8%80%E9%94%AE%E6%9B%B4%E6%96%B0%E7%89%88.7z)
|
||||
- Mixly2.0-mac-x64一键更新工具:[下载](http://mixlylibs.cloud:8099/mixly2/update-tools/media/branch/master/mixly2.0-mac-x64%E4%B8%80%E9%94%AE%E6%9B%B4%E6%96%B0%E7%89%88.7z)
|
||||
- Mixly2.0-mac-arm64一键更新工具:[下载](http://mixlylibs.cloud:8099/mixly2/update-tools/media/branch/master/mixly2.0-mac-arm64%E4%B8%80%E9%94%AE%E6%9B%B4%E6%96%B0%E7%89%88.7z)
|
||||
- Mixly2.0-linux-x64一键更新工具:[下载](http://mixlylibs.cloud:8099/mixly2/update-tools/media/branch/master/Mixly2.0-linux-x64%E4%B8%80%E9%94%AE%E6%9B%B4%E6%96%B0%E7%89%88.zip)
|
||||
- Mixly2.0-linux-arm64一键更新工具:[下载](http://mixlylibs.cloud:8099/mixly2/update-tools/media/branch/master/Mixly2.0-linux-arm64%E4%B8%80%E9%94%AE%E6%9B%B4%E6%96%B0%E7%89%88.zip)
|
||||
|
||||
### 更新说明
|
||||
|
||||
[更新日志](https://gitee.com/mixly2/mixly2.0_src/blob/master/CHANGELOG.md)
|
||||
|
||||
### 官方交流群
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td align="center">Arduino米思齐官方交流群</td>
|
||||
<td align="center">XPython米思齐官方交流群</td>
|
||||
<td align="center">米思齐公益培训群2023</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><img src="https://foruda.gitee.com/images/1677155200693014860/246cbd2e_5225463.jpeg"/></td>
|
||||
<td align="center"><img src="https://foruda.gitee.com/images/1677155247192137948/1508698a_5225463.jpeg"/></td>
|
||||
<td align="center"><img src="https://foruda.gitee.com/images/1677155350027940742/19085ccb_5225463.jpeg"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
||||
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
|
||||
185
boards.json
Normal file
185
boards.json
Normal file
@@ -0,0 +1,185 @@
|
||||
[
|
||||
{
|
||||
"boardImg": "./boards/default/micropython_esp32s2/media/mixgoce_compressed.png",
|
||||
"boardType": "MixGo CE",
|
||||
"boardIndex": "./boards/default/micropython_esp32s2/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": true,
|
||||
"webCompiler": true,
|
||||
"webSocket": true
|
||||
},
|
||||
"language": "MicroPython"
|
||||
},
|
||||
{
|
||||
"boardImg": "./boards/default/micropython_esp32s3/media/mixgo_nova.png",
|
||||
"boardType": "Python ESP32-S3",
|
||||
"boardIndex": "./boards/default/micropython_esp32s3/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": true,
|
||||
"webCompiler": true,
|
||||
"webSocket": true
|
||||
},
|
||||
"language": "MicroPython"
|
||||
},
|
||||
{
|
||||
"boardImg": "./boards/default/micropython_esp32c3/media/esp32c3_compressed.png",
|
||||
"boardType": "Python ESP32-C3",
|
||||
"boardIndex": "./boards/default/micropython_esp32c3/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": true,
|
||||
"webCompiler": true,
|
||||
"webSocket": true
|
||||
},
|
||||
"language": "MicroPython"
|
||||
},
|
||||
{
|
||||
"boardImg": "./boards/default/micropython_robot/media/mixbot.png",
|
||||
"boardType": "Python Robot",
|
||||
"boardIndex": "./boards/default/micropython_robot/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": true,
|
||||
"webCompiler": true,
|
||||
"webSocket": true
|
||||
},
|
||||
"language": "MicroPython"
|
||||
},
|
||||
{
|
||||
"boardImg": "./boards/default/micropython_esp32/media/esp32_compressed.png",
|
||||
"boardType": "Python ESP32",
|
||||
"boardIndex": "./boards/default/micropython_esp32/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": true,
|
||||
"webCompiler": true,
|
||||
"webSocket": true
|
||||
},
|
||||
"language": "MicroPython"
|
||||
},
|
||||
{
|
||||
"boardImg": "./boards/default/micropython_esp32c2/media/esp32c2_compressed.png",
|
||||
"boardType": "Python ESP32-C2",
|
||||
"boardIndex": "./boards/default/micropython_esp32c2/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": true,
|
||||
"webCompiler": true,
|
||||
"webSocket": true
|
||||
},
|
||||
"language": "MicroPython"
|
||||
},
|
||||
{
|
||||
"boardImg": "./boards/default/arduino_avr/media/uno_compressed.png",
|
||||
"boardType": "Arduino AVR",
|
||||
"boardIndex": "./boards/default/arduino_avr/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": false,
|
||||
"webCompiler": true,
|
||||
"webSocket": true
|
||||
},
|
||||
"language": "C/C++"
|
||||
}, {
|
||||
"boardImg": "./boards/default/python_mixpy/media/py.png",
|
||||
"boardType": "Python 3",
|
||||
"boardIndex": "./boards/default/python_mixpy/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": false,
|
||||
"webCompiler": false,
|
||||
"webSocket": false
|
||||
},
|
||||
"language": "Python"
|
||||
}, {
|
||||
"boardImg": "./boards/default/python_skulpt/media/webpy.png",
|
||||
"boardType": "Python 3 Lite",
|
||||
"boardIndex": "./boards/default/python_skulpt/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": true,
|
||||
"webCompiler": true,
|
||||
"webSocket": true
|
||||
},
|
||||
"language": "Python"
|
||||
}, {
|
||||
"boardImg": "./boards/default/python_skulpt/media/webpy.png",
|
||||
"boardType": "Python 3 MixToy",
|
||||
"boardIndex": "./boards/default/python_skulpt_mixtoy/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": true,
|
||||
"webCompiler": true,
|
||||
"webSocket": true
|
||||
},
|
||||
"language": "Python"
|
||||
}, {
|
||||
"boardImg": "./boards/default/python_skulpt/media/webpy.png",
|
||||
"boardType": "Python 3 Car",
|
||||
"boardIndex": "./boards/default/python_skulpt_car/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": true,
|
||||
"webCompiler": true,
|
||||
"webSocket": true
|
||||
},
|
||||
"language": "Python"
|
||||
}, {
|
||||
"boardImg": "./boards/default/micropython_k210_mixgoai/media/mixgoai_compressed.png",
|
||||
"boardType": "MixGo AI",
|
||||
"boardIndex": "./boards/default/micropython_k210_mixgoai/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": true,
|
||||
"webCompiler": true,
|
||||
"webSocket": true
|
||||
},
|
||||
"language": "MicroPython"
|
||||
}, {
|
||||
"boardImg": "./boards/default/micropython_nrf51822_mithoncc/media/mithon_compressed.png",
|
||||
"boardType": "Mithon CC",
|
||||
"boardIndex": "./boards/default/micropython_nrf51822_mithoncc/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": true,
|
||||
"webCompiler": true,
|
||||
"webSocket": true
|
||||
},
|
||||
"language": "MicroPython"
|
||||
}, {
|
||||
"boardImg": "./boards/default/micropython_nrf51822_microbit/media/microbit_compressed.png",
|
||||
"boardType": "BBC micro:bit",
|
||||
"boardIndex": "./boards/default/micropython_nrf51822_microbit/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": true,
|
||||
"webCompiler": true,
|
||||
"webSocket": true
|
||||
},
|
||||
"language": "MicroPython"
|
||||
}, {
|
||||
"boardImg": "./boards/default/arduino_esp8266/media/esp8266_compressed.png",
|
||||
"boardType": "Arduino ESP8266",
|
||||
"boardIndex": "./boards/default/arduino_esp8266/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": false,
|
||||
"webCompiler": true,
|
||||
"webSocket": true
|
||||
},
|
||||
"language": "C/C++"
|
||||
}, {
|
||||
"boardImg": "./boards/default/arduino_esp32/media/esp32_compressed.png",
|
||||
"boardType": "Arduino ESP32",
|
||||
"boardIndex": "./boards/default/arduino_esp32/index.xml",
|
||||
"env": {
|
||||
"electron": true,
|
||||
"web": false,
|
||||
"webCompiler": true,
|
||||
"webSocket": true
|
||||
},
|
||||
"language": "C/C++"
|
||||
}
|
||||
]
|
||||
BIN
boards/HDK/MixGo CC-V3.2.pdf
Normal file
BIN
boards/HDK/MixGo CC-V3.2.pdf
Normal file
Binary file not shown.
BIN
boards/HDK/MixGo CE-V3.7.pdf
Normal file
BIN
boards/HDK/MixGo CE-V3.7.pdf
Normal file
Binary file not shown.
BIN
boards/HDK/MixGo ME-V2.3.pdf
Normal file
BIN
boards/HDK/MixGo ME-V2.3.pdf
Normal file
Binary file not shown.
BIN
boards/HDK/MixGo Nova-V2.6.pdf
Normal file
BIN
boards/HDK/MixGo Nova-V2.6.pdf
Normal file
Binary file not shown.
0
boards/default/arduino/index.xml
Normal file
0
boards/default/arduino/index.xml
Normal file
0
boards/default/arduino/main.bundle.js
Normal file
0
boards/default/arduino/main.bundle.js
Normal file
109
boards/default/arduino_avr/config.json
Normal file
109
boards/default/arduino_avr/config.json
Normal file
@@ -0,0 +1,109 @@
|
||||
{
|
||||
"board": {
|
||||
"Arduino/Genuino Uno": {
|
||||
"key": "arduino:avr:uno",
|
||||
"config": []
|
||||
},
|
||||
"Arduino Nano": {
|
||||
"key": "arduino:avr:nano",
|
||||
"config": [
|
||||
{
|
||||
"label": "Processor",
|
||||
"key": "cpu",
|
||||
"options": [
|
||||
{
|
||||
"key": "atmega328old",
|
||||
"label": "ATmega328P (Old Bootloader)"
|
||||
}, {
|
||||
"key": "atmega328",
|
||||
"label": "ATmega328P"
|
||||
}, {
|
||||
"key": "atmega168",
|
||||
"label": "ATmega168"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"Arduino Pro or Pro Mini": {
|
||||
"key": "arduino:avr:pro",
|
||||
"config": [
|
||||
{
|
||||
"label": "Processor",
|
||||
"key": "cpu",
|
||||
"options": [
|
||||
{
|
||||
"key": "16MHzatmega328",
|
||||
"label": "ATmega328P (5V, 16 MHz)"
|
||||
}, {
|
||||
"key": "8MHzatmega328",
|
||||
"label": "ATmega328P (3.3V, 8 MHz)"
|
||||
}, {
|
||||
"key": "16MHzatmega168",
|
||||
"label": "ATmega168 (5V, 16 MHz)"
|
||||
}, {
|
||||
"key": "8MHzatmega168",
|
||||
"label": "ATmega168 (3.3V, 8 MHz)"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"Arduino Mega or Mega 2560": {
|
||||
"key": "arduino:avr:mega",
|
||||
"config": [
|
||||
{
|
||||
"label": "Processor",
|
||||
"key": "cpu",
|
||||
"options": [
|
||||
{
|
||||
"key": "atmega2560",
|
||||
"label": "ATmega2560 (Mega 2560)"
|
||||
}, {
|
||||
"key": "atmega1280",
|
||||
"label": "ATmega1280"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"Arduino Leonardo": "arduino:avr:leonardo"
|
||||
},
|
||||
"language": "C/C++",
|
||||
"burn": "None",
|
||||
"upload": {
|
||||
"portSelect": "all"
|
||||
},
|
||||
"nav": {
|
||||
"compile": true,
|
||||
"upload": true,
|
||||
"save": {
|
||||
"ino": true,
|
||||
"hex": true
|
||||
},
|
||||
"setting": {
|
||||
"thirdPartyLibrary": true,
|
||||
"wiki": true
|
||||
}
|
||||
},
|
||||
"serial": {
|
||||
"ctrlCBtn": false,
|
||||
"ctrlDBtn": false,
|
||||
"baudRates": 9600,
|
||||
"yMax": 100,
|
||||
"yMin": 0,
|
||||
"pointNum": 100,
|
||||
"rts": true,
|
||||
"dtr": true
|
||||
},
|
||||
"lib": {
|
||||
"mixly": {
|
||||
"url": [
|
||||
"http://download.mixlylibs.cloud/mixly-packages/cloud-libs/arduino_avr/libs.json"
|
||||
]
|
||||
}
|
||||
},
|
||||
"web": {
|
||||
"com": "serial"
|
||||
}
|
||||
}
|
||||
1
boards/default/arduino_avr/examples/01-输入输出/01-LED闪烁.mix
Normal file
1
boards/default/arduino_avr/examples/01-输入输出/01-LED闪烁.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="%7/$M@N7uVYD-9;Xoanp" x="87" y="81"><field name="VALUE">D13连接LED\nLED将亮一秒灭一秒</field><next><block type="inout_digital_write2" id="5I?mY;XLB5aG+8WQF0,N"><value name="PIN"><shadow type="pins_digital" id=".u:BArqSJAoy%~)@9e~J"><field name="PIN">13</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="NgqfKpDv_U+=W,Sq9p8K"><field name="BOOL">HIGH</field></shadow></value><next><block type="base_delay" id="/VC4xT5Q1rM([Y)@cHHB"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="5W.@`n(d/Aaz~aF4tDFo"><field name="NUM">1000</field></shadow></value><next><block type="inout_digital_write2" id="D4AK_(3XazX9:BJJzzQz"><value name="PIN"><shadow type="pins_digital" id="``4Ml5j3KOKJy2fV_0QC"><field name="PIN">13</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="~;WUPDI?EJdru+wEQ~x6"><field name="BOOL">LOW</field></shadow></value><next><block type="base_delay" id="Mo2XM8LM3X#6c/mAD+TN"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="KGw3x~Ye;u:LqJY4#WsN"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/01-输入输出/02-开关灯.mix
Normal file
1
boards/default/arduino_avr/examples/01-输入输出/02-开关灯.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="$þi_`;z-VGa+{bL=GH" x="-264" y="115"><field name="VALUE">D2接按钮,D13接LED。\n按下按钮产生高电平,点亮LED。\n松开按钮产生低电平,熄灭LED。</field><next><block type="inout_digital_write2" id="_3sjo{/2bf,.Q)eYm#HU"><value name="PIN"><shadow type="pins_digital" id="jP:`Dt1p)5#wSHC#z@E."><field name="PIN">13</field></shadow></value><value name="STAT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="inout_highlow" id="303~O#-j1HPeBpC!xW3D"><field name="BOOL">HIGH</field></shadow><block type="inout_digital_read2" id="WHcs.@LmLv%Sh70uE+Y?"><value name="PIN"><shadow type="pins_digital" id=";#0I9(~NtIUpU=#FW|lE"><field name="PIN">2</field></shadow></value></block></value></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/01-输入输出/03-调光灯.mix
Normal file
1
boards/default/arduino_avr/examples/01-输入输出/03-调光灯.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="Za_v4_@(D7[bA+rgal2l" x="-424" y="47"><field name="VALUE">A0接电位器,D3接LED。\n调节电位器,LED灯随电位器转动改变亮度。</field><next><block type="inout_analog_write" id="P^oj@5C90vJf]vY-=z8?"><value name="PIN"><shadow type="pins_pwm" id="w@V@Vg`3i_L/h{v]ZboN"><field name="PIN">3</field></shadow></value><value name="NUM"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="2gc+GDaPe[T}qXzB1Ha["><field name="NUM">0</field></shadow><block type="math_arithmetic" id="3*E_5tsDr0{qDgQvDY)/"><field name="OP">DIVIDE</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="-(im|Jt2c0ydUhJl1w/W"><field name="NUM">1</field></shadow><block type="inout_analog_read" id="5WHgd@[1uUXs,$6^lUA7"><value name="PIN"><shadow type="pins_analog" id="`%Z`J/Z:.)IDwf|}F;dt"><field name="PIN">A0</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="C{GMjPoS/hLR6]TatmrE"><field name="NUM">4</field></shadow></value></block></value></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/01-输入输出/04-多功能按键.mix
Normal file
1
boards/default/arduino_avr/examples/01-输入输出/04-多功能按键.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="-qABfA./d?eWD(`kIwgp" x="0" y="0"><field name="VALUE">D2上连接按钮\n将看到单击、双击、长按开始、长按中、长按结束,在串口输出不同的提示语。</field></block><block type="OneButton_interrupt" id="}f_O5n}224:2XXq|:Nr*" x="0" y="85"><field name="mode">attachClick</field><value name="PIN"><shadow type="pins_digital" id="!oL_(.$Hz6x$Zq/e4LY?"><field name="PIN">2</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="ECY;UvUV6Ay_NwL8Fv;l"><field name="BOOL">HIGH</field></shadow></value><statement name="DO"><block type="serial_println" id="pc$Q)/3ryJz;.v|%jX2)"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id=".`^9ZO88n_YCcZwiI[9`"><field name="TEXT">one Click</field></block></value></block></statement></block><block type="OneButton_interrupt" id="^920H]~0ot{VcPzlnA2n" x="0" y="189"><field name="mode">attachDoubleClick</field><value name="PIN"><shadow type="pins_digital" id="^fu}Et-.O2}P)rOr/-0M"><field name="PIN">2</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="4,h`uVVTpS|$hS%(QCed"><field name="BOOL">HIGH</field></shadow></value><statement name="DO"><block type="serial_println" id="F/OZ|aF#,!+CQ,;xY9[Y"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="d+Zse%0=v9;!]N,1Dwco"><field name="TEXT">double Click</field></block></value></block></statement></block><block type="OneButton_interrupt" id="3fNVB6AeS7sH5@ox-uRe" x="0" y="293"><field name="mode">attachLongPressStart</field><value name="PIN"><shadow type="pins_digital" id="H(%2WW:M7:dYa9BltoUJ"><field name="PIN">2</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="(hH#.Y6jL;5+NZIMu{M^"><field name="BOOL">HIGH</field></shadow></value><statement name="DO"><block type="serial_println" id=";S;y^6kLB#}2BbYiA{y-"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="CJ^%VV3DuC=Ov!xGRZ5."><field name="TEXT">longPress Start</field></block></value></block></statement></block><block type="OneButton_interrupt" id="h_yWQeXR~NDsaNMDzwdZ" x="0" y="397"><field name="mode">attachDuringLongPress</field><value name="PIN"><shadow type="pins_digital" id="Lg4txf7TGpE!=A`VcK~%"><field name="PIN">2</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="}K]z+{et/J[^XW?|4vSv"><field name="BOOL">HIGH</field></shadow></value><statement name="DO"><block type="serial_println" id="FPb~%[z3!hN`[snD,k{k"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="tM}AuTQ;INcv9wTZ^Q`M"><field name="TEXT">longPressing</field></block></value></block></statement></block><block type="OneButton_interrupt" id=",FlrUSEXy--7Gv}0+;ur" x="0" y="501"><field name="mode">attachLongPressStop</field><value name="PIN"><shadow type="pins_digital" id="[6,NG[Mb]=fC~q8g~Df+"><field name="PIN">2</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="bL)4hEJ?JCxG~nA6)Qi4"><field name="BOOL">HIGH</field></shadow></value><statement name="DO"><block type="serial_println" id="$#CS)#.uhGElO*`S^=Yb"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="RIXw2g^MtE!YA=K:sQ2_"><field name="TEXT">longPress End</field></block></value></block></statement></block></xml>
|
||||
1
boards/default/arduino_avr/examples/01-输入输出/05-硬件中断.mix
Normal file
1
boards/default/arduino_avr/examples/01-输入输出/05-硬件中断.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="v)MT}Dct]P130YkSVq3C" x="0" y="0"><field name="VALUE">硬件中断\nD2连接按钮,D12连接LED。\n按下按钮,LED灯点亮。\n再次按下按钮,LED灯熄灭。如此往复。</field></block><block type="base_setup" id="wZXYB!R2R{@1*M1+tdv2" x="0" y="125"><statement name="DO"><block type="controls_attachInterrupt" id="Sr-*1#DV!rHf1nCy6H[Y"><field name="mode">RISING</field><value name="PIN"><shadow type="pins_interrupt" id="13%-H+9.iRg5SEcGMqj6"><field name="PIN">2</field></shadow></value><statement name="DO"><block type="inout_digital_write2" id="gO~;SN|yASiQ=Fde:il@"><value name="PIN"><shadow type="pins_digital" id="D)Xc9*d4kx+^dZ-bYzjb"><field name="PIN">12</field></shadow></value><value name="STAT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="inout_highlow" id=";_4MaL98h]t}2L]!R4S]"><field name="BOOL">HIGH</field></shadow><block type="logic_negate" id="Rqt,xFN-_*uphvdJm~q^"><value name="BOOL"><block type="inout_digital_read2" id="^}U:fN*nYHG1FG51IB[6"><value name="PIN"><shadow type="pins_digital" id="*~`3S%8rfAa!CE9E9Dg7"><field name="PIN">12</field></shadow></value></block></value></block></value></block></statement></block></statement></block></xml>
|
||||
1
boards/default/arduino_avr/examples/01-输入输出/06-软件中断.mix
Normal file
1
boards/default/arduino_avr/examples/01-输入输出/06-软件中断.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id=".j3YgQW3wV=4`uA`I1Vr" x="0" y="0"><field name="VALUE">软件中断\n\nD4连接按钮,D12连接LED。\n将看到按钮被按下,LED灯亮灭切换。</field></block><block type="base_setup" id="WuzzT{pjb],,.!#NwDMc" x="0" y="125"><statement name="DO"><block type="controls_attachPinInterrupt" id="`Q`Sq,Y#;DsiRPRa{{qm"><field name="mode">FALLING</field><value name="PIN"><shadow type="pins_digital" id="f6g.$b*FoSiss5`D|SoK"><field name="PIN">4</field></shadow></value><statement name="DO"><block type="inout_digital_write2" id="n!Z0b=b+7rY{We`l8:Qo"><value name="PIN"><shadow type="pins_digital" id="j7NVjtcC2*$J_6A@H!CY"><field name="PIN">12</field></shadow></value><value name="STAT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="inout_highlow" id="{d/Lz+v|.e%/5|AB8Ux="><field name="BOOL">HIGH</field></shadow><block type="logic_negate" id="VLna2#3*e}2[a!oD`Xn0"><value name="BOOL"><block type="inout_digital_read2" id=")9C^/1UhrVNCnd5VXQYE"><value name="PIN"><shadow type="pins_digital" id="kaL#=paLrfn)Z$?8FM+j"><field name="PIN">12</field></shadow></value></block></value></block></value></block></statement></block></statement></block></xml>
|
||||
1
boards/default/arduino_avr/examples/01-输入输出/07-声控灯.mix
Normal file
1
boards/default/arduino_avr/examples/01-输入输出/07-声控灯.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="W#8dF_x;U@SNrzk[Cvo-" x="-34" y="150"><field name="VALUE">A1连接声音传感器,D11连接LED灯。\n先通过串口输出A1的模拟值,观察声音值大小。\n当声音传感器的模拟值大于300时,点亮11引脚的LED灯1秒,否则熄灭LED。</field><next><block type="serial_begin" id="Cty8^9}RR`Y@%nFE._"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="gMxFn;x.7JE=5p|eHzX:"><field name="NUM">9600</field></shadow></value><next><block type="serial_println" id="w?w=YA!?eE:J:MfP[Q(u"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="inout_analog_read" id="wpI69.3FLwHPPZF[#GJe"><value name="PIN"><shadow type="pins_analog" id="e_/?RL!4I=Z#LdrPg~#F"><field name="PIN">A1</field></shadow></value></block></value><next><block type="controls_if" id="dRSIh)3Y+qiuq%tM#^mh"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id=".?my,OTJ`[oF(r+_/L7b"><field name="OP">GT</field><value name="A"><block type="inout_analog_read" id="ktK,]Ti0kB7O#)`]!9rH"><value name="PIN"><shadow type="pins_analog" id="/t2D+DEXcN?hzbed~Ysa"><field name="PIN">A1</field></shadow></value></block></value><value name="B"><block type="math_number" id="`Gr[zml/ltXQEd/H^=Eu"><field name="NUM">300</field></block></value></block></value><statement name="DO0"><block type="inout_digital_write2" id="=b7hlVa9xt{w0F{%Y(d}"><value name="PIN"><shadow type="pins_digital" id="in9dmts4O^L+(DQ1Y4lw"><field name="PIN">11</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="0WUTA//*3Jt{hm{k|?nf"><field name="BOOL">HIGH</field></shadow></value><next><block type="base_delay" id="CVZ;+|.dn;[QsU4)?=6."><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="KWiJwGv5JMTzV1n+uS.H"><field name="NUM">1000</field></shadow></value></block></next></block></statement><statement name="ELSE"><block type="inout_digital_write2" id="wiL0n;#%S¾9t;U##;8"><value name="PIN"><shadow type="pins_digital" id="QkZ^=WxlF-nijDai#=tM"><field name="PIN">11</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="7/V}@4^8a4_wOq|ei.D}"><field name="BOOL">LOW</field></shadow></value></block></statement></block></next></block></next></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/01-输入输出/08-脉冲.mix
Normal file
1
boards/default/arduino_avr/examples/01-输入输出/08-脉冲.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="}5vt7]DJj#krIVoVW5B}" x="-1151" y="-156"><field name="VALUE">D3连接蜂鸣器\n在串口监视器中将看到高电平的脉冲周期</field><next><block type="serial_begin" id=".{(7Pnc*ml{|WNv4HCpO"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="ZksQo`sZwdR`sr*rlZS?"><field name="NUM">9600</field></shadow></value><next><block type="controls_tone" id="52%whi3L!R.w]fBL*H^h"><value name="PIN"><shadow type="pins_digital" id="qJ,wHR;1d^VR!P@WW(L_"><field name="PIN">3</field></shadow></value><value name="FREQUENCY"><shadow type="tone_notes" id="=$?8I@M,g+R@DMLsJ]UN"><field name="STAT">131</field></shadow></value><next><block type="serial_println" id="!vwG^kX~|XC-X{G=P+}L"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="inout_pulseIn" id="}R~xk:5_.~PTs,ZjgL0j"><field name="STAT">HIGH</field><value name="PIN"><shadow type="pins_digital" id="s`zzL!t%x[tn6fBmIYjr"><field name="PIN">3</field></shadow></value></block></value><next><block type="serial_println" id="GEQWh`h|R!u2]5vUiaxe"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="inout_pulseIn2" id="-Ty%YY%N4YJDT[JjW_2C"><field name="STAT">HIGH</field><value name="PIN"><shadow type="pins_digital" id="Sl.[,qfJXp+.3Me7y1Aa"><field name="PIN">3</field></shadow></value><value name="TIMEOUT"><shadow type="math_number" id="amSJXZ=gZ6lTw7v1m[X0"><field name="NUM">1000000</field></shadow></value></block></value><next><block type="controls_delay" id="}l3b1BL/7lv;e,wLF5Gb"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="$u.`1Fp|m1[4qVN[b2;`"><field name="NUM">1000</field></shadow></value><next><block type="serial_println" id="_q(0F{V[lHEA|$b@W$[m"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="37c:[jYF@;w~`rQ$EP(v"><field name="TEXT">***********************************************************</field></block></value><next><block type="controls_notone" id="aE{xg~BN89Nvl7O?Hu)x"><value name="PIN"><shadow type="pins_digital" id="+ou])@MS`EJgKn7c{/37"><field name="PIN">3</field></shadow></value><next><block type="controls_delay" id="O|E@ds]y[eYNkJC.2jeR"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="}%i}Y10l|mbgv2ACz3/Z"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="controls_for" id="-E|,x{YX(eFJY_#*1Oqj" x="106" y="191"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="v1f9r*croH.0u/R5spgD"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id=".P~^60_ED*+r=i}R5g6n"><field name="NUM">255</field></shadow></value><value name="STEP"><shadow type="math_number" id="iY.]4mt)Le~9q53Q1xDv"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="inout_soft_analog_write" id="qEOY2/1t#5b57dB{gXFj"><value name="PIN"><shadow type="pins_digital" id="S]R=WbHh@U3wOk#c%rx*"><field name="PIN">13</field></shadow></value><value name="NUM"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="CKcbol6F,%~M!8RPMV}L"><field name="NUM">255</field></shadow><block type="variables_get" id="7E%YK;VP2-Q:A^-^;{}+"><field name="VAR">i</field></block></value><next><block type="controls_delay" id="%Ov0TG^[M5[a3_[~UzjY"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="Zi0G_I#Rz;L5!#(/Zgc)"><field name="NUM">5</field></shadow></value></block></next></block></statement><next><block type="controls_for" id="Zsu/FwknNHrT~|=76vdg"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="(lk31;1-2f|l)70?i2j0"><field name="NUM">254</field></shadow></value><value name="TO"><shadow type="math_number" id="F?,Jb[9!K]*.zI@x-haY"><field name="NUM">1</field></shadow></value><value name="STEP"><shadow type="math_number" id="uFtD43nnp4x`$qi9lX[C"><field name="NUM">-1</field></shadow></value><statement name="DO"><block type="inout_soft_analog_write" id="I0pShU;aE!).n:7$qUD1"><value name="PIN"><shadow type="pins_digital" id="1YPNr#4vxG[=O^lxn@z`"><field name="PIN">13</field></shadow></value><value name="NUM"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="CKcbol6F,%~M!8RPMV}L"><field name="NUM">255</field></shadow><block type="variables_get" id="YbTQ|2ApKlGRm4HV|E:B"><field name="VAR">i</field></block></value><next><block type="controls_delay" id="V[!uU7D[2}M;/tS|(E%;"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="qMVodeJh4]I15AamwsAG"><field name="NUM">5</field></shadow></value></block></next></block></statement></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="igiz?e):w#HplBjsO%%v" x="-1855" y="-195"><statement name="DO"><block type="lists_create_with_text2" id="L8($P=wD.ArJw|~~C)$;"><field name="TYPE">byte</field><field name="VAR">mylist</field><field name="SIZE">11</field><field name="TEXT">0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90</field></block></statement></block><block type="factory_notes" id="Y$yR`jMTSv7=79lWzOh6" x="-1856" y="-92"><field name="VALUE">D8连接到74HC595芯片的使能引脚\nD3连接到74HC595芯片的时钟引脚\nD9连接到74HC595芯片的数据引脚\n利用ShiftOut模块实现单位数码管的随机数字骰子</field><next><block type="controls_for" id="Q/N_N1AHAckzK[O={l7o"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="Cbc;^U3-,~(-H:8_~8yQ"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="tOu34.?W39C-s,SRSQ[u"><field name="NUM">5</field></shadow></value><value name="STEP"><shadow type="math_number" id="^2a7dFgb;nB2mH#{`E@k"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="inout_digital_write2" id="pT;vH8m#iL]*Rr:n#RX7"><value name="PIN"><shadow type="pins_digital" id="_|@jzNFq+RSAFAy:*qal"><field name="PIN">8</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="qgd^CoU`o}VkohX}iuVA"><field name="BOOL">LOW</field></shadow></value><next><block type="inout_shiftout" id="bD/r^6^|tfpW^1XU+;r."><field name="ORDER">MSBFIRST</field><value name="PIN1"><shadow type="pins_digital" id="M)[u7CK2rfny|s7R+hnJ"><field name="PIN">9</field></shadow></value><value name="PIN2"><shadow type="pins_digital" id="6D^qh3A/bAU[-uDvE^N}"><field name="PIN">3</field></shadow></value><value name="DATA"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="++{T3frtZU2d1h/7)Bb?"><field name="NUM">0</field></shadow><block type="lists_getIndex" id="zwai_-(Ur0%Nuij{x/3v"><field name="VAR">mylist</field><value name="AT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="4h8sw|vHIA-Xls;aKniO"><field name="NUM">1</field></shadow><block type="math_random_int" id="EUtItk]X[+N7TIE}rRk`"><value name="FROM"><shadow type="math_number" id="4l`c=][n7P!3Ns(V=9G3"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="^SCoo7*7YU(Zd4^lsy[c"><field name="NUM">10</field></shadow></value></block></value></block></value><next><block type="inout_digital_write2" id="96IMy*+5{7e*Fs;t51iH"><value name="PIN"><shadow type="pins_digital" id=":ND]MB0O::y_1hoYA+lS"><field name="PIN">8</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="/5S`OgGs6Pov,x`)~h2a"><field name="BOOL">HIGH</field></shadow></value><next><block type="controls_delay" id="yY}-R/!02GFA`@l-h#?J"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="$ZV/awIZe9=61y(6:!+K"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="YP:L9EuH64jex9U3d)`N" x="-1136" y="-392"><statement name="DO"><block type="lists_create_with_text2" id="ZC9WyxxooVYf00kr57hU"><field name="TYPE">int</field><field name="VAR">Light</field><field name="SIZE">9</field><field name="TEXT">1,2,4,8,16,32,64,128,256</field></block></statement></block><block type="factory_notes" id="Y$yR`jMTSv7=79lWzOh6" x="-1162" y="-283"><field name="VALUE">D8连接到74HC595芯片的使能引脚\nD12连接到74HC595芯片的时钟引脚\nD11连接到74HC595芯片的数据引脚\n实现8个LED的流水灯效果</field><next><block type="controls_for" id="A[Q3{)XC{j+FQ+J;uHLX"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="e)HZZ*.e*Ot?%_.1*?m9"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="EHXwf@PV;Jy-k)niG*Qd"><field name="NUM">8</field></shadow></value><value name="STEP"><shadow type="math_number" id="~E~~ay{VLSH}.Y%`-Ie6"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="inout_digital_write2" id="aDu?1$]z[K/k,gJUDr]*"><value name="PIN"><shadow type="pins_digital" id="q?NCDdCWCG*H#AWbsbO7"><field name="PIN">8</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="xkx%pE@=`hDOQaKvwcY("><field name="BOOL">LOW</field></shadow></value><next><block type="inout_shiftout" id="qRvsqRaa!5k(Kv1Q36}T"><field name="ORDER">MSBFIRST</field><value name="PIN1"><shadow type="pins_digital" id="Y!QDa6ioUX!j$nqNzP7i"><field name="PIN">11</field></shadow></value><value name="PIN2"><shadow type="pins_digital" id="]0:V8q]aOqoQPQDaPOeb"><field name="PIN">12</field></shadow></value><value name="DATA"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="P)G,(nMDuuLgcsP;moHX"><field name="NUM">0</field></shadow><block type="lists_getIndex" id="dt]pgJRC{pLRg5=F6MAJ"><field name="VAR">Light</field><value name="AT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="-iO:-|g;)$PhW!DOQCZ6"><field name="NUM">1</field></shadow><block type="variables_get" id="k|9Hd0SRY~wu8t*EU,gz"><field name="VAR">i</field></block></value></block></value><next><block type="inout_digital_write2" id="Q~k$mlYF82wHK097iy^)"><value name="PIN"><shadow type="pins_digital" id="ia|eO/AW5lMkCl^GYGW+"><field name="PIN">8</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="_v#G7K{j()ys,O6)O+:Z"><field name="BOOL">HIGH</field></shadow></value><next><block type="controls_delay" id="6Yl^.FmIT^V/r-2mv^Ch"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="LT80mn#mmTCBu1XuJ/9;"><field name="NUM">1000</field></shadow></value><next><block type="inout_digital_write2" id="Az.sB;{S@0,Inlxb{]K9"><value name="PIN"><shadow type="pins_digital" id="VX1s-%z$}/#oa)DV6z)$"><field name="PIN">8</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="|t=;|*yxVALibLklm9fr"><field name="BOOL">LOW</field></shadow></value><next><block type="inout_shiftout" id="+l2P~Rn)`G}CtvjS_tt*"><field name="ORDER">MSBFIRST</field><value name="PIN1"><shadow type="pins_digital" id="K6n]wf3sWaVP0.ehEB:L"><field name="PIN">11</field></shadow></value><value name="PIN2"><shadow type="pins_digital" id="*jHY5vvRpZx5atF6=ei."><field name="PIN">12</field></shadow></value><value name="DATA"><shadow type="math_number" id="y^3w/eQ+D9YZ5puUo)"><field name="NUM">0</field></shadow></value><next><block type="inout_digital_write2" id="fT=WB[a/L):_jQup3UNC"><value name="PIN"><shadow type="pins_digital" id="Y~)xTCZQ*nFT2sb?6,+E"><field name="PIN">8</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="uVdxnA/1B:N#Az:DY:ed"><field name="BOOL">HIGH</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/02-控制/01-初始化.mix
Normal file
1
boards/default/arduino_avr/examples/02-控制/01-初始化.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="fx.tMK3Mp-F:gO98b.{M" x="0" y="0"><field name="VALUE">D13连接LED。\n在初始化内的程序,\n只会在硬件上电后执行一次,\n一般用来放初始化设置程序。</field></block><block type="base_setup" id="M41Ca~txmdyL=m{y!@1/" x="0" y="125"><statement name="DO"><block type="inout_digital_write2" id="#!t2#L)F#SwB:p2:]kD;"><value name="PIN"><shadow type="pins_digital" id="y5gM/fre}!!`c[#kFG|g"><field name="PIN">13</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="0P`{XGay()kC;A6w:8ax"><field name="BOOL">HIGH</field></shadow></value><next><block type="controls_delay" id="sQ6rToqql,q6iY}4Y8P,"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="(5;}h$x2P6c[K,-$bYA("><field name="NUM">1000</field></shadow></value><next><block type="inout_digital_write2" id="3%U{^MF_ROJm_}qLBVP-"><value name="PIN"><shadow type="pins_digital" id="zByWH{/[6-wU_|qd%lH("><field name="PIN">13</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="Ew}xmogL~$`)X=,+((DX"><field name="BOOL">LOW</field></shadow></value><next><block type="controls_delay" id="}@P)G[bVgbo45BtQg)dv"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id=";TgerMk/D?DDmc!bJ{NV"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></statement></block></xml>
|
||||
1
boards/default/arduino_avr/examples/02-控制/02-LED流水灯.mix
Normal file
1
boards/default/arduino_avr/examples/02-控制/02-LED流水灯.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="lCJZ7n8*-UoexFf+!*fK" x="-120" y="59"><field name="VALUE">D5-D13接LED灯\n用循环结构来实现流水灯效果</field><next><block type="controls_for" id="Qa,vGGq/tiwt=[Qytxpm"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="n,Mm[pP5#)nlaqch1;:5"><field name="NUM">5</field></shadow></value><value name="TO"><shadow type="math_number" id="!)LQW6h^QyBv@R%/dZ_9"><field name="NUM">13</field></shadow></value><value name="STEP"><shadow type="math_number" id="q`z|iL8bCyCe[*m8u5+t"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="inout_digital_write2" id="Mbh8=47nE;%o9rj?#9{="><value name="PIN"><shadow xmlns="http://www.w3.org/1999/xhtml" type="pins_digital" id="2i23T;,t`QhYXfNB/DuE"><field name="PIN">10</field></shadow><block type="variables_get" id="JucAL=jOZIm6a7_hglMl"><field name="VAR">i</field></block></value><value name="STAT"><shadow type="inout_highlow" id="F+J#+S?#fn/8lNpAl0aV"><field name="BOOL">HIGH</field></shadow></value><next><block type="base_delay" id="^vndshs]x1MRmTAgQw2t"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="DzusC,dM8Pit|g4,PHwL"><field name="NUM">1000</field></shadow></value><next><block type="inout_digital_write2" id="l,.!`saRsImgQwIjMlW0"><value name="PIN"><shadow xmlns="http://www.w3.org/1999/xhtml" type="pins_digital" id="1XChT6~z}v*+kC+9xa0,"><field name="PIN">10</field></shadow><block type="variables_get" id="=XGdRb+SldN?=hq+If9?"><field name="VAR">i</field></block></value><value name="STAT"><shadow type="inout_highlow" id="Dy_km`Yvy*X=j~|4;U%^"><field name="BOOL">LOW</field></shadow></value><next><block type="base_delay" id="YNMN?2m~}k=`G/-X%HK9"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="#g!9gA^d4n:%=(qkXb.]"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/02-控制/03-While循环.mix
Normal file
1
boards/default/arduino_avr/examples/02-控制/03-While循环.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="ByGnom]5$%;#v]ol3bxR" x="182" y="216"><field name="VALUE">D7连接按钮\n按钮按下时,串口输出提示语“D7 is HIGH”</field><next><block type="serial_begin" id="XY3;-e*k(6^}v0k|1%Jx"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="u];2q{0e,g3~bywqPQMI"><field name="NUM">9600</field></shadow></value><next><block type="controls_whileUntil" id=".k:OO#hs_Uss~!~ePdaL"><field name="MODE">WHILE</field><value name="BOOL"><shadow xmlns="http://www.w3.org/1999/xhtml" type="logic_boolean" id="Iq=sb1Ih8N)M-iOqdXTm"><field name="BOOL">TRUE</field></shadow><block type="inout_digital_read2" id="(=G~~.i-.mX8{!Xe;fyt"><value name="PIN"><shadow type="pins_digital" id="Z.8;{J#A1X!tm-us+gE!"><field name="PIN">7</field></shadow></value></block></value><statement name="DO"><block type="serial_println" id="?4PP;LS7yM{Kem.[?Myh"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="oaXgjm5F[lf_Jt:.U5|1"><field name="TEXT">D7 is HIGH</field></block></value></block></statement></block></next></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/02-控制/04-延时灯.mix
Normal file
1
boards/default/arduino_avr/examples/02-控制/04-延时灯.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="e2v=iH.N4lJBVsIUE5[Q" x="-431" y="-180"><field name="VALUE">D2连接按钮,D12连接LED\n按下按钮,LED亮3秒,然后熄灭。</field><next><block type="controls_if" id="dR3W+Bup*dZ+IsQrSQCf"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="inout_digital_read2" id=";%dR?8,W/hCY-lp|K#-r"><value name="PIN"><shadow type="pins_digital" id="{NX?F{?I4QR*pHUUX7j{"><field name="PIN">2</field></shadow></value></block></value><statement name="DO0"><block type="inout_digital_write2" id="t`n+L^?}ZLX)~Cw3v=.{"><value name="PIN"><shadow type="pins_digital" id="@2l(Gso3]CZ0J*zMEJa2"><field name="PIN">12</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="J-5cufzT3+J9Ze[iQ,pU"><field name="BOOL">HIGH</field></shadow></value><next><block type="base_delay" id="k,dQXge3#jSsFiZJrSN+"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="nGVe4:8C7-uGqRk?H)R]"><field name="NUM">3000</field></shadow></value></block></next></block></statement><statement name="ELSE"><block type="inout_digital_write2" id="8?L8Dh[)baeaz+.)b,Xv"><value name="PIN"><shadow type="pins_digital" id="-v3w+m2@br0;3B(UAvN["><field name="PIN">12</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="+iW]yPHZ;U0Bb|SCzuU?"><field name="BOOL">LOW</field></shadow></value></block></statement></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="Iq3KhN3WM$@.e#D%fnUH" x="0" y="0"><field name="VALUE">D12连接LED\n每隔500ms,切换亮灭效果</field></block><block type="base_setup" id="*](F}Au!RAeas|p#G7vk" x="0" y="85"><statement name="DO"><block type="controls_mstimer2" id="f+j)Z1L{BTbBfcCXjhsg"><value name="TIME"><shadow type="math_number" id=",=l8os)Ae$f`HT{O|.)U"><field name="NUM">500</field></shadow></value><statement name="DO"><block type="inout_digital_write2" id="[K1BXhMV~|AK^^2]kzEF"><value name="PIN"><shadow type="pins_digital" id="0{XS?.EM|!qYddr/JxPn"><field name="PIN">12</field></shadow></value><value name="STAT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="inout_highlow" id="J+wZCZ9vCi$M[u^6c]3@"><field name="BOOL">HIGH</field></shadow><block type="logic_negate" id="@-*_!D=Gwx.Q!QJp*0{)"><value name="BOOL"><block type="inout_digital_read2" id="jhqkwk_,?O3+FhkR;)e("><value name="PIN"><shadow type="pins_digital" id="^.gu~73L?z6GgK*QDLU#"><field name="PIN">12</field></shadow></value></block></value></block></value></block></statement><next><block type="controls_mstimer2_start" id="MIYoNm13sFc}bA`|2mBh"></block></next></block></statement></block></xml>
|
||||
1
boards/default/arduino_avr/examples/02-控制/06-简单定时器.mix
Normal file
1
boards/default/arduino_avr/examples/02-控制/06-简单定时器.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="_2v!q$ffbws$F#p1U!d{" x="0" y="0"><field name="VALUE">D12,D13分别连接LED灯\n每隔200ms,D12引脚LED灯切换亮灭;\n每隔300ms,D13引脚LED灯切换亮灭;\n简单定时器常用于多任务处理</field></block><block type="simple_timer" id="8a-cE*R-,)q*z$J^*UYF" x="0" y="125"><field name="NO">1</field><value name="timein"><shadow type="math_number" id="Rmo`fsb%j^Xp3g*[mqIu"><field name="NUM">200</field></shadow></value><statement name="zxhs"><block type="inout_digital_write2" id="1?N!cFw+WUCOcq:5q|v]"><value name="PIN"><shadow type="pins_digital" id="/O.E1Ln2o^,u(XHBGTh2"><field name="PIN">12</field></shadow></value><value name="STAT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="inout_highlow" id="SOuS},cI|/1[X-Z6pa-O"><field name="BOOL">HIGH</field></shadow><block type="logic_negate" id="+8Fc5Q==2(Xg#;oyp=0Q"><value name="BOOL"><block type="inout_digital_read2" id="aOGRjB]BvN2f0kg)cZ.X"><value name="PIN"><shadow type="pins_digital" id="Sl/~A?Y,$2O#TNH8p:/x"><field name="PIN">12</field></shadow></value></block></value></block></value></block></statement></block><block type="simple_timer" id="=IygVs#+.#^ykCQa(;SX" x="0" y="251"><field name="NO">2</field><value name="timein"><shadow type="math_number" id="hT*1Gw#f``*+O-H9uUWT"><field name="NUM">300</field></shadow></value><statement name="zxhs"><block type="inout_digital_write2" id="{[5!jD][ah2ZImeg9piV"><value name="PIN"><shadow type="pins_digital" id="K}S@:9t{yg:8YNSs(0L("><field name="PIN">13</field></shadow></value><value name="STAT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="inout_highlow" id="SOuS},cI|/1[X-Z6pa-O"><field name="BOOL">HIGH</field></shadow><block type="logic_negate" id="#s477eC~iW-}}4VO(~h?"><value name="BOOL"><block type="inout_digital_read2" id="PTS%mAWk*=CsttbZfS.w"><value name="PIN"><shadow type="pins_digital" id="o7-sv((@s[+,QOd[fg3d"><field name="PIN">13</field></shadow></value></block></value></block></value></block></statement></block></xml>
|
||||
1
boards/default/arduino_avr/examples/02-控制/07-随机亮灯.mix
Normal file
1
boards/default/arduino_avr/examples/02-控制/07-随机亮灯.mix
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="`yYM50v;j}xe6nR(Uq/K" x="0" y="0"><field name="VALUE">D13,D12分别接1个LED模块,\nD12的LED每隔200ms亮灭一次\nD13的LED每隔300ms亮灭一次</field></block><block type="SCoopTask" id="23Z[I?}3A2G}$_-,?cRL" x="0" y="105"><field name="_tasknum">1</field><statement name="loop"><block type="inout_digital_write2" id="jU}5S,RuRqiJmA0^$1(^"><value name="PIN"><shadow type="pins_digital" id="]Ji5=m.a(Q0[]fV9S0)@"><field name="PIN">13</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="!(oeV|b[Dku8i1d]1B}!"><field name="BOOL">HIGH</field></shadow></value><next><block type="SCoop_sleep" id="M+aksAbSMnG_!1~K4A.z"><value name="sleeplength"><shadow type="math_number" id="NUPxZte%`k@zHkZ@/WF*"><field name="NUM">300</field></shadow></value><next><block type="inout_digital_write2" id="m~vZF40FVd?:sIM[6z7|"><value name="PIN"><shadow type="pins_digital" id="^^/3,:k|ny7b*0A^|jU0"><field name="PIN">13</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="},)v!@TJ+Wtk*dQ,CYII"><field name="BOOL">LOW</field></shadow></value><next><block type="SCoop_sleep" id="R}/+(;8eq2w*HqfTFweJ"><value name="sleeplength"><shadow type="math_number" id="hMpB-a,M=v)9xN-:q*oQ"><field name="NUM">300</field></shadow></value></block></next></block></next></block></next></block></statement></block><block type="SCoopTask" id="p+@q=4cflk*)/Kp{+DBE" x="0" y="354"><field name="_tasknum">2</field><statement name="loop"><block type="inout_digital_write2" id="Uf=CI?}xS;34tom~n23/"><value name="PIN"><shadow type="pins_digital" id="VKbfH[PDx^?df_ORnOm%"><field name="PIN">12</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="k^fV}IHHenLRtj?me5lK"><field name="BOOL">HIGH</field></shadow></value><next><block type="SCoop_sleep" id="[[yL7-q.P.^z+y61~^.P"><value name="sleeplength"><shadow type="math_number" id="?T$m}iG#${_}it$PIru?"><field name="NUM">200</field></shadow></value><next><block type="inout_digital_write2" id="t/?EOJ{Y=nP^sZ9j$jpV"><value name="PIN"><shadow type="pins_digital" id="wlu8EvIR^[+ao3U3]9(1"><field name="PIN">12</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="~wrGWdX3p3`kzh;0j0TU"><field name="BOOL">LOW</field></shadow></value><next><block type="SCoop_sleep" id="lIS3_XVHHsk}6x55*{9R"><value name="sleeplength"><shadow type="math_number" id="c*Rv;$6[5b4ey]wSC[91"><field name="NUM">200</field></shadow></value></block></next></block></next></block></next></block></statement></block><block type="SCoop_yield" id="dzd@gYkj7ZcD!-$}n~lY" x="0" y="603"></block></xml>
|
||||
1
boards/default/arduino_avr/examples/02-控制/09-硬件中断-秒表.mix
Normal file
1
boards/default/arduino_avr/examples/02-控制/09-硬件中断-秒表.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="azT8VQ]1k58TQS^AdZAb" x="-34" y="-72"><statement name="DO"><block type="factory_notes" id="fOlu_DE)v*cJ#04KC)-U"><field name="VALUE">秒表\n按钮传感器连接到D2\n第一次按下按钮开始计时,再次按下按钮停止计时,\n并通过串口监视器输出时间值</field><next><block type="serial_begin" id="D%EggaJ+A,ipXh.AeNpR"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="=@X{WaY_UjaV;[mq~noj"><field name="NUM">9600</field></shadow></value><next><block type="variables_declare" id="aE:G4*UURW=}l8}QBW~)"><field name="variables_type">global_variate</field><field name="VAR">startTime</field><field name="TYPE">int</field><next><block type="variables_declare" id="L|wl@VjLO!SpAA!FvqqW"><field name="variables_type">global_variate</field><field name="VAR">endTime</field><field name="TYPE">int</field><next><block type="variables_declare" id="zRFVDSU$jSmm)o5X5q.5"><field name="variables_type">global_variate</field><field name="VAR">state</field><field name="TYPE">boolean</field><value name="VALUE"><block type="logic_boolean" id="o`o$F$^bL93xFj!!/)LE"><field name="BOOL">FALSE</field></block></value><next><block type="controls_attachInterrupt" id="{oOQZfPv{9_=NaeC8-/Y"><field name="mode">RISING</field><value name="PIN"><shadow type="pins_interrupt" id="KkB5zh8DJ?2v)`GGdRU["><field name="PIN">2</field></shadow></value><statement name="DO"><block type="controls_if" id="x0}*fmYZmKu|z!RT*!4]"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="rX#fkA{kNKXxh,:wH#JK"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="uE?`FN|!jc(O^k[%GH=w"><field name="VAR">state</field></block></value><value name="B"><block type="logic_boolean" id="tSRgm1b4-%o@(t[a3bsJ"><field name="BOOL">FALSE</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="6^(w:BwrHmO5(`:y:+K."><field name="VAR">state</field><value name="VALUE"><block type="logic_boolean" id="|-p:?Op@t$(Ln6[$|gwP"><field name="BOOL">TRUE</field></block></value><next><block type="variables_set" id="@ck=nlybobPk^|AQSLjt"><field name="VAR">startTime</field><value name="VALUE"><block type="controls_millis" id="cd$`abbC))ZMi3m8NBVG"><field name="UNIT">millis</field></block></value></block></next></block></statement><statement name="ELSE"><block type="variables_set" id="6Y_dx:QK)BJHVV#RB{X/"><field name="VAR">state</field><value name="VALUE"><block type="logic_boolean" id="@T!c,!pbafFbA^TxT~fK"><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id="xbc^t;GTC[Ph+EKWM]18"><field name="VAR">endTime</field><value name="VALUE"><block type="controls_millis" id="t@rrVKp^/tr*E[?+a}vR"><field name="UNIT">millis</field></block></value><next><block type="serial_println" id="323*=o2jfFHRH::nm8.J"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="math_arithmetic" id="8x{(XkXd@Z:h$ebhq)Fy"><field name="OP">MINUS</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="B!_OK+JYozA7Ww5kE!XZ"><field name="NUM">1</field></shadow><block type="variables_get" id="{QjI`y=F,-jyCN%Xgrlv"><field name="VAR">endTime</field></block></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="!!Lx%~/I@S]1qwv9Im[I"><field name="NUM">1</field></shadow><block type="variables_get" id="m]f=KMgOJ-uKRbWw5qj3"><field name="VAR">startTime</field></block></value></block></value></block></next></block></next></block></statement></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="W}~6ec~+P;mT5l+,;]fA" x="-751" y="-144"><field name="VALUE">A0连接旋转电位器,D11连接LED\nLED灯随着电位器的旋转呈现在0-255区间的不同亮度</field><next><block type="variables_declare" id="Y6-*lP:W[J,}?m~(Xh7Q"><field name="variables_type">global_variate</field><field name="VAR">liangdu</field><field name="TYPE">int</field><value name="VALUE"><block type="base_map" id="@Guu~IxV,L]1~L^6fi+5"><field name="maptype">map_int</field><value name="NUM"><block type="inout_analog_read" id="AO9=*_J5_Qn#.J7RHOj@"><value name="PIN"><shadow type="pins_analog" id=",zboVYo8+MBm^T_g?pNt"><field name="PIN">A0</field></shadow></value></block></value><value name="fromLow"><shadow type="math_number" id="u6Zo@|Wr]dvvtiR-GyjU"><field name="NUM">0</field></shadow></value><value name="fromHigh"><shadow type="math_number" id="dMS5,4+{77WYfqaASlFW"><field name="NUM">1023</field></shadow></value><value name="toLow"><shadow type="math_number" id="][I.;eA,D-XG0R-TeES]"><field name="NUM">0</field></shadow></value><value name="toHigh"><shadow type="math_number" id="B6!l`q7pv0SL`aCNv7x{"><field name="NUM">255</field></shadow></value></block></value><next><block type="inout_analog_write" id="@7=QftUxyhzeMl]L+DN*"><value name="PIN"><shadow type="pins_pwm" id="Fi7^1kk-o#AnuQ_ZWM?y"><field name="PIN">11</field></shadow></value><value name="NUM"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="g/2y:_ga(AVq7o+1w{nO"><field name="NUM">0</field></shadow><block type="variables_get" id=",+lgv2+=qLHaI`y]fTK`"><field name="VAR">liangdu</field></block></value></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="=}ynWVr!(}h-d;yCl,X(" x="-40" y="110"><field name="VALUE">绘制SIN-COS的函数图像\n程序上传后,打开串口监视器\n并切换到绘图模式</field><next><block type="serial_begin" id="*FH*+q2A?V5*Yf4;o[9*"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="jzy(`c$`UtGEpZ1yjIry"><field name="NUM">9600</field></shadow></value><next><block type="controls_for" id="=hVHlF()/a2l*xkyiY_i"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="bP2myzI1YfRpxtf]-~+Q"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="_Ym`uml`=`k)oj/4mZH_"><field name="NUM">360</field></shadow></value><value name="STEP"><shadow type="math_number" id="EW*@r!I.)/Ti#-RBYR.="><field name="NUM">1</field></shadow></value><statement name="DO"><block type="serial_print" id=")osIjp#r`D(QJKVY|gA|"><field name="serial_select">Serial</field><field name="new_line">print</field><value name="CONTENT"><block type="math_arithmetic" id="nY=MwF;|rK2.ew=1-]zd"><field name="OP">ADD</field><value name="A"><shadow xmlns="" type="math_number" id="Xs:d*5PSsjzB!%Inn#n?"><field xmlns="" name="NUM">1</field></shadow><block type="math_arithmetic" id=")UjGHX-A=/Se6)Xq~p^q"><field name="OP">MULTIPLY</field><value name="A"><shadow xmlns="" type="math_number"><field xmlns="" name="NUM">1</field></shadow><block type="math_trig" id="_2c*siwq#l:.aV~KD*lN"><field name="OP">SIN</field><value name="NUM"><block type="variables_get" id="wh7e;Hn[7[]Q18Rf*DBp"><field name="VAR">i</field></block></value></block></value><value name="B"><shadow xmlns="" type="math_number"><field xmlns="" name="NUM">1</field></shadow><block type="math_number" id="VXJbhfnBHn6=g#kc7d**"><field name="NUM">256</field></block></value></block></value><value name="B"><shadow type="math_number" id="@log/n%BorDm:QGR(O+E"><field name="NUM">512</field></shadow></value></block></value><next><block type="serial_print" id="sQOwxQ,*1m=joCqIBvK4"><field name="serial_select">Serial</field><field name="new_line">print</field><value name="CONTENT"><block type="text" id=";p]=bCFKWa}c!`7ro53?"><field name="TEXT">,</field></block></value><next><block type="serial_println" id="nXYC@@.z%Jw)0.T7#}aP"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="math_arithmetic" id="}eL0CKC~hgFFlqb9Cy:B"><field name="OP">ADD</field><value name="A"><shadow xmlns="" type="math_number" id="Xs:d*5PSsjzB!%Inn#n?"><field xmlns="" name="NUM">1</field></shadow><block type="math_arithmetic" id="X6vsB.q5Z)Aw5nmetdT?"><field name="OP">MULTIPLY</field><value name="A"><shadow xmlns="" type="math_number"><field xmlns="" name="NUM">1</field></shadow><block type="math_trig" id="m!9jU%;-PAl[O/PowAbb"><field name="OP">COS</field><value name="NUM"><block type="variables_get" id="xiZ=FR=aAZL4cJAkqrhR"><field name="VAR">i</field></block></value></block></value><value name="B"><shadow xmlns="" type="math_number"><field xmlns="" name="NUM">1</field></shadow><block type="math_number" id="?dj*,J3G7HoC_wsWCx^]"><field name="NUM">256</field></block></value></block></value><value name="B"><shadow type="math_number" id="k-ROx[sDL}6W;Bh#a~7y"><field name="NUM">512</field></shadow></value></block></value><next><block type="base_delay" id="iHn,)wreVS0eKN?;a%_s"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id=")G3Dw4PjHKZ)#?-05-x/"><field name="NUM">200</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/03-数学/03-映射.mix
Normal file
1
boards/default/arduino_avr/examples/03-数学/03-映射.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="HBM,=JKlM@dQAe~!!-J1" x="-680" y="158"><field name="VALUE">A0接电位器\n串口输出20-180区间的数值</field><next><block type="serial_begin" id="uG{H~~BS/fIYV]6:]#m9"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="|~k?:X5%O@mN^2*m;icz"><field name="NUM">9600</field></shadow></value><next><block type="serial_println" id="3%mkwJBit8H*1C.c$8;G"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="base_map" id="gl|{eO:a]s7H=TcB_ZT-"><field name="maptype">map_int</field><value name="NUM"><block type="inout_analog_read" id="dl{4yVR8Dk.HM);]%[u]"><value name="PIN"><shadow type="pins_analog" id="ry./XNAT%FXC{YssC-91"><field name="PIN">A0</field></shadow></value></block></value><value name="fromLow"><shadow type="math_number" id="7oxU6!5BO{(gs(=]I$(O"><field name="NUM">0</field></shadow></value><value name="fromHigh"><shadow type="math_number" id="?1)93(F`=lne-!(4EjI8"><field name="NUM">1023</field></shadow></value><value name="toLow"><shadow type="math_number" id="a8Z`{VZe,EcHg^P0[xW5"><field name="NUM">20</field></shadow></value><value name="toHigh"><shadow type="math_number" id=":;@)*0mY9|k,RLwZKewJ"><field name="NUM">180</field></shadow></value></block></value><next><block type="controls_delay" id="U1!`OE%JO_m]VYHW/r~h"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="LUKeKH**C({[S7E5+0n}"><field name="NUM">500</field></shadow></value></block></next></block></next></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/03-数学/04-随机数.mix
Normal file
1
boards/default/arduino_avr/examples/03-数学/04-随机数.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="?KGHe+/?gY1*H!I69/=l" x="-275" y="189"><field name="VALUE">随机数不包括最大数,如 1—7 随机数只有 1、2、3、4、5、6。</field><next><block type="serial_begin" id="0xP_Z?UfR;o~#{*k6O2x"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="q%W?A_Kk|)ef4`l.R)PU"><field name="NUM">9600</field></shadow></value><next><block type="math_random_seed" id="XDN.NlO!#B72]8n{8dV!"><value name="NUM"><shadow type="math_number" id="qbD^ATa0_cFz2yh/;5=h"><field name="NUM">997</field></shadow></value><next><block type="serial_println" id="lbgs|Y?r9T|)0sy!m1:F"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="math_random_int" id="d1ltWbZ4YuS;0WbJ%Uq6"><value name="FROM"><shadow type="math_number" id="9QpaSrQ,_pMOQ/:04hE`"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="4s}KhB|ZJO21-{EtW=pm"><field name="NUM">100</field></shadow></value></block></value><next><block type="controls_delay" id="a5|.`(,mW^`R/Z_ma0Ga"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="VQZg[g+?(QjK)bBQ4hh4"><field name="NUM">100</field></shadow></value></block></next></block></next></block></next></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/03-数学/05-约束运算.mix
Normal file
1
boards/default/arduino_avr/examples/03-数学/05-约束运算.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="De`ruz5VtD=)vw?X%w,3" x="-1277" y="-32"><statement name="DO"><block type="serial_begin" id="esyVxp0%?{)-[C`$%/e`"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="8$F}agubXC8+abgF#e5@"><field name="NUM">9600</field></shadow></value></block></statement></block><block type="factory_notes" id="#.ucTz$+[{A3~)M:XP%E" x="-1278" y="77"><field name="VALUE">输出两个数取余的值</field><next><block type="serial_println" id="#*|lx[gI%yGgxFfu)ptc"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="math_arithmetic" id="9u)#s3WxCiH]!L(H%]GT"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="2_Vw7`;K/e[npErGqSN3"><field name="NUM">10</field></shadow></value><value name="B"><shadow type="math_number" id="yp?`VM_+}y?7_432_~Um"><field name="NUM">3</field></shadow></value></block></value><next><block type="factory_notes" id="%IASTx3#}m~=^@S94SUP"><field name="VALUE">A0连接电位器,\n将看到LED亮灭随电位器的旋转约束在0-255之间不同的亮度</field><next><block type="inout_analog_write" id="?PQldvR/W9o]+WSp6Jj:"><value name="PIN"><shadow type="pins_pwm" id="2Z!ht5x%:u5wh;wRB9O~"><field name="PIN">11</field></shadow></value><value name="NUM"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="4M5u,rAh#jqBZmI/L2Ns"><field name="NUM">0</field></shadow><block type="math_constrain" id="]oC8h`.2bfr{KqykHe~,"><value name="VALUE"><block type="math_arithmetic" id=".b14:o,/X2z5]7SRU/DN"><field name="OP">MULTIPLY</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="quTq2,zRFWC(=L#^?gc5"><field name="NUM">10</field></shadow><block type="math_arithmetic" id="64fa-`ZSvQmNWZX]d-E2"><field name="OP">QUYU</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="quTq2,zRFWC(=L#^?gc5"><field name="NUM">10</field></shadow><block type="inout_analog_read" id="|/^L,#K4_K?HZ!.-!dcL"><value name="PIN"><shadow type="pins_analog" id="G-VIsu[9=IU(#7q=V=su"><field name="PIN">A0</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="6mKII?:J2.0(oIG,k:J?"><field name="NUM">3</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="lFrP[s=H[=ZM?8)O0;Ln"><field name="NUM">50</field></shadow></value></block></value><value name="LOW"><shadow type="math_number" id="Csm0!V-ELrS,|OcsSTHt"><field name="NUM">0</field></shadow></value><value name="HIGH"><shadow type="math_number" id="2ysA]d+WP4Gy9-Jpx_}e"><field name="NUM">255</field></shadow></value></block></value></block></next></block></next></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/03-数学/06-移位计算.mix
Normal file
1
boards/default/arduino_avr/examples/03-数学/06-移位计算.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="uk{i3#|J+Vg:a2$wM}MV" x="-165" y="-77"><field name="VALUE">使用移位计算</field><next><block type="variables_declare" id="*he3DGS3:@jq;:OLX[u8"><field name="variables_type">global_variate</field><field name="VAR">item</field><field name="TYPE">int</field><value name="VALUE"><block type="math_number" id="m6G=u9g9}vA+ecZt3ZZf"><field name="NUM">4096</field></block></value><next><block type="serial_begin" id="Hr@7cg!#%(U#H#7:P[r3"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="RG5h!57N)UK?h:(.EQv3"><field name="NUM">9600</field></shadow></value><next><block type="controls_for" id="QW6^lf#;*Yb4Dv$)g%9o"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="Eimv5gSJ)q-9-/g}i8hP"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="^7K72c!uqv~!HmdO#e5*"><field name="NUM">12</field></shadow></value><value name="STEP"><shadow type="math_number" id="(YRvB.=U:SSA}fg;!9wh"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="serial_println" id="WBWTV}sOFq{{SX!-]fXp"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="math_bit" id="VIOJ;`7cBe=hiFkg[n;e"><field name="OP">>></field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="vXtSkDQWx|.aWzle)7cj"><field name="NUM">4096</field></shadow><block type="variables_get" id=";{.tGp!oWSC{?ir=qa$M"><field name="VAR">item</field></block></value><value name="B"><shadow type="math_number" id="?V7ta|AWgmo%+vP[UE0x"><field name="NUM">1</field></shadow></value></block></value><next><block type="variables_set" id="jWndQ)u5nMlH^T{ag9d{"><field name="VAR">item</field><value name="VALUE"><block type="math_bit" id="biLJh=ws;7!T5b,T0!2e"><field name="OP">>></field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="vXtSkDQWx|.aWzle)7cj"><field name="NUM">4096</field></shadow><block type="variables_get" id="`JA=R=xAFX0MS=|(!H^T"><field name="VAR">item</field></block></value><value name="B"><shadow type="math_number" id=",C-T+V/XW#`~eR(dHh7-"><field name="NUM">1</field></shadow></value></block></value></block></next></block></statement><next><block type="controls_end_program" id="0lQAm1:#]7qlv$InUOm0"></block></next></block></next></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="S#xw}jtPi![a~FhH_0}n" x="-257" y="56"><field name="VALUE">只执行一次串口输出积木块</field><next><block type="serial_begin" id="eS#A7,P~:L,!YB2cv[eq"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="xy$^OY62W!F_;m|gGyur"><field name="NUM">9600</field></shadow></value><next><block type="serial_println" id="bvPTEs$a2?ZAO;xaT+G."><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="z`me95Uyr/OEn/;fZcvQ"><field name="TEXT">I like Mixly!</field></block></value><next><block type="factory_notes" id="2DMs`q#fjTAGHAA-)riR"><field name="VALUE">串口输出数字后不换行</field><next><block type="controls_for" id="GL_Av$MuL7BSHzCh^{[*"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="8,8S2/,ulCkI}Xa6=2+H"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="Z3]Yiv[eR$MLD.MwQ?0/"><field name="NUM">6</field></shadow></value><value name="STEP"><shadow type="math_number" id="e^4:lQB5*0SlFYDk_OhC"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="serial_print" id="Vj10YTO9),K^9_4i0oy?"><field name="serial_select">Serial</field><field name="new_line">print</field><value name="CONTENT"><block type="variables_get" id="5vv:y!y%_w{6M/mzOvKZ"><field name="VAR">i</field></block></value><next><block type="serial_print" id="mF`NLwX;/0@Q;];azuMm"><field name="serial_select">Serial</field><field name="new_line">print</field><value name="CONTENT"><block type="text_char" id=";pLhtOMClaIImMcE.W1N"><field name="TEXT"> </field></block></value></block></next></block></statement><next><block type="serial_println" id="q_;qy_rsD=9}=)Y6om}L"><field name="serial_select">Serial</field><field name="new_line">println</field><next><block type="controls_end_program" id="/oEE9%Snn*=@0.yB_CQ{"></block></next></block></next></block></next></block></next></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="4Wk.%MQ40nJqX)fI/g+q" x="-278" y="164"><field name="VALUE">用转ASCII字符积木块加空格</field><next><block type="serial_begin" id="eS#A7,P~:L,!YB2cv[eq"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="xy$^OY62W!F_;m|gGyur"><field name="NUM">9600</field></shadow></value><next><block type="serial_println" id="bvPTEs$a2?ZAO;xaT+G."><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join" id="4q.Rd8s$,:i~mPa_TpxZ"><value name="A"><shadow type="text" id="HwVl%j1](aZ[sD_bFvaM"><field name="TEXT">Hello</field></shadow></value><value name="B"><shadow type="text" id="3;wxiX43KxU:`Jb^Lsny"><field name="TEXT">Mixly</field></shadow></value></block></value><next><block type="serial_println" id="@Z469x{ReQjNE[i2NRwi"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join" id="i|4Rlo#O2n.1V;[th47~"><value name="A"><shadow type="text" id="0Sorn]K44Bw6Y7[E2r2o"><field name="TEXT">Hello</field></shadow></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="m{!`wi6p!Kj$Rb~,+{Nt"><field name="TEXT"></field></shadow><block type="text_join" id="PyDjGWB]+qI4,Z4M;#W9"><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="?6C3RBmycGEKStnuZ$OW"><field name="TEXT"> </field></shadow><block type="ascii_to_char" id="??aPi5aKho{]J2F3%3g~"><value name="VAR"><shadow type="math_number" id="xu3e~4,;J{XcuL:=D]s#"><field name="NUM">127</field></shadow></value></block></value><value name="B"><shadow type="text" id="7Fl8K0VH!/8}sy+X?b_`"><field name="TEXT">Mixly</field></shadow></value></block></value></block></value><next><block type="controls_delay" id="LI8.cIyWa=z|PFc~mjqp"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="Z3n)ZF`ZrixR7Ldb}`PU"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="M=.e8s_?S~V4+(Wa-B8v" x="-219" y="105"><field name="VALUE">截取字符串中的一部分</field><next><block type="serial_begin" id="eH|I5SMkdci,6,g{AEhy"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="Bi)o6tw1#08m}9,@:1(N"><field name="NUM">9600</field></shadow></value><next><block type="serial_println" id="0!=_?_%P,h^G5OSC_FY."><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="substring" id="J:G?R-4hECM7!3H^l1*0"><value name="name"><shadow type="text" id="LxJm:aEg~@*VpzbQEncI"><field name="TEXT">I Love Mixly</field></shadow></value><value name="Start"><shadow type="math_number" id="8QDAs%0:BkTqE::d+8Ju"><field name="NUM">7</field></shadow></value><value name="end"><shadow type="math_number" id="GUL3BIcT}/aD,}E|Zp@9"><field name="NUM">12</field></shadow></value></block></value><next><block type="controls_end_program" id="Ne1b{+9D7=gH7}gpju0A"></block></next></block></next></block></next></block></xml>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 rc4" board="Arduino AVR@Arduino/Genuino Uno"><block type="base_setup" id="BW;FlBf1=G?PkND`ijxA" x="-463" y="6"><statement name="DO"><block type="serial_begin" id="bf~pF7aXupJ`d!ni9{68"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="L6P8YTnXzqPD[tMuYoan"><field name="NUM">9600</field></shadow></value><next><block type="serial_print" id="H/W]`Rt#.-?a:RJwLa$M"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="@I$Ng+4K()e}UF0,Xjp]"><field name="TEXT">=========Base64编解码=========</field></block></value><next><block type="serial_print" id="`d3Hh_Ti?-UY7wOY@vcf"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_base64_url_codec" id="J8?H9Q.iIWq.rf(:w*PB"><field name="TYPE">BASE64</field><field name="OPTION">ENCODE</field><value name="VALUE"><shadow type="text" id="GDFKfTOw=UIpH-VEmz!/"><field name="TEXT">你好Mixly</field></shadow></value></block></value><next><block type="serial_print" id=")eo[4Lod8kDO_pDa?4lv"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_base64_url_codec" id="0V2xn=os|pqjE#rZew3P"><field name="TYPE">BASE64</field><field name="OPTION">DECODE</field><value name="VALUE"><shadow type="text" id="=jqkwR}aVi!83kx1(0ky"><field name="TEXT">5L2g5aW9TWl4bHk=</field></shadow></value></block></value><next><block type="serial_print" id="#7K}Yhk3qhmV./bwQr5;"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="ut3YM,rxoiYJXdvk23W^"><field name="TEXT">==========Url编解码===========</field></block></value><next><block type="serial_print" id="Aq^Vioo*xK={vh9e}@Vp"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_base64_url_codec" id="s43sgBC4KQb+s{?,Z}K0"><field name="TYPE">URL</field><field name="OPTION">ENCODE</field><value name="VALUE"><shadow type="text" id=",bDlu;#x}f|b@ElFwUz1"><field name="TEXT">你好Mixly</field></shadow></value></block></value><next><block type="serial_print" id="x:kJ1HcUw_r,_A7qWP#s"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_base64_url_codec" id="82A@G!l-zG-JQ5S0a,P6"><field name="TYPE">URL</field><field name="OPTION">DECODE</field><value name="VALUE"><shadow type="text" id="|75viF}9th~6=1-!TzT}"><field name="TEXT">%E4%BD%A0%E5%A5%BDMixly</field></shadow></value></block></value><next><block type="serial_print" id="5fmmL?u86:g6G[Q~E)_j"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="cXmXosOy0Ir(s1{30/WN"><field name="TEXT">==============================</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml><config>{}</config><code>CiNpbmNsdWRlIDxyQmFzZTY0Lmg+CiNpbmNsdWRlIDxVUkxDb2RlLmg+CgpVUkxDb2RlIHVybENvZGU7CgpTdHJpbmcgdXJsRW5jb2RlKFN0cmluZyB1cmxTdHIpIHsKICB1cmxDb2RlLnN0cmNvZGUgPSB1cmxTdHI7CiAgdXJsQ29kZS51cmxlbmNvZGUoKTsKICByZXR1cm4gdXJsQ29kZS51cmxjb2RlOwp9CgpTdHJpbmcgdXJsRGVjb2RlKFN0cmluZyB1cmxTdHIpIHsKICB1cmxDb2RlLnVybGNvZGUgPSB1cmxTdHI7CiAgdXJsQ29kZS51cmxkZWNvZGUoKTsKICByZXR1cm4gdXJsQ29kZS5zdHJjb2RlOwp9Cgp2b2lkIHNldHVwKCl7CiAgU2VyaWFsLmJlZ2luKDk2MDApOwogIFNlcmlhbC5wcmludGxuKCI9PT09PT09PT1CYXNlNjTnvJbop6PnoIE9PT09PT09PT0iKTsKICBTZXJpYWwucHJpbnRsbihyYmFzZTY0LmVuY29kZSgi5L2g5aW9TWl4bHkiKSk7CiAgU2VyaWFsLnByaW50bG4ocmJhc2U2NC5kZWNvZGUoIjVMMmc1YVc5VFdsNGJIaz0iKSk7CiAgU2VyaWFsLnByaW50bG4oIj09PT09PT09PT1VcmznvJbop6PnoIE9PT09PT09PT09PSIpOwogIFNlcmlhbC5wcmludGxuKHVybEVuY29kZSgi5L2g5aW9TWl4bHkiKSk7CiAgU2VyaWFsLnByaW50bG4odXJsRGVjb2RlKCIlRTQlQkQlQTAlRTUlQTUlQkRNaXhseSIpKTsKICBTZXJpYWwucHJpbnRsbigiPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Iik7Cn0KCnZvaWQgbG9vcCgpewoKfQ==</code>
|
||||
1
boards/default/arduino_avr/examples/05-数组/01-一维数组输出.mix
Normal file
1
boards/default/arduino_avr/examples/05-数组/01-一维数组输出.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="y#Kes_K4:xIR1v#:ne0%" x="-167" y="25"><field name="VALUE">串口输出字符型数组元素</field><next><block type="lists_create_with2" id="PL;]W*E)Ps|+3}!*xV4W"><mutation xmlns="http://www.w3.org/1999/xhtml" items="5"></mutation><field name="TYPE">char</field><field name="VAR">CHINA</field><value name="ADD0"><block type="text_char" id="pjH6me=@yP9a+IqmBXRB"><field name="TEXT">C</field></block></value><value name="ADD1"><block type="text_char" id="t?mm{SnIzU;EuvGuTr-u"><field name="TEXT">H</field></block></value><value name="ADD2"><block type="text_char" id="?46G=`K~:aGapNJzBp?R"><field name="TEXT">I</field></block></value><value name="ADD3"><block type="text_char" id="nAdLv~gu%sk-wb^[J7pu"><field name="TEXT">N</field></block></value><value name="ADD4"><block type="text_char" id=".{X5|)]/{.h_)R)bsIzK"><field name="TEXT">A</field></block></value><next><block type="controls_for" id="jbzPL^@/YVrMTM$fN83{"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="Vur!.RWF,HZT|JNX?2Lx"><field name="NUM">1</field></shadow></value><value name="TO"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="j|MUg`E*W`E,ukztoi73"><field name="NUM">5</field></shadow><block type="lists_length" id="8qlKYMUDR}nba=bU}[q,"><field name="VAR">CHINA</field></block></value><value name="STEP"><shadow type="math_number" id="}Uqh0suBq=F5HVuRVwF,"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="serial_print" id="LOvZb?g7l6cvRXMyI!Ol"><field name="serial_select">Serial</field><field name="new_line">print</field><value name="CONTENT"><block type="lists_getIndex" id="zsAFb)FrRA]:Xu_pS9!I"><field name="VAR">CHINA</field><value name="AT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="[dcr?Q0WAQd-}bY!Wz|w"><field name="NUM">1</field></shadow><block type="variables_get" id="KCUB~TjfMVj!{$o..,FM"><field name="VAR">i</field></block></value></block></value></block></statement><next><block type="controls_end_program" id="M?5aHv,/#B`4;b~IU`Ld"></block></next></block></next></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/05-数组/02-二维数组输出.mix
Normal file
1
boards/default/arduino_avr/examples/05-数组/02-二维数组输出.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="!Ze(0oPDPgt-MfM`Mx;M" x="-338" y="116"><field name="VALUE">串口输出二维数组元素</field><next><block type="create_array2_with_text" id="]83Ha={H^ft;3e9;V;e3"><field name="TYPE">int</field><value name="name"><shadow type="math_number" id="+xoCN4bqrSZv*CU3Ry}F"><field name="NUM">array</field></shadow></value><value name="line"><shadow type="math_number" id="{EYf9HWzCx6Ie#?qEI10"><field name="NUM">3</field></shadow></value><value name="list"><shadow type="math_number" id="H5lX$C#S{XV:K`6e)gR~"><field name="NUM">3</field></shadow></value><value name="String"><shadow type="math_number" id="#qBZ9mnhrNB8/VT$VDz}"><field name="NUM">{1,2,3},{4,5,6},{7,8,9}</field></shadow></value><next><block type="controls_for" id="sy,aR:JX;)dsc4FA2UuY"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="tMKI}RV^r8#+vK,z]``("><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="zzjg+uGqHkJ8=t{/_Tt`"><field name="NUM">3</field></shadow></value><value name="STEP"><shadow type="math_number" id="^(tYAJm9x|FC5#)J=H1~"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="controls_for" id=":wxw.=Sp?!H:R*/w{^tw"><field name="VAR">j</field><value name="FROM"><shadow type="math_number" id="@O/1m+m4jviNkZff-C(O"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="Gd0U4H3fW/(=5J?+EfDB"><field name="NUM">3</field></shadow></value><value name="STEP"><shadow type="math_number" id=",A3.^6QALUyGI!WWTBGi"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="serial_print" id="JE-@(ZcRB#Y+:uuee,73"><field name="serial_select">Serial</field><field name="new_line">print</field><value name="CONTENT"><block type="text_join" id="9a;hpIqm${-.{nK?[|Gx"><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="qta!]V{yy)y$HdnbXW!n"><field name="TEXT">Hello</field></shadow><block type="get_array2_value" id="v-.j+;W%Qm@2N{M@awJc"><value name="name"><shadow type="math_number" id="lnR3iKgH4dM0kue0mfnI"><field name="NUM">array</field></shadow></value><value name="line"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="5_r?-0Mx+oEoYS]I+Nv6"><field name="NUM">1</field></shadow><block type="variables_get" id="gRIQEQyPTCl.Y+k2Z#]."><field name="VAR">i</field></block></value><value name="list"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="EJZl1ph[D}(+o-_{!O0x"><field name="NUM">1</field></shadow><block type="variables_get" id="-2j#8Q|Q.P5fmuiI~f[K"><field name="VAR">j</field></block></value></block></value><value name="B"><shadow type="text" id="=l[XeQDkGKu}3~O7lp}P"><field name="TEXT">,</field></shadow></value></block></value><next><block type="controls_if" id="Eo)Ki`yOt}gh|m,9af~v"><value name="IF0"><block type="logic_compare" id="r:#GL$|J{m8ZElv@%wzy"><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="Dfnq?1coVyUKJx5`!FCZ"><field name="OP">QUYU</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="x$by83XP6Ob~[~`9r3Pq"><field name="NUM">1</field></shadow><block type="variables_get" id="IHXJ[7=qO(=w/c#[vTOj"><field name="VAR">j</field></block></value><value name="B"><shadow type="math_number" id="Dsxu~AH{~iJo6d$s*qmt"><field name="NUM">3</field></shadow></value></block></value><value name="B"><block type="math_number" id="f71z]6h|n^$UAQJyjnz2"><field name="NUM">0</field></block></value></block></value><statement name="DO0"><block type="serial_println" id="wBNd[Mh!%9/zK-]W!U1D"><field name="serial_select">Serial</field><field name="new_line">println</field></block></statement></block></next></block></statement></block></statement><next><block type="controls_end_program" id="=rxZu$o#k??=L/HS.~QE"></block></next></block></next></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/06-逻辑/01-比较运算符.mix
Normal file
1
boards/default/arduino_avr/examples/06-逻辑/01-比较运算符.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="oaDDyHQz5zG79Bw![c*," x="54" y="86"><field name="VALUE">在A0连接电位器,D9连接LED。\n转动电位器,大于600灯一直亮,在400和600之间,灯灭,小于400灯闪。</field><next><block type="serial_println" id="p7_5BYklUm;cR;))SMWV"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="inout_analog_read" id="6X5h3CQd+40Jdyoapej/"><value name="PIN"><shadow type="pins_analog" id=";E-0OsTKDjSZLwKZ{E:n"><field name="PIN">A0</field></shadow></value></block></value><next><block type="controls_delay" id="UdK_@ZtLRC3G)qhyX1es"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="vN]ZH8pO(x~L!INGn^BJ"><field name="NUM">1000</field></shadow></value><next><block type="controls_if" id="5g0bewqag9j[pU+SU.u!"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="1" else="1"></mutation><value name="IF0"><block type="logic_compare" id="o46q6CsR}E(om5stdk8U"><field name="OP">GTE</field><value name="A"><block type="inout_analog_read" id="G1B}F7$,.3U.qe|^-M4s"><value name="PIN"><shadow type="pins_analog" id="?|sAhQ%)6//6+/sWb1zp"><field name="PIN">A0</field></shadow></value></block></value><value name="B"><block type="math_number" id="|*BfxhMx0/DJLQ%+C@g9"><field name="NUM">600</field></block></value></block></value><statement name="DO0"><block type="inout_digital_write2" id="F8pkAI/i]h_/`Y%!FkOC"><value name="PIN"><shadow type="pins_digital" id="/WiQZw3L-[_~}6BmS]y5"><field name="PIN">9</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="(:ze}`jZ*%y#P{%Y-vH,"><field name="BOOL">HIGH</field></shadow></value></block></statement><value name="IF1"><block type="logic_compare" id=";j~4L=POk}Hs_W,.uCH["><field name="OP">LTE</field><value name="A"><block type="inout_analog_read" id="+Ygf0xG9]jN#QGnRN{[p"><value name="PIN"><shadow type="pins_analog" id="r6o9gOK1Uq5Gt!lW#_^*"><field name="PIN">A0</field></shadow></value></block></value><value name="B"><block type="math_number" id=",MW:At{~fX*o5##+cJTD"><field name="NUM">400</field></block></value></block></value><statement name="DO1"><block type="inout_digital_write2" id="seuRcOh$qgOvPNARM:f-"><value name="PIN"><shadow type="pins_digital" id="q@eEG6kckADo.3$rr#_)"><field name="PIN">9</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="Y9%M%Q3^hc]!FLiMK:G7"><field name="BOOL">HIGH</field></shadow></value><next><block type="controls_delay" id="22/*WH6c)xA_7e;=1((5"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="mA!c)uPhM=.FBW){}o?D"><field name="NUM">200</field></shadow></value><next><block type="inout_digital_write2" id="GCq21UblEp$S*gNnY-k]"><value name="PIN"><shadow type="pins_digital" id="ZdvU?g78Y}TLjruf#Y^0"><field name="PIN">9</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="qpGhy#(qgjzd%4o(vOkN"><field name="BOOL">LOW</field></shadow></value><next><block type="controls_delay" id="7`WJvH,1jLZ+8NT|:+l`"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="^WWAxpbdzKPX?((F|}T^"><field name="NUM">200</field></shadow></value></block></next></block></next></block></next></block></statement><statement name="ELSE"><block type="inout_digital_write2" id="J=pAPH`Z:J3w^w2S2^fs"><value name="PIN"><shadow type="pins_digital" id="/N.@q%jAaQw:UGBIx]xe"><field name="PIN">9</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="v7$Z,+Mu?^RzGKK-a.Fc"><field name="BOOL">LOW</field></shadow></value></block></statement></block></next></block></next></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/06-逻辑/02-逻辑运算符.mix
Normal file
1
boards/default/arduino_avr/examples/06-逻辑/02-逻辑运算符.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="+lM#H;=X)K9uC#yWs?F9" x="8" y="23"><field name="VALUE">光控按钮灯\n\nA0连接光线传感器,D4连接LED,D3连接按钮\n当A0<50(光线暗)并按钮被被下时,LED为高电平\n否则,LED为低电电平</field><next><block type="controls_if" id="xG$SH4CF?ee^:R-@9]Dr"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_operation" id="syD`tfE(n0{T/+xR^6v("><field name="OP">AND</field><value name="A"><block type="logic_compare" id="vF0M?@Da)(V|[J)L$-k3"><field name="OP">LT</field><value name="A"><block type="inout_analog_read" id="b4pj`qmJqYPLrZTey$)s"><value name="PIN"><shadow type="pins_analog" id="P^Qt~4fY$(q9nP4MeWi)"><field name="PIN">A0</field></shadow></value></block></value><value name="B"><block type="math_number" id="D(p=qwAU/kjb[$]($(xK"><field name="NUM">50</field></block></value></block></value><value name="B"><block type="inout_digital_read2" id="VqV;r94(Q~GnjyO_wBj4"><value name="PIN"><shadow type="pins_digital" id="4WzAu%N5tllOcvPe].yO"><field name="PIN">3</field></shadow></value></block></value></block></value><statement name="DO0"><block type="inout_digital_write2" id="fw!+CMMCro|[@NrieoLr"><value name="PIN"><shadow type="pins_digital" id="aT4Zk)4wHHu}C@)dZI.P"><field name="PIN">4</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="}YD3($hi+)^u$TL3UG7T"><field name="BOOL">HIGH</field></shadow></value></block></statement><statement name="ELSE"><block type="inout_digital_write2" id="KqsF@z~[@tMVcaS2;A~k"><value name="PIN"><shadow type="pins_digital" id="3O{SoVAC!I(OEBGGB~{A"><field name="PIN">4</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="}Bbr?Laxs+IRZT.*D)Uu"><field name="BOOL">LOW</field></shadow></value></block></statement></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/06-逻辑/03-?语句.mix
Normal file
1
boards/default/arduino_avr/examples/06-逻辑/03-?语句.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="+lM#H;=X)K9uC#yWs?F9" x="-1512" y="-99"><field name="VALUE">声控灯\nA0连接声音传感器,D2连接LED\n当A0>50时,LED为高电平\n否则,LED为低电平</field><next><block type="serial_println" id="VoVQcP]~yy}X8NUKC#L/"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="inout_analog_read" id="kk#4$`bUP@,nl^BwIGIs"><value name="PIN"><shadow type="pins_analog" id="O2DwA?7/#(+We8KX,UcO"><field name="PIN">A0</field></shadow></value></block></value><next><block type="inout_digital_write2" id="782dX0b.V}D.S6u0ri76"><value name="PIN"><shadow type="pins_digital" id="4l1M*]:i_Y/,dq:cgdp^"><field name="PIN">2</field></shadow></value><value name="STAT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="inout_highlow" id="yE0U~17(`DSpM{q)ol;*"><field name="BOOL">HIGH</field></shadow><block type="logic_true_or_false" id="tj=i-5ADuQP,ynk^G[vY" inline="false"><value name="A"><block type="logic_compare" id="?FJ_2sfAP/p~aw2+!G(F"><field name="OP">GT</field><value name="A"><block type="inout_analog_read" id="_d{1{A^JUygB7KQ6?FMk"><value name="PIN"><shadow type="pins_analog" id="=@-DQ8M,R]lgrr-D{mx("><field name="PIN">A0</field></shadow></value></block></value><value name="B"><block type="math_number" id="uVm*@cOw0|+=.pet3A08"><field name="NUM">50</field></block></value></block></value><value name="B"><block type="inout_highlow" id="Xe}D(:xiQ.T=m@*@aiCV"><field name="BOOL">HIGH</field></block></value><value name="C"><block type="inout_highlow" id=".gN~b*v1r(h}eY8m+kxY"><field name="BOOL">LOW</field></block></value></block></value></block></next></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/07-串口/01-串口交互.mix
Normal file
1
boards/default/arduino_avr/examples/07-串口/01-串口交互.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="5st)k?W=^aVnD=p@p+dd" x="-278" y="106"><field name="VALUE">串口交互\nD9连接红色LED,D10连接黄色LED,D11连接绿色LED。\n输入R,点亮红色LED,输入Y,点亮黄色LED,输入G,点亮绿色LED。</field><next><block type="serial_begin" id="R:2=0(.l/OsyYIFHH,~;"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="/$6|]rGt4z!]m#ybD|AT"><field name="NUM">9600</field></shadow></value><next><block type="variables_declare" id="pHZn*U]cX2909+[d2P5l"><field name="variables_type">global_variate</field><field name="VAR">Light</field><field name="TYPE">char</field><value name="VALUE"><block type="text_char" id="EO1L5CBxkoKHhGS_$WeE"><field name="TEXT"> </field></block></value><next><block type="controls_if" id="mq]k4.ip:/zur:$^jPY@"><value name="IF0"><block type="serial_available" id="tjg$7Z2kQKNga2n%rEUh"><field name="serial_select">Serial</field></block></value><statement name="DO0"><block type="variables_set" id="7m#Z%1,8jD9XMsiQuB[q"><field name="VAR">Light</field><value name="VALUE"><block type="serial_parseInt_Float" id="H#?#r97F3{@:HZ`{#Gc-"><field name="serial_select">Serial</field><field name="STAT">read</field></block></value></block></statement><next><block type="controls_switch_case" id="f8xtKvR+a~M(X4)MlL|R"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="3" else="1"></mutation><value name="IF0"><block type="variables_get" id="A}y;N@(U`.tJ.WY5;5_J"><field name="VAR">Light</field></block></value><value name="IF1"><block type="text_char" id="QO/P(0aDCuY5B{:g6h=m"><field name="TEXT">R</field></block></value><statement name="DO1"><block type="inout_digital_write2" id="LGhGXtLy5:VM6Mq4)eW,"><value name="PIN"><shadow type="pins_digital" id="Q#}cG9H9^%h9N0zla94z"><field name="PIN">9</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="eJ;Iw$Egfx?x8m@W3jAF"><field name="BOOL">HIGH</field></shadow></value></block></statement><value name="IF2"><block type="text_char" id="pl_5H8MWV.gfa/G:0S|D"><field name="TEXT">Y</field></block></value><statement name="DO2"><block type="inout_digital_write2" id="7KQ%vY?1)zFvXsw[N?F="><value name="PIN"><shadow type="pins_digital" id="(RHjuj!rx5bdS0P$DwU4"><field name="PIN">10</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="lsL1?}u!c_jh_]3jWEo`"><field name="BOOL">HIGH</field></shadow></value></block></statement><value name="IF3"><block type="text_char" id="!J!qpR)K~DNLXEl{9HAH"><field name="TEXT">G</field></block></value><statement name="DO3"><block type="inout_digital_write2" id="F:X3ys=:#2I;BZ5{,%{U"><value name="PIN"><shadow type="pins_digital" id="=7:5+TD_L!%)eck2rhU="><field name="PIN">11</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="5;3#h6tCoOMq/KRHidoe"><field name="BOOL">HIGH</field></shadow></value></block></statement><statement name="ELSE"><block type="inout_digital_write2" id="-zUqd1sp9wb.!%fp=qz^"><value name="PIN"><shadow type="pins_digital" id="7{*.{#krgZ*4Up#bV]jE"><field name="PIN">9</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="8+]3iOCV5q{$K#f``6N{"><field name="BOOL">LOW</field></shadow></value><next><block type="inout_digital_write2" id="Ux9z]MZ%l5Nh=0zx8c(8"><value name="PIN"><shadow type="pins_digital" id="`o4FiYOOFA`f5|Bfna.s"><field name="PIN">10</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="E9()vIzymz_%;67JmVYd"><field name="BOOL">LOW</field></shadow></value><next><block type="inout_digital_write2" id="9|EWbdXO:B}Cf=7~H6*m"><value name="PIN"><shadow type="pins_digital" id="Tbl@T3!klqbbdrCkvxLk"><field name="PIN">11</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="uq5@fe^UUGZ/Az63CuTR"><field name="BOOL">LOW</field></shadow></value></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/07-串口/02-串口控制开关灯.mix
Normal file
1
boards/default/arduino_avr/examples/07-串口/02-串口控制开关灯.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="5st)k?W=^aVnD=p@p+dd" x="0" y="0"><field name="VALUE">串口交互\nD13接LED。\n输入1,开灯;输入0,关灯。</field><next><block type="serial_begin" id="R:2=0(.l/OsyYIFHH,~;"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="/$6|]rGt4z!]m#ybD|AT"><field name="NUM">9600</field></shadow></value><next><block type="variables_declare" id="pHZn*U]cX2909+[d2P5l"><field name="variables_type">global_variate</field><field name="VAR">Light</field><field name="TYPE">char</field><value name="VALUE"><block type="text_char" id="ck%GjEk7ki*jfddUM;N("><field name="TEXT">0</field></block></value><next><block type="controls_if" id="mq]k4.ip:/zur:$^jPY@"><value name="IF0"><block type="serial_available" id="tjg$7Z2kQKNga2n%rEUh"><field name="serial_select">Serial</field></block></value><statement name="DO0"><block type="variables_set" id="7m#Z%1,8jD9XMsiQuB[q"><field name="VAR">Light</field><value name="VALUE"><block type="serial_parseInt_Float" id="H#?#r97F3{@:HZ`{#Gc-"><field name="serial_select">Serial</field><field name="STAT">read</field></block></value></block></statement><next><block type="controls_switch_case" id="f8xtKvR+a~M(X4)MlL|R"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="2"></mutation><value name="IF0"><block type="variables_get" id="A}y;N@(U`.tJ.WY5;5_J"><field name="VAR">Light</field></block></value><value name="IF1"><block type="text_char" id="P[g91fuCahV-=%zSmwc!"><field name="TEXT">1</field></block></value><statement name="DO1"><block type="inout_digital_write2" id="LGhGXtLy5:VM6Mq4)eW,"><value name="PIN"><shadow type="pins_digital" id="Q#}cG9H9^%h9N0zla94z"><field name="PIN">13</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="eJ;Iw$Egfx?x8m@W3jAF"><field name="BOOL">HIGH</field></shadow></value></block></statement><value name="IF2"><block type="text_char" id="PfsN+G|iu39vv2~;{4Z4"><field name="TEXT">0</field></block></value><statement name="DO2"><block type="inout_digital_write2" id="7KQ%vY?1)zFvXsw[N?F="><value name="PIN"><shadow type="pins_digital" id="(RHjuj!rx5bdS0P$DwU4"><field name="PIN">13</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="lsL1?}u!c_jh_]3jWEo`"><field name="BOOL">LOW</field></shadow></value></block></statement></block></next></block></next></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="serial_begin" id="jO4]umi`?wc#]h{`~YfI" x="11" y="69"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="PbAKr|Ir|XJat%N0tS=,"><field name="NUM">9600</field></shadow></value><next><block type="controls_for" id="2jJ(FlotoW9S(EqKn3yu"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="wRiXr)fODBM{{w=ud|k^"><field name="NUM">33</field></shadow></value><value name="TO"><shadow type="math_number" id="75phmqis@~Es9/}NO~7X"><field name="NUM">127</field></shadow></value><value name="STEP"><shadow type="math_number" id="[e2..w_eEsfcMveB)wnX"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="serial_write" id="3cZR!}MgY[^+D5uL@Aow"><field name="serial_select">Serial</field><value name="CONTENT"><block type="variables_get" id="E,=B~y3D8+JUTmhVhk7A"><field name="VAR">i</field></block></value><next><block type="serial_print" id=")7`c/X[a(Gf7W{8?2Z9q"><field name="serial_select">Serial</field><field name="new_line">print</field><value name="CONTENT"><block type="text" id="eMY%i.i;=x1_@L?Nq*]T"><field name="TEXT">,DEC:</field></block></value><next><block type="serial_print" id="X,AR*Fjb3Bi=?)YS[yeW"><field name="serial_select">Serial</field><field name="new_line">print</field><value name="CONTENT"><block type="variables_get" id="Rhx/ns5uyqyQ3?,OTI!~"><field name="VAR">i</field></block></value><next><block type="serial_print" id=".V=gu}Z-/=QQDEDWWn#,"><field name="serial_select">Serial</field><field name="new_line">print</field><value name="CONTENT"><block type="text" id="qv^f[ay/#KO96A8EX#Vq"><field name="TEXT">,HEX:</field></block></value><next><block type="serial_print_num" id="CLCK*a@huD[qxd3`sFqu"><field name="serial_select">Serial</field><field name="new_line">print</field><field name="STAT">HEX</field><value name="CONTENT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="f$#X;jc2);qym%{SM+~d"><field name="NUM">0</field></shadow><block type="variables_get" id="ZgJcaMaLY!4dJt-7=wp9"><field name="VAR">i</field></block></value><next><block type="serial_print" id="5IV9[z9BfR)WLW+IN,gx"><field name="serial_select">Serial</field><field name="new_line">print</field><value name="CONTENT"><block type="text" id="gt|sjTo2`1LGU[}OBNtQ"><field name="TEXT">,BIN:</field></block></value><next><block type="serial_print_num" id="@(3`e`6n;f3z(F=*HY59"><field name="serial_select">Serial</field><field name="new_line">print</field><field name="STAT">BIN</field><value name="CONTENT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="f$#X;jc2);qym%{SM+~d"><field name="NUM">0</field></shadow><block type="variables_get" id="+|gXmx|*os!6$QA{F6u+"><field name="VAR">i</field></block></value><next><block type="serial_println" id="j((!vs0AW`4kpQP`#XJf"><field name="serial_select">Serial</field><field name="new_line">println</field></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement><next><block type="controls_end_program" id="-j_.K4C-MfpFqkERnrty"></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="ir_recv" id="6bbMjUOryE8IInlp1!Yy" x="69" y="85"><field name="VAR">ir_item</field><value name="PIN"><shadow type="pins_digital" id="H2OX/[-tWpuo-7;bp8o="><field name="PIN">2</field></shadow></value><statement name="DO"><block type="serial_print_num" id="{$+DV{ZShLUngWXDxU#s"><field name="serial_select">Serial</field><field name="new_line">println</field><field name="STAT">HEX</field><value name="CONTENT"><block type="variables_get" id="PJ94%RkQsJkj#{+GG#P,"><field name="VAR">ir_item</field></block></value><next><block type="controls_switch_case" id="ZVy!rc:]UFqwheDhU4Ff"><mutation xmlns="http://www.w3.org/1999/xhtml" elseif="3" else="1"></mutation><value name="IF0"><block type="variables_get" id="$.T0_(o|kxYVk1)K+cZ)"><field name="VAR">ir_item</field></block></value><value name="IF1"><block type="math_number" id="bd9i;jB{$:NC^Rzc=!{s"><field name="NUM">0xFFA25D</field></block></value><statement name="DO1"><block type="inout_digital_write2" id="*=qwI_Mv0#t[jo2gNy^3"><value name="PIN"><shadow type="pins_digital" id="l8_Q/N2}u]RhYMrOmyAu"><field name="PIN">9</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="_mV%yEq@}$xFD5O?0~mO"><field name="BOOL">HIGH</field></shadow></value></block></statement><value name="IF2"><block type="math_number" id="!N$RdTgrM[mS,T}R[JoL"><field name="NUM">0xFF629D</field></block></value><statement name="DO2"><block type="inout_digital_write2" id="arM77HhM9tY%ueTy-TgF"><value name="PIN"><shadow type="pins_digital" id="Be@e|6`/-Fax$HcVTE]e"><field name="PIN">10</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="dBKgG648A.Dl1)cVLHxa"><field name="BOOL">HIGH</field></shadow></value></block></statement><value name="IF3"><block type="math_number" id="q8g/Uq_OVK.-F]$nW{pb"><field name="NUM">0xFFE21D</field></block></value><statement name="DO3"><block type="inout_digital_write2" id="H2[HccKu+5VBZ5Rn%_h}"><value name="PIN"><shadow type="pins_digital" id="`yL%ITbDa9ELyitrOm/."><field name="PIN">11</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="+?Kj+JAl+h:M*oF?@ope"><field name="BOOL">HIGH</field></shadow></value></block></statement><statement name="ELSE"><block type="inout_digital_write2" id="3OW|KxQPLW@.Dp.10ugR"><value name="PIN"><shadow type="pins_digital" id="c7^R=]e$nmu_-Xy)k-5J"><field name="PIN">9</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="$O(:|YP,YbRpL58PAT):"><field name="BOOL">LOW</field></shadow></value><next><block type="inout_digital_write2" id="hU@I%GQOpQ}c.q+a-11G"><value name="PIN"><shadow type="pins_digital" id="bv^6oYl%MtKE9L!*YH7Y"><field name="PIN">10</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="Hv02,*qmSYsx68v$#;w{"><field name="BOOL">LOW</field></shadow></value><next><block type="inout_digital_write2" id="9h^IIwO_w5m4to}95/Lg"><value name="PIN"><shadow type="pins_digital" id=":-{^vB31M#|$LVpfv~]]"><field name="PIN">11</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="b/dn(=,[Jj~bjr8l,8rg"><field name="BOOL">LOW</field></shadow></value></block></next></block></next></block></statement></block></next></block></statement></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="3W)Qcgc!z4s5Ho)WFl]," x="0" y="53"><field name="VALUE">IIC通信:主机发送字符a、b、c</field></block><block type="base_setup" id="O2|Y?g/J;3MNA}[kZ8%#" x="0" y="118"><statement name="DO"><block type="i2c_master_Init" id="T}wjVmh.vk0DgS*f9h$G"></block></statement></block><block type="controls_for" id="(H+_O$cAY*c]lxl~d@3{" x="0" y="209"><field name="VAR">i</field><value name="FROM"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="-~6w|@jGn6{qICVDDGRg"><field name="NUM">1</field></shadow><block type="char_to_ascii" id="H~aLHLTI;U[?RvWtab%u"><field name="TEXT">a</field></block></value><value name="TO"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="jbCprakNGSZQ#!$BOX~="><field name="NUM">10</field></shadow><block type="char_to_ascii" id="NZqUJz/_OC6:kng[QT?r"><field name="TEXT">c</field></block></value><value name="STEP"><shadow type="math_number" id="2mP6g@BKI50ZhoeUnL1~"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="i2c_begin_end_transmission" id="THUq!6c{FyTMCL8-Cauj"><value name="i2c_address"><shadow type="math_number" id="rnI2*$C:?HtrI#L=1T?+"><field name="NUM">4</field></shadow></value><statement name="transmission_data"><block type="i2c_write" id="kDKfvP)jt{qm#mO{!~}I"><value name="i2c_write_data"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="4xmSo9lt-xl/+s0MF[yj"><field name="TEXT"></field></shadow><block type="ascii_to_char" id="%j(]T;IWSch[M8AoM4-b"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="z2^#[j6Z4|k6+UWtsYxq"><field name="NUM">223</field></shadow><block type="variables_get" id="v}o$;w-rk/TPe[M0_nHY"><field name="VAR">i</field></block></value></block></value><next><block type="controls_delay" id="XA;:XbLz{*h=whn*7])h"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="4.t7TQXe8?Wri@M4}|vV"><field name="NUM">1000</field></shadow></value></block></next></block></statement></block></statement></block></xml>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="spi_transfer" id="%vrA5Tgx+0o-cF92{.$R" x="-1068" y="116"><value name="pin"><shadow type="pins_digital" id="4lf|67eoSUp#KU(P%{XY"><field name="PIN">10</field></shadow></value><value name="value"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="M,*yHaT6HXItfQo`=h{H"><field name="NUM">0</field></shadow><block type="text_char" id="xnEg~?tq%3wS=nF+$0xz"><field name="TEXT">A</field></block></value><next><block type="controls_delay" id="eG4(SKS46=UDlyfJ,Gz@"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="|h.V^cHGa5yhqFOiiCrf"><field name="NUM">1000</field></shadow></value><next><block type="spi_transfer" id="Txf%n00{K~S4i3]/XKT5"><value name="pin"><shadow type="pins_digital" id="BQ?Y4CTQ3.,%rp0zpg+C"><field name="PIN">10</field></shadow></value><value name="value"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="M,*yHaT6HXItfQo`=h{H"><field name="NUM">0</field></shadow><block type="text_char" id="h8@#=lMHm#x_T{%xH3KD"><field name="TEXT">B</field></block></value><next><block type="controls_delay" id="v8#ZW}*U7C~0]xj`bKPg"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id=".p1@^=GW~p]V1T~LI*$5"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="spi_begin_master" id=",.:/;:X9*B}pes:S8sQ;" x="36" y="92"><value name="spi_slave_pin"><shadow type="pins_digital" id="Dg~-ew/$Tze+FTiAUZ@."><field name="PIN">10</field></shadow></value><next><block type="spi_transfer_Init" id="eC}ks2rTIMv?T27+cc#J"><value name="slave_pin"><shadow type="pins_digital" id="O_`/CpK^/8gi-wIuwVSc"><field name="PIN">10</field></shadow></value><statement name="transfer_data"><block type="spi_transfer_1" id="EY:rnhaLp3RMN](r^dL7"><value name="transfer_data"><shadow type="text_char" id="WG#/~WAsXLKHF@aS]4#q"><field name="TEXT">C</field></shadow></value><next><block type="controls_delay" id="Zm+l1Yc.S/x^TI]i!P@N"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="Q6L2)T^+,)_QnL.;8^/B"><field name="NUM">1000</field></shadow></value><next><block type="spi_transfer_1" id="12oLaDu%_GA[b-:+[S@v"><value name="transfer_data"><shadow type="text_char" id="1?8KRQMt_Zy1J4[iZU%2"><field name="TEXT">D</field></shadow></value><next><block type="controls_delay" id="/p`}0SnV-e44|smcj64{"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id=":p4EC+)jHlkQzfS%MRf$"><field name="NUM">1000</field></shadow></value><next><block type="spi_transfer_1" id="^k/Wi-tR}/TeZS+~X%r["><value name="transfer_data"><shadow type="text_char" id="-2hc2dzH@lPCef~.As}i"><field name="TEXT">E</field></shadow></value><next><block type="controls_delay" id="{D]~^y/Ha;q[i/`.JO.1"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="*xQ~/hn#4;$DGOc5ujZ3"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="+C=C_f=:;}dzKsuU;5r^" x="-1881" y="-42"><statement name="DO"><block type="variables_declare" id="S`/m{mCTCb?YRVPBwc{G"><field name="variables_type">global_variate</field><field name="VAR">MasterSend</field><field name="TYPE">int</field><value name="VALUE"><block type="math_number" id="w7q[7Tlt]kJJw~x_wVr4"><field name="NUM">0</field></block></value><next><block type="variables_declare" id="bCH%S9buPU_c[`%7Iphc"><field name="variables_type">global_variate</field><field name="VAR">MasteReceive</field><field name="TYPE">int</field><value name="VALUE"><block type="math_number" id="caRH.?mG#@W..0g557+l"><field name="NUM">0</field></block></value><next><block type="spi_begin_master" id="RusTRkC-k9IkLP?fM;9W"><value name="spi_slave_pin"><shadow type="pins_digital" id="8.:Cr-[#mP-QsegSk/[c"><field name="PIN">10</field></shadow></value><next><block type="serial_begin" id="`{b-UI{oklK*x?1~ajHi"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="!uz+[L^=(|PN;rY3F%)9"><field name="NUM">115200</field></shadow></value></block></next></block></next></block></next></block></statement></block><block type="controls_if" id="BLDH5DN;T7NzT7PL(Dm5" x="-1888" y="151"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="inout_digital_read2" id="Dh%[E1lLC/TbQw#3|:92"><value name="PIN"><shadow type="pins_digital" id="af%kvJh1K8zhr9)LLu6]"><field name="PIN">2</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="XPD@hza*z/xSDTYW8Md?"><field name="VAR">MasterSend</field><value name="VALUE"><block type="math_number" id="iyP1pJxQ~L2yLp47t2C#"><field name="NUM">1</field></block></value></block></statement><statement name="ELSE"><block type="variables_set" id="mvV/Tri+-^T*B-@5{BA,"><field name="VAR">MasterSend</field><value name="VALUE"><block type="math_number" id="C(01`0g{DL;QRHpp6*%d"><field name="NUM">0</field></block></value></block></statement><next><block type="spi_transfer_Init" id="Uq_giHZB62C6UY`GJNA."><value name="slave_pin"><shadow type="pins_digital" id=")t5$Dip8B$u;hOx=+t[0"><field name="PIN">10</field></shadow></value><statement name="transfer_data"><block type="variables_set" id="bM#,0=C9hw+#sdn{4ln%"><field name="VAR">MasteReceive</field><value name="VALUE"><block type="spi_transfer_2" id="#3d=gf?(#RncG:IV3ODJ"><value name="transfer_data"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text_char" id="9P203:As}j;)+ETwD3d2"><field name="TEXT">A</field></shadow><block type="variables_get" id="{}Y66[kR[B{@^A?3:O^y"><field name="VAR">MasterSend</field></block></value></block></value></block></statement><next><block type="controls_if" id="|A)K/C0=LEmMm^Xb%C_f"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="?W)(c6AH{?r3k]6Xw3Tp"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="b?b[~UI;qUw--|Yyp-li"><field name="VAR">MasteReceive</field></block></value><value name="B"><block type="math_number" id="?MVmy0Pz[W[jV/(+M}y9"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="inout_digital_write2" id="mr9=5:q#w@$$=5R-r)hi"><value name="PIN"><shadow type="pins_digital" id="z;$aHL`b_0YKTAl(9J5I"><field name="PIN">3</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="Q|r{Gm^:YIhwjYjD?]$Z"><field name="BOOL">HIGH</field></shadow></value></block></statement><statement name="ELSE"><block type="inout_digital_write2" id="2f]X2ju--6TLbmxF#`A@"><value name="PIN"><shadow type="pins_digital" id=");WtjlI#Ys@%8`LACCtk"><field name="PIN">3</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="DVR$B?che.gg+?e,uNXH"><field name="BOOL">LOW</field></shadow></value></block></statement><next><block type="controls_delay" id=".U,gfmq$bpFkn8UTf1fh"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="hG0c%sBpz@OT9/(jjE@C"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="X?.R9Le#6jE0Et7kwFrR" x="-1090" y="-43"><statement name="DO"><block type="spi_begin_master" id="a$@xN|94vZPRh,_cJqz|"><value name="spi_slave_pin"><shadow type="pins_digital" id="MD.by6kf(jw(-(Xaz8z8"><field name="PIN">10</field></shadow></value></block></statement></block><block type="spi_transfer_Init" id="@8_f}Q_j9Ft)iXR[_yN!" x="-1083" y="55"><value name="slave_pin"><shadow type="pins_digital" id="0ND4r;]]PY$^raC,HXgb"><field name="PIN">10</field></shadow></value><statement name="transfer_data"><block type="spi_transfer_1" id="tSdJ+l[X/B/8WOG)Lu-)"><value name="transfer_data"><shadow type="text_char" id=")z|HmMljZ%v{gF.J9s5s"><field name="TEXT"> </field></shadow></value></block></statement><next><block type="spi_transfer_Init" id="*Py~kL42yIITbS~VY4B."><value name="slave_pin"><shadow type="pins_digital" id="b!tKmj+H^f9YJq;Cllv`"><field name="PIN">10</field></shadow></value><statement name="transfer_data"><block type="controls_for" id="f7L!sM#NOF;r9R:G?c!N"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="R[lgDDH7H?w:8-sU|/7S"><field name="NUM">0</field></shadow></value><value name="TO"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="$hcATt=5T)gp8jJ3Hf~e"><field name="NUM">10</field></shadow><block type="math_arithmetic" id="BJfv/+C8[SS?-ZKvezHh"><field name="OP">MINUS</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="jObVO~0dTt_c{3?y0PJM"><field name="NUM">1</field></shadow><block type="text_length" id="DT*y6q1U3Jb6T1J0Dw,J"><value name="VAR"><shadow type="text" id="784^O_-nj*)tg_[8Z*Ag"><field name="TEXT">hello!</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="JLW%2Q2bUn+VfOyyv+hg"><field name="NUM">1</field></shadow></value></block></value><value name="STEP"><shadow type="math_number" id="_AG?HFM0@iFs_VT;8xSZ"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="serial_write" id="^TyseYp}G;AV!f57m[Z1"><field name="serial_select">Serial</field><value name="CONTENT"><block type="spi_transfer_2" id="~u(4e+Zc1]R@WCy!mme,"><value name="transfer_data"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text_char" id=".wI^{L-M~9KV7x1,_*(0"><field name="TEXT">A</field></shadow><block type="text_char_at" id="_7a0[wk3FM%)4rLi$C*="><value name="VAR"><shadow type="text" id="@pqybzUk}HG0k!(q5R:6"><field name="TEXT">hello!</field></shadow></value><value name="AT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="Bi1lx(kh:zyF;$,bl!xT"><field name="NUM">0</field></shadow><block type="variables_get" id="D6!7~ioZ3SHjfsSIa*;s"><field name="VAR">i</field></block></value></block></value></block></value></block></statement><next><block type="serial_println" id="m)NjLnJ{Er6Z{l-ra*o3"><field name="serial_select">Serial</field><field name="new_line">println</field></block></next></block></statement><next><block type="controls_delay" id="QWx3q]5YMwqF~Py!T@PB"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="o6Di;g0K]})L5TkoI{z|"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="Al,`7VY~Oc1zxa?hAlOc" x="0" y="0"><statement name="DO"><block type="spi_begin_slave" id="K6CnCk!gT])D,9kOyY9@"><next><block type="variables_declare" id=":(}t$UO(C9=ktL72bUqC"><field name="variables_type">global_variate</field><field name="VAR">SlaveSend</field><field name="TYPE">int</field><value name="VALUE"><block type="math_number" id="4UTtCERhWQSg_^a14ka)"><field name="NUM">0</field></block></value><next><block type="serial_begin" id="RmDrc7X#;j|anN=XsYok"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="z7=9e?_Wv*6FFnA?(5)w"><field name="NUM">115200</field></shadow></value></block></next></block></next></block></statement></block><block type="spi_slave_interrupt" id="P(3%kz.W;{RC(5RqxCH6" x="0" y="155"><value name="slave_interrupt_input"><block type="variables_get" id="Q%a??TvE,1k~dg/*A.oq"><field name="VAR">SPDR</field></block></value><statement name="slave_interrupt_data"><block type="controls_if" id="(BH4SHVUv{d!nzgbRRM/"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="Q+xoLM4^hSLq-+H_;-fN"><field name="OP">EQ</field><value name="A"><block type="spi_slave_receive" id="_hojz$G=Wi7me3Zwwrdp"><value name="slave_receive_data"><block type="variables_get" id="Fqx,?paYj!AsITcp(([F"><field name="VAR">SPDR</field></block></value></block></value><value name="B"><block type="math_number" id="}_cz~HsfP4E8*C$CAm*V"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="inout_digital_write2" id="#bVg7.o(!T8nVNL{)~6$"><value name="PIN"><shadow type="pins_digital" id="hFJGYJa1hKe#VT^D#Gii"><field name="PIN">3</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="g,34d1aR~`j|i3ir|0@v"><field name="BOOL">HIGH</field></shadow></value><next><block type="serial_println" id="#b@?ZX@0Snr7N2AVO8Ko"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="gB}tpSm!A9KiC7XcDzBE"><field name="TEXT">Slave LED ON</field></block></value></block></next></block></statement><statement name="ELSE"><block type="inout_digital_write2" id="p5PfJOd+ER~O2Y4#wB$q"><value name="PIN"><shadow type="pins_digital" id="1wbLHD~LL{_JYfWIlr{s"><field name="PIN">3</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="HxtLM?$W.f.#%qGd,wR,"><field name="BOOL">LOW</field></shadow></value><next><block type="serial_println" id="H)Kz9w8X?%5_9=5U9_B6"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="Tz/^wlY]^`4j/hHT6),A"><field name="TEXT">Slave LED OFF</field></block></value></block></next></block></statement></block></statement><next><block type="controls_if" id="DhTGf9=z;;p.{81RFMCo"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="inout_digital_read2" id="N.N)iK)3#/{-vO4~ILsL"><value name="PIN"><shadow type="pins_digital" id="c`nJxT*D[NIq`x9FDsn~"><field name="PIN">2</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="]oA((s_H[HnTIcz^I0S{"><field name="VAR">SlaveSend</field><value name="VALUE"><block type="math_number" id="2PaQvs|CB@uNC!@3$w(l"><field name="NUM">1</field></block></value></block></statement><statement name="ELSE"><block type="variables_set" id="{4Rt#b8BNSUo5w8F)j-4"><field name="VAR">SlaveSend</field><value name="VALUE"><block type="math_number" id="}Wo-$XN9RwkCxm|Mb](%"><field name="NUM">0</field></block></value></block></statement><next><block type="variables_set" id="re*-JqU]o-y`j?%N#h$N"><field name="VAR">SPDR</field><value name="VALUE"><block type="variables_get" id="Kka5c.%QpB#H?X)Ef{ah"><field name="VAR">SlaveSend</field></block></value><next><block type="controls_delay" id="DXm%_j,L*9o3g}(Q~EUM"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="Bn5X;2N+(GDY^|1B=rzH"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></xml>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="Al,`7VY~Oc1zxa?hAlOc" x="-91" y="12"><statement name="DO"><block type="spi_begin_slave" id="K6CnCk!gT])D,9kOyY9@"><next><block type="variables_declare" id=":(}t$UO(C9=ktL72bUqC"><field name="variables_type">global_variate</field><field name="VAR">SlaveSend</field><field name="TYPE">int</field><value name="VALUE"><block type="math_number" id="4UTtCERhWQSg_^a14ka)"><field name="NUM">0</field></block></value><next><block type="serial_begin" id="RmDrc7X#;j|anN=XsYok"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="z7=9e?_Wv*6FFnA?(5)w"><field name="NUM">115200</field></shadow></value></block></next></block></next></block></statement></block><block type="spi_slave_interrupt" id="P(3%kz.W;{RC(5RqxCH6" x="-86" y="175"><value name="slave_interrupt_input"><block type="variables_get" id="Q%a??TvE,1k~dg/*A.oq"><field name="VAR">SPDR</field></block></value><statement name="slave_interrupt_data"><block type="controls_if" id="(BH4SHVUv{d!nzgbRRM/"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="logic_compare" id="Q+xoLM4^hSLq-+H_;-fN"><field name="OP">EQ</field><value name="A"><block type="spi_slave_receive" id="_hojz$G=Wi7me3Zwwrdp"><value name="slave_receive_data"><block type="variables_get" id="Fqx,?paYj!AsITcp(([F"><field name="VAR">SPDR</field></block></value></block></value><value name="B"><block type="math_number" id="}_cz~HsfP4E8*C$CAm*V"><field name="NUM">1</field></block></value></block></value><statement name="DO0"><block type="inout_digital_write2" id="#bVg7.o(!T8nVNL{)~6$"><value name="PIN"><shadow type="pins_digital" id="hFJGYJa1hKe#VT^D#Gii"><field name="PIN">3</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="g,34d1aR~`j|i3ir|0@v"><field name="BOOL">HIGH</field></shadow></value><next><block type="serial_println" id="#b@?ZX@0Snr7N2AVO8Ko"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="gB}tpSm!A9KiC7XcDzBE"><field name="TEXT">Slave LED ON</field></block></value></block></next></block></statement><statement name="ELSE"><block type="inout_digital_write2" id="p5PfJOd+ER~O2Y4#wB$q"><value name="PIN"><shadow type="pins_digital" id="1wbLHD~LL{_JYfWIlr{s"><field name="PIN">3</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="HxtLM?$W.f.#%qGd,wR,"><field name="BOOL">LOW</field></shadow></value><next><block type="serial_println" id="H)Kz9w8X?%5_9=5U9_B6"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="Tz/^wlY]^`4j/hHT6),A"><field name="TEXT">Slave LED OFF</field></block></value></block></next></block></statement></block></statement><next><block type="controls_if" id="DhTGf9=z;;p.{81RFMCo"><mutation xmlns="http://www.w3.org/1999/xhtml" else="1"></mutation><value name="IF0"><block type="inout_digital_read2" id="N.N)iK)3#/{-vO4~ILsL"><value name="PIN"><shadow type="pins_digital" id="c`nJxT*D[NIq`x9FDsn~"><field name="PIN">2</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="]oA((s_H[HnTIcz^I0S{"><field name="VAR">SlaveSend</field><value name="VALUE"><block type="math_number" id="2PaQvs|CB@uNC!@3$w(l"><field name="NUM">1</field></block></value></block></statement><statement name="ELSE"><block type="variables_set" id="{4Rt#b8BNSUo5w8F)j-4"><field name="VAR">SlaveSend</field><value name="VALUE"><block type="math_number" id="}Wo-$XN9RwkCxm|Mb](%"><field name="NUM">0</field></block></value></block></statement><next><block type="variables_set" id="re*-JqU]o-y`j?%N#h$N"><field name="VAR">SPDR</field><value name="VALUE"><block type="variables_get" id="Kka5c.%QpB#H?X)Ef{ah"><field name="VAR">SlaveSend</field></block></value><next><block type="controls_delay" id="DXm%_j,L*9o3g}(Q~EUM"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="Bn5X;2N+(GDY^|1B=rzH"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="#y4@NI?Dz$bOdas(dGNr" x="-28" y="23"><statement name="DO"><block type="variables_declare" id="5t9g^9OqVx|MMEcf8DFM"><field name="variables_type">global_variate</field><field name="VAR">data</field><field name="TYPE">String</field><value name="VALUE"><block type="text" id="`eEL~(0|]*TA`GVKgBuw"><field name="TEXT"> </field></block></value><next><block type="variables_declare" id="CR~@7:#e_zJfgC{]%AJs"><field name="variables_type">global_variate</field><field name="VAR">i</field><field name="TYPE">int</field><value name="VALUE"><block type="math_number" id="KNCIEBkSMV8rcj#GEc._"><field name="NUM">0</field></block></value><next><block type="variables_declare" id="IiNYKT0VS1:`dT]L=mL0"><field name="variables_type">global_variate</field><field name="VAR">data1</field><field name="TYPE">byte</field><value name="VALUE"><block type="variables_get" id="|`Pz)Om!|Lxop#w;;=FN"><field name="VAR">SPDR</field></block></value><next><block type="spi_begin_slave" id="-YLo65T6RzzPYipnT){H"></block></next></block></next></block></next></block></statement></block><block type="spi_slave_interrupt" id="mNc34mjakX}aXdaFwYOs" x="-26" y="189"><value name="slave_interrupt_input"><block type="variables_get" id="faHP*gx/u=@,Nq%-7S]s"><field name="VAR">SPDR</field></block></value><statement name="slave_interrupt_data"><block type="variables_set" id="OO{=kNv+Isp^Wq)hw4u`"><field name="VAR">SPDR</field><value name="VALUE"><block type="text_char_at" id="Oz3eJI-^P-0,k6/%]B5y"><value name="VAR"><shadow type="text" id="oRJ%?oEr4`+K:`qN5NnM"><field name="TEXT">hello</field></shadow></value><value name="AT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="WAZJkou0n$;=Nhr{Q4,:"><field name="NUM">0</field></shadow><block type="variables_get" id="C!V}-J[hhm%D|?e$V8:K"><field name="VAR">i</field></block></value></block></value><next><block type="variables_operation" id="c}qG5Zp*k*kQ+H|wV1Od"><field name="type">+</field><value name="variables"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="{skzLW+$:{jOm=:f[aCm"><field name="NUM">item</field></shadow><block type="variables_get" id="aEpmIW;gZD;_*23}8mG8"><field name="VAR">i</field></block></value><value name="data"><shadow type="math_number" id="B,GDn?+jb=Eag?2t_E)x"><field name="NUM">1</field></shadow></value><next><block type="variables_operation" id="6G/g(V,F+!zXp39E*3cD"><field name="type">+</field><value name="variables"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="5BK.o#%TQxI8j5j)jjOx"><field name="NUM">item</field></shadow><block type="variables_get" id="=tr$?Ue##[1Hu9vpa7jm"><field name="VAR">data</field></block></value><value name="data"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="0k3m{#,00Tx/g.aME9V."><field name="NUM">1</field></shadow><block type="ascii_to_char" id="}0U@.CCKy?J]nGjfu~8K"><value name="VAR"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="N_m|#xqiVFr.CxJH=TM_"><field name="NUM">223</field></shadow><block type="variables_get" id="}R#xHd^8ZDQhkor(}L%9"><field name="VAR">SPDR</field></block></value></block></value><next><block type="controls_if" id="DHN*y,[iYTLS@v3#auk0"><value name="IF0"><block type="logic_compare" id="1/XHY:AKtT1;UyGdseXw"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="7*}|F3I+%d^N^_F03v5p"><field name="VAR">data1</field></block></value><value name="B"><block type="text_char" id="NUK4[n%(=9u_;6j]a,SS"><field name="TEXT">!</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="#x|l^(Z)=/Ha2)#sn4u$"><field name="VAR">i</field><value name="VALUE"><block type="math_number" id="r5PD!k`Nshz~_/9#dp`i"><field name="NUM">0</field></block></value><next><block type="serial_println" id="YQv?91d?!%0iU*(m3E+P"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="variables_get" id="fL;1qQCITBc{]fo6iszg"><field name="VAR">data</field></block></value><next><block type="variables_set" id="JX6Y[Ii7LrJPA8/P`D9u"><field name="VAR">data</field><value name="VALUE"><block type="text" id="Ni4Qp_[r*$meqG5,Iiuy"><field name="TEXT"> </field></block></value></block></next></block></next></block></statement></block></next></block></next></block></next></block></statement></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="CVN^[pMzBCs}ein_cDxG" x="0" y="0"><statement name="DO"><block type="serial_begin" id="C3H6Sub2sa-Dm~mPn(J`"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="GanxgU}943VO:2O%,Qk8"><field name="NUM">9600</field></shadow></value><next><block type="MFRC522_init" id="/v8H1W/(@I)r8KX$pdB|"><field name="rfid_name">rfid</field><value name="PIN_SDA"><shadow type="pins_digital" id="te`!grv78C6#f?k}RKT]"><field name="PIN">10</field></shadow></value><value name="PIN_SCK"><shadow type="pins_SCK" id="CN]*1YJv39}@cEZ#3;.c"><field name="PIN">13</field></shadow></value><value name="PIN_MOSI"><shadow type="pins_MOSI" id="rXwc{8-8BF=oR{d^zo~$"><field name="PIN">11</field></shadow></value><value name="PIN_MISO"><shadow type="pins_MISO" id="z@Xj12[!C/-]spXPNti!"><field name="PIN">12</field></shadow></value><value name="PIN_RST"><shadow type="pins_digital" id="IKuP%,K%?v`=0Ro/4SSp"><field name="PIN">9</field></shadow></value><next><block type="serial_print" id="nwdeGb`~?mL1W@zXSE:P"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="SoMn87qy9YIRgISXax[Y"><field name="TEXT">RFID写卡&读卡测试</field></block></value><next><block type="lists_create_with_text2" id="%LFO5G!tQ`y.tW`@y[N)"><field name="TYPE">byte</field><field name="VAR">mylist</field><field name="SIZE">16</field><field name="TEXT">2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32</field><next><block type="lists_create_with_text2" id="4[0}OV*9lb,$jjwI9Czq"><field name="TYPE">byte</field><field name="VAR">mylist2</field><field name="SIZE">10</field><field name="TEXT">0</field></block></next></block></next></block></next></block></next></block></statement></block><block type="MFRC522_IsNewCard" id="94=iK6j#B/$pkpVAz3k," x="0" y="218"><field name="rfid_name">rfid</field><statement name="DO"><block type="MFRC522_WriteCard" id=")BY%hAt$lahJ=LDL6SyJ"><field name="rfid_name">rfid</field><value name="block"><shadow type="math_number" id="(wh)%sB[c_wm0C$rvW-g"><field name="NUM">1</field></shadow></value><value name="buffer"><shadow type="math_number" id="3LA(Gf8wr.]xs)BS#,8j"><field name="NUM">mylist</field></shadow></value><value name="length"><shadow type="math_number" id="B:Rj*aP`phn:3Ti$yW%N"><field name="NUM">16</field></shadow></value><next><block type="MFRC522_ReadCard" id="S#pnfOov2.z3X;9MMVFt"><field name="rfid_name">rfid</field><value name="block"><shadow type="math_number" id="rN4zWK02q,y[yZ|K]IIW"><field name="NUM">1</field></shadow></value><value name="buffer"><shadow type="math_number" id="D+D4r]}X9I6@m2xlbYRA"><field name="NUM">mylist2</field></shadow></value><value name="length"><shadow type="math_number" id="Y!UHyEHuHl]8;#of^3Xf"><field name="NUM">10</field></shadow></value><next><block type="controls_for" id="h{T(CIV^OmSugdb)e7lN"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="K2d]qOe,+`~:Bte@oLZ)"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="t]-bMLWHUVI)20/uxy{="><field name="NUM">10</field></shadow></value><value name="STEP"><shadow type="math_number" id="EbGLG`X1P,4sFeNM,$As"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="serial_print" id="Q#`hc`@,)a|I]]f-u|R)"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="lists_getIndex" id="::T?]WwDXxB,Tgew#j8J"><field name="VAR">mylist2</field><value name="AT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="j{p3yfnbXnIK.Bkx8E(]"><field name="NUM">1</field></shadow><block type="variables_get" id="FF;-7)4vR{HxWF[%7T1y"><field name="VAR">i</field></block></value></block></value></block></statement></block></next></block></next></block></statement><next><block type="controls_delay" id="iZ-Vq,3uon:{h:X09;D+"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="qq~73=bP9^%h)%V[{/[S"><field name="NUM">200</field></shadow></value></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/08-通信/04-RFID_写卡.mix
Normal file
1
boards/default/arduino_avr/examples/08-通信/04-RFID_写卡.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="CVN^[pMzBCs}ein_cDxG" x="0" y="0"><statement name="DO"><block type="serial_begin" id="C3H6Sub2sa-Dm~mPn(J`"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="GanxgU}943VO:2O%,Qk8"><field name="NUM">9600</field></shadow></value><next><block type="MFRC522_init" id="AU^oHFq7_A*=#~NW6a#W"><field name="rfid_name">rfid</field><value name="PIN_SDA"><shadow type="pins_digital" id="D@aL#Gz`4#~{qE{Fp@-8"><field name="PIN">10</field></shadow></value><value name="PIN_SCK"><shadow type="pins_SCK" id=":A6GC@@UM?#*iEFkM;i@"><field name="PIN">13</field></shadow></value><value name="PIN_MOSI"><shadow type="pins_MOSI" id="Ed2tSPSj#ANz$!QrCTBP"><field name="PIN">11</field></shadow></value><value name="PIN_MISO"><shadow type="pins_MISO" id="7XiGLl]*aoaDyw#0rx%/"><field name="PIN">12</field></shadow></value><value name="PIN_RST"><shadow type="pins_digital" id="Vq@o$oP$7Mzm0s//3!L4"><field name="PIN">9</field></shadow></value><next><block type="serial_print" id="nwdeGb`~?mL1W@zXSE:P"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="SoMn87qy9YIRgISXax[Y"><field name="TEXT">RFID写卡测试</field></block></value><next><block type="lists_create_with_text2" id="4[0}OV*9lb,$jjwI9Czq"><field name="TYPE">byte</field><field name="VAR">mylist</field><field name="SIZE">16</field><field name="TEXT">1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16</field></block></next></block></next></block></next></block></statement></block><block type="MFRC522_IsNewCard" id="94=iK6j#B/$pkpVAz3k," x="0" y="192"><field name="rfid_name">rfid</field><statement name="DO"><block type="MFRC522_WriteCard" id="5vSLiIHeclh5a7o[*Y"><field name="rfid_name">rfid</field><value name="block"><shadow type="math_number" id="rX.L_51A*fr8cB;n=2?E"><field name="NUM">1</field></shadow></value><value name="buffer"><shadow type="math_number" id="jRY62X+ZRPRxyv-e7z*!"><field name="NUM">mylist</field></shadow></value><value name="length"><shadow type="math_number" id="?DM[{.1bYz]Y(^7C+=bD"><field name="NUM">16</field></shadow></value></block></statement><next><block type="controls_delay" id="iZ-Vq,3uon:{h:X09;D+"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="qq~73=bP9^%h)%V[{/[S"><field name="NUM">200</field></shadow></value></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/08-通信/04-RFID_读卡.mix
Normal file
1
boards/default/arduino_avr/examples/08-通信/04-RFID_读卡.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="CVN^[pMzBCs}ein_cDxG" x="114" y="72"><statement name="DO"><block type="serial_begin" id="C3H6Sub2sa-Dm~mPn(J`"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="GanxgU}943VO:2O%,Qk8"><field name="NUM">9600</field></shadow></value><next><block type="MFRC522_init" id="s`@.]p*#MTs([/RiGNf4"><field name="rfid_name">rfid</field><value name="PIN_SDA"><shadow type="pins_digital" id="sr6[+uT!N2a{mjMEtrTE"><field name="PIN">10</field></shadow></value><value name="PIN_SCK"><shadow type="pins_SCK" id="nVlTB*~?:gNjetKf+"><field name="PIN">13</field></shadow></value><value name="PIN_MOSI"><shadow type="pins_MOSI" id="ps.]c6y#Fyw301nIB2ep"><field name="PIN">11</field></shadow></value><value name="PIN_MISO"><shadow type="pins_MISO" id="l$GJT;r$J0aV|z%1jySK"><field name="PIN">12</field></shadow></value><value name="PIN_RST"><shadow type="pins_digital" id="@(1$CVThkqQgR`LjjN7)"><field name="PIN">9</field></shadow></value><next><block type="serial_print" id="nwdeGb`~?mL1W@zXSE:P"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="SoMn87qy9YIRgISXax[Y"><field name="TEXT">RFID读卡测试</field></block></value><next><block type="lists_create_with_text2" id="4[0}OV*9lb,$jjwI9Czq"><field name="TYPE">byte</field><field name="VAR">mylist</field><field name="SIZE">16</field><field name="TEXT">0</field></block></next></block></next></block></next></block></statement></block><block type="MFRC522_IsNewCard" id="94=iK6j#B/$pkpVAz3k," x="126" y="309"><field name="rfid_name">rfid</field><statement name="DO"><block type="MFRC522_ReadCard" id="S#pnfOov2.z3X;9MMVFt"><field name="rfid_name">rfid</field><value name="block"><shadow type="math_number" id="rN4zWK02q,y[yZ|K]IIW"><field name="NUM">1</field></shadow></value><value name="buffer"><shadow type="math_number" id="D+D4r]}X9I6@m2xlbYRA"><field name="NUM">mylist</field></shadow></value><value name="length"><shadow type="math_number" id="Y!UHyEHuHl]8;#of^3Xf"><field name="NUM">16</field></shadow></value><next><block type="controls_for" id="h{T(CIV^OmSugdb)e7lN"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="K2d]qOe,+`~:Bte@oLZ)"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="t]-bMLWHUVI)20/uxy{="><field name="NUM">16</field></shadow></value><value name="STEP"><shadow type="math_number" id="EbGLG`X1P,4sFeNM,$As"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="serial_print" id="Q#`hc`@,)a|I]]f-u|R)"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="lists_getIndex" id="::T?]WwDXxB,Tgew#j8J"><field name="VAR">mylist</field><value name="AT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="j{p3yfnbXnIK.Bkx8E(]"><field name="NUM">1</field></shadow><block type="variables_get" id="FF;-7)4vR{HxWF[%7T1y"><field name="VAR">i</field></block></value></block></value></block></statement></block></next></block></statement><next><block type="controls_delay" id="iZ-Vq,3uon:{h:X09;D+"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="qq~73=bP9^%h)%V[{/[S"><field name="NUM">200</field></shadow></value></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="CVN^[pMzBCs}ein_cDxG" x="0" y="0"><statement name="DO"><block type="serial_begin" id="C3H6Sub2sa-Dm~mPn(J`"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="GanxgU}943VO:2O%,Qk8"><field name="NUM">9600</field></shadow></value><next><block type="MFRC522_init" id="#U}X($S;~98i$N$4G3/-"><field name="rfid_name">rfid</field><value name="PIN_SDA"><shadow type="pins_digital" id="-Xzvsx*kQ.*U,sNC(mNb"><field name="PIN">10</field></shadow></value><value name="PIN_SCK"><shadow type="pins_SCK" id="32i6iB/-|d@x^9*ryYte"><field name="PIN">13</field></shadow></value><value name="PIN_MOSI"><shadow type="pins_MOSI" id="?}4(9TSfCgdU@:!I54#z"><field name="PIN">11</field></shadow></value><value name="PIN_MISO"><shadow type="pins_MISO" id="gxEVoZZsJ0T|vXhZP:B="><field name="PIN">12</field></shadow></value><value name="PIN_RST"><shadow type="pins_digital" id="6vT9rT=L%coXwXL3P,gZ"><field name="PIN">9</field></shadow></value><next><block type="variables_declare" id="y4Qtm1$-i_Af[K7}aPHY"><field name="variables_type">global_variate</field><field name="VAR">RFID_CardUID</field><field name="TYPE">String</field><value name="VALUE"><block type="text" id="|7ZNHG49G]#TNIA]Kl6~"><field name="TEXT"></field></block></value><next><block type="serial_print" id="nwdeGb`~?mL1W@zXSE:P"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="SoMn87qy9YIRgISXax[Y"><field name="TEXT">读取RFID卡号测试</field></block></value></block></next></block></next></block></next></block></statement></block><block type="MFRC522_IsNewCard" id="94=iK6j#B/$pkpVAz3k," x="0" y="192"><field name="rfid_name">rfid</field><statement name="DO"><block type="variables_set" id="o?5sZ?Kv^8EX5CN)`l,0"><field name="VAR">RFID_CardUID</field><value name="VALUE"><block type="MFRC522_ReadCardUID" id="c2yxpdGX}(dW_?G1s_3z"><field name="rfid_name">rfid</field></block></value><next><block type="serial_print" id="fL@*)16@oWQ|YdU/pI!V"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join" id="u3)4;f8VhiGun%$/}NuK"><value name="A"><shadow type="text" id="XZb]N2xAijpLL!gflm[."><field name="TEXT">Card UID:</field></shadow></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="uF5}}o`vX5LXm^G:U/a#"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="P0.D$O=l!`Y0Lfd,rI#m"><field name="VAR">RFID_CardUID</field></block></value></block></value></block></next></block></statement><next><block type="controls_delay" id="iZ-Vq,3uon:{h:X09;D+"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="qq~73=bP9^%h)%V[{/[S"><field name="NUM">200</field></shadow></value></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/09-存储/02-EEPROM.mix
Normal file
1
boards/default/arduino_avr/examples/09-存储/02-EEPROM.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="1H={rIfpPxmalL?WL]JX" x="0" y="0"><field name="VALUE">D2:接按钮\nD9:接LED\n按下按钮可以控制LED开关切换,并且将开关状态存储到EEPROM中。\n每次重启时,先从EEPROM中读取灯在之前的状态,先将灯的状态恢复。\n即,如果主板在断电之前灯是开启状态的,主板重启后自动开灯。</field></block><block type="base_setup" id="PMT~jGHe-HkYOX7Y`ksT" x="0" y="145"><statement name="DO"><block type="variables_declare" id="%|Mp8=TI$_R1mE61o9j?"><field name="variables_type">global_variate</field><field name="VAR">state</field><field name="TYPE">boolean</field><value name="VALUE"><block type="logic_boolean" id="3huHD9-~G=u?TU:h(u-B"><field name="BOOL">FALSE</field></block></value><next><block type="variables_set" id="X9Osae=uf,fsE9GkkY4D"><field name="VAR">state</field><value name="VALUE"><block type="store_eeprom_read_byte" id="v6VX@/@#_W$Jb!80+n-T"><value name="ADDRESS"><shadow type="math_number" id="!;YYf2L]CVq^hT@^2e0."><field name="NUM">0</field></shadow></value></block></value><next><block type="inout_digital_write2" id="2LeMMT0)zX))[Mz}]wNz"><value name="PIN"><shadow type="pins_digital" id="y;X3*H6A?^7rAsbyrCt}"><field name="PIN">9</field></shadow></value><value name="STAT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="inout_highlow" id="bNq*YB1O@WX)Ukb4/#7s"><field name="BOOL">HIGH</field></shadow><block type="variables_get" id="a+OZMuEehV%itKhRxDD7"><field name="VAR">state</field></block></value></block></next></block></next></block></statement></block><block type="OneButton_interrupt" id="twH-O}%KuQE$J0/.FA01" x="0" y="300"><field name="mode">attachClick</field><value name="PIN"><shadow type="pins_digital" id="N__5Yx}(otfh;}_v5%.G"><field name="PIN">2</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="z/.;|3ged9m]ZINJ;y=m"><field name="BOOL">LOW</field></shadow></value><statement name="DO"><block type="variables_set" id="DQUHtZrMdhi0$cTw4K]R"><field name="VAR">state</field><value name="VALUE"><block type="logic_negate" id="?!^lJL*y)=xY+]aRS0/|"><value name="BOOL"><block type="variables_get" id="zzU}82;nQ`jOmk;jV(=Z"><field name="VAR">state</field></block></value></block></value><next><block type="inout_digital_write2" id=":c$}_rqmbIpEvLU)a=LU"><value name="PIN"><shadow type="pins_digital" id="ePhj;]eG0nI.CÐ_552"><field name="PIN">9</field></shadow></value><value name="STAT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="inout_highlow" id="bNq*YB1O@WX)Ukb4/#7s"><field name="BOOL">HIGH</field></shadow><block type="variables_get" id="kVkPC?oxO.C=R3$pH64*"><field name="VAR">state</field></block></value><next><block type="store_eeprom_write_byte" id="(#Av+Pp/mfHCCRg:#cS4"><value name="ADDRESS"><shadow type="math_number" id="F.=lc8BIIp;XZ~Ke)`;;"><field name="NUM">0</field></shadow></value><value name="DATA"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="~Z}X0QA!)DEkJ0a_UN;V"><field name="NUM">0</field></shadow><block type="variables_get" id="741GXYuLb7fHQHqNv,K="><field name="VAR">state</field></block></value></block></next></block></next></block></statement></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="/CUKHeqj4lG/Y,im`Ot%" x="67" y="17"><statement name="DO"><block type="serial_begin" id="TK!G57%-6Yby3j}0PWEf"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="EbXWpCv|Q{Q6MZ/YrnYL"><field name="NUM">9600</field></shadow></value><next><block type="lists_create_with2" id="62$AO}1EcuXf{t!q*u6#"><mutation xmlns="http://www.w3.org/1999/xhtml" items="7"></mutation><field name="TYPE">char</field><field name="VAR">mylist</field><value name="ADD0"><block type="text_char" id="PL4A_ip6,pZAY9O!#(uo"><field name="TEXT">a</field></block></value><value name="ADD1"><block type="text_char" id="ZpY`BPtXHxHQx5,.5u8g"><field name="TEXT">b</field></block></value><value name="ADD2"><block type="text_char" id="oPJ$c:+H9_$i?6:sCwHp"><field name="TEXT">c</field></block></value><value name="ADD3"><block type="text_char" id="kehz3r):x~=Dl45Pnqx,"><field name="TEXT">d</field></block></value><value name="ADD4"><block type="text_char" id="x5_#_)k/uDs,YI)Z4Jon"><field name="TEXT">e</field></block></value><value name="ADD5"><block type="text_char" id="1(KRotq^KMrvA9[Z_/,M"><field name="TEXT">f</field></block></value><value name="ADD6"><block type="text_char" id="Nd7?p@=ac_3(oN+I({lX"><field name="TEXT">g</field></block></value><next><block type="lists_create_with_text2" id="r$whVct|IJUSE[g1A}$#"><field name="TYPE">char</field><field name="VAR">mylist1</field><field name="SIZE">7</field><field name="TEXT">0</field><next><block type="store_eeprom_put" id="%(fKX7,[#9+kfgF-VD|#"><value name="ADDRESS"><shadow type="math_number" id="ibM42@[h~JBM`BB(8x[W"><field name="NUM">0</field></shadow></value><value name="DATA"><shadow type="math_number" id=".y8DLNfw.E7X!^=$J+1G"><field name="NUM">mylist</field></shadow></value><next><block type="store_eeprom_get" id="-5r2jo77`:7#/QY`?|Hs"><value name="ADDRESS"><shadow type="math_number" id="~wA?M_!fXGd~sRs7oJZ`"><field name="NUM">0</field></shadow></value><value name="DATA"><shadow type="math_number" id="FK1@Pdb@P8@=8#33wJzx"><field name="NUM">mylist1</field></shadow></value><next><block type="controls_for" id="gHNEH27jaln}ST4C`z=U"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="w4N6djLK/%YS1No!NSTo"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="5iZB^#MjIkqp??#sh=K%"><field name="NUM">7</field></shadow></value><value name="STEP"><shadow type="math_number" id="O,2khL0z(LC{x^iM31!V"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="serial_print" id="OH@i9#S8s3l*;?kOmn^`"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="lists_getIndex" id="i~BgW;SNrUd/hbqO0.7v"><field name="VAR">mylist1</field><value name="AT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="AtEpBFly2kZOyR1K$Gn+"><field name="NUM">1</field></shadow><block type="variables_get" id="g6$=.Te-`m!S/vNvYEoV"><field name="VAR">i</field></block></value></block></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="/CUKHeqj4lG/Y,im`Ot%" x="67" y="17"><statement name="DO"><block type="serial_begin" id="TK!G57%-6Yby3j}0PWEf"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="EbXWpCv|Q{Q6MZ/YrnYL"><field name="NUM">9600</field></shadow></value><next><block type="lists_create_with2" id="62$AO}1EcuXf{t!q*u6#"><mutation xmlns="http://www.w3.org/1999/xhtml" items="7"></mutation><field name="TYPE">byte</field><field name="VAR">mylist</field><value name="ADD0"><block type="math_number" id="FLB]8PX|+$lgCk[PyFi]"><field name="NUM">1</field></block></value><value name="ADD1"><block type="math_number" id="2?x+E5?s^A5R}i/C1=-R"><field name="NUM">2</field></block></value><value name="ADD2"><block type="math_number" id=":f,at(0NymexeEy;m)St"><field name="NUM">3</field></block></value><value name="ADD3"><block type="math_number" id="/8dM0KmCygywLU?1Hjs)"><field name="NUM">4</field></block></value><value name="ADD4"><block type="math_number" id="DNk-IjRahn8MS9V;!q+h"><field name="NUM">5</field></block></value><value name="ADD5"><block type="math_number" id="u`w*6WuJiFTChyV]2Se^"><field name="NUM">6</field></block></value><value name="ADD6"><block type="math_number" id="|_B]T}S/.ltxO+eT~fmQ"><field name="NUM">7</field></block></value><next><block type="lists_create_with_text2" id="r$whVct|IJUSE[g1A}$#"><field name="TYPE">byte</field><field name="VAR">mylist1</field><field name="SIZE">7</field><field name="TEXT">0</field><next><block type="store_eeprom_put" id="%(fKX7,[#9+kfgF-VD|#"><value name="ADDRESS"><shadow type="math_number" id="ibM42@[h~JBM`BB(8x[W"><field name="NUM">0</field></shadow></value><value name="DATA"><shadow type="math_number" id=".y8DLNfw.E7X!^=$J+1G"><field name="NUM">mylist</field></shadow></value><next><block type="store_eeprom_get" id="-5r2jo77`:7#/QY`?|Hs"><value name="ADDRESS"><shadow type="math_number" id="~wA?M_!fXGd~sRs7oJZ`"><field name="NUM">0</field></shadow></value><value name="DATA"><shadow type="math_number" id="FK1@Pdb@P8@=8#33wJzx"><field name="NUM">mylist1</field></shadow></value><next><block type="controls_for" id="gHNEH27jaln}ST4C`z=U"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="w4N6djLK/%YS1No!NSTo"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="5iZB^#MjIkqp??#sh=K%"><field name="NUM">7</field></shadow></value><value name="STEP"><shadow type="math_number" id="O,2khL0z(LC{x^iM31!V"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="serial_print" id="OH@i9#S8s3l*;?kOmn^`"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="lists_getIndex" id="i~BgW;SNrUd/hbqO0.7v"><field name="VAR">mylist1</field><value name="AT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="AtEpBFly2kZOyR1K$Gn+"><field name="NUM">1</field></shadow><block type="variables_get" id="g6$=.Te-`m!S/vNvYEoV"><field name="VAR">i</field></block></value></block></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="/CUKHeqj4lG/Y,im`Ot%" x="67" y="17"><statement name="DO"><block type="serial_begin" id="TK!G57%-6Yby3j}0PWEf"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="EbXWpCv|Q{Q6MZ/YrnYL"><field name="NUM">9600</field></shadow></value><next><block type="variables_declare" id="3aqt`aNa)bH*Qxsc(CN^"><field name="variables_type">global_variate</field><field name="VAR">put_data</field><field name="TYPE">float</field><value name="VALUE"><block type="math_number" id="7SB-SI),slyG#`HUUFj*"><field name="NUM">3.14</field></block></value><next><block type="variables_declare" id="t6aj0CTL1,sUH|X0UVE2"><field name="variables_type">global_variate</field><field name="VAR">get_data</field><field name="TYPE">float</field><value name="VALUE"><block type="math_number" id="{`9U@m4Q[~7m.?0N^7rh"><field name="NUM">0</field></block></value><next><block type="store_eeprom_put" id="%(fKX7,[#9+kfgF-VD|#"><value name="ADDRESS"><shadow type="math_number" id="ibM42@[h~JBM`BB(8x[W"><field name="NUM">0</field></shadow></value><value name="DATA"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id=".y8DLNfw.E7X!^=$J+1G"><field name="NUM">0</field></shadow><block type="variables_get" id="_o=g**XAt`N-=y07..*="><field name="VAR">put_data</field></block></value><next><block type="store_eeprom_get" id="-5r2jo77`:7#/QY`?|Hs"><value name="ADDRESS"><shadow type="math_number" id="~wA?M_!fXGd~sRs7oJZ`"><field name="NUM">0</field></shadow></value><value name="DATA"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="FK1@Pdb@P8@=8#33wJzx"><field name="NUM">item</field></shadow><block type="variables_get" id="$c1vw)`gw=+|zx%oZ^w`"><field name="VAR">get_data</field></block></value><next><block type="serial_print" id="OH@i9#S8s3l*;?kOmn^`"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="variables_get" id="qyNx~TP1{g4wl9KTyB39"><field name="VAR">get_data</field></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="Wyt61=p9[3doow)ZK,R{" x="101" y="88"><statement name="DO"><block type="serial_begin" id="_!!50rZTV4UNd)w?dBXb"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="Ii_z{dX_VvOG$MbqKpOP"><field name="NUM">9600</field></shadow></value><next><block type="variables_declare" id="LLV9[au@55vz8]$jTx$_"><field name="variables_type">global_variate</field><field name="VAR">put_data</field><field name="TYPE">unsigned long</field><value name="VALUE"><block type="math_number" id="Fd)z]:wbnfndhg^QXzA{"><field name="NUM">123456789</field></block></value><next><block type="variables_declare" id="H(MuPgsMbH$N3m[uSOKb"><field name="variables_type">global_variate</field><field name="VAR">get_data</field><field name="TYPE">unsigned long</field><value name="VALUE"><block type="math_number" id="dB|[wx~J{`oW#n=D@lFr"><field name="NUM">0</field></block></value><next><block type="store_eeprom_put" id="L92d~-(=ePShNRDLnM[n"><value name="ADDRESS"><shadow type="math_number" id="goOf:}s{8THtJ65sM9Y:"><field name="NUM">0</field></shadow></value><value name="DATA"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="T!3n:9YJl0^eSm|c6$@%"><field name="NUM">0</field></shadow><block type="variables_get" id="!ks;sLC#||z1X?TÎm9"><field name="VAR">put_data</field></block></value><next><block type="store_eeprom_get" id="u8I{wJ%s2O,}b^_f@N-3"><value name="ADDRESS"><shadow type="math_number" id="R7X3QWi4Nx-,IU/Pdk.-"><field name="NUM">0</field></shadow></value><value name="DATA"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="L]u!X~;dP#Fr,wtk-o@@"><field name="NUM">item</field></shadow><block type="variables_get" id="_UHmYHZ}1T0[fojX`m7L"><field name="VAR">get_data</field></block></value><next><block type="serial_print" id="sX8p9Eb$#;{ck(A!IhqA"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="variables_get" id="bK5MNsZMFzHK6{}49[6f"><field name="VAR">get_data</field></block></value></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>
|
||||
1
boards/default/arduino_avr/examples/10-传感器/01-超声波测距.mix
Normal file
1
boards/default/arduino_avr/examples/10-传感器/01-超声波测距.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="7E(N@4A|g*a^4jr6gy19" x="-269" y="52"><field name="VALUE">超声波测距\n超声波传感器trig接D2,Echo接D3\n串口输出超声波传感器检测的距离值</field><next><block type="serial_begin" id=":W`^4cqg!JfN4NG/5XNQ"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="8i#5Ge^HVC$}U~!B,[5D"><field name="NUM">9600</field></shadow></value><next><block type="serial_print" id="9{^PL0M#}h1}|pPs$~t2"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join2" id="PI9nZSH#Z%HM=3_hGY[}" inline="false"><mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation><value name="ADD0"><block type="text" id="q}n1A$9LQ;bUVzTvHh8v"><field name="TEXT">距离:</field></block></value><value name="ADD1"><block type="chaoshengbo2" id="}6(#2s/N5eOU9~Q%iUde"><field name="Trig">2</field><field name="Echo">3</field></block></value><value name="ADD2"><block type="text" id="to{OQf@dAz)Rz.KAtr0p"><field name="TEXT">cm</field></block></value></block></value><next><block type="controls_delay" id="SD)NQecJy;P0he#_H]g#"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="nuOv.Yh|%r@7O|yR/St8"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="k0!2|oIL/3,aApu*7lXz" x="-1413" y="102"><field name="VALUE">温湿度计\nDHT11接D4,LCD1402接IIC接口\n将看到LCD上显示温度和温度及单位\n注:摄氏度符号由小圆圈对应的ASCII码是0xdf,后面是大写字母C组成</field><next><block type="group_lcd_init2" id="C0+RanPN!oc+vPC/Mal-"><field name="TYPE">16,2</field><field name="VAR">mylcd</field><field name="SCL">A5</field><field name="SDA">A4</field><value name="device"><shadow type="math_number" id="6LaV6T9o/zcL#G:SAaoU"><field name="NUM">0x3f</field></shadow></value><next><block type="group_lcd_print2" id="ZIt2Ow{bZhmo2~Hg|=Z`"><field name="VAR">mylcd</field><value name="row"><shadow type="math_number" id="P`)@toqpnbA#saH$V4/p"><field name="NUM">1</field></shadow></value><value name="column"><shadow type="math_number" id="@q[8a]k@b%zP-S(`8_HG"><field name="NUM">1</field></shadow></value><value name="TEXT"><block type="text_join" id="qynLveW%mq0[5yZ2iwSd"><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id=".D|mdhB^Nr=@r$u4q86X"><field name="TEXT">Hello</field></shadow><block type="DHT" id="rb3A#1RCk$(-4[hT|!C;"><field name="TYPE">11</field><field name="PIN">4</field><field name="WHAT">temperature</field></block></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="2A,P+PtZvxM%.Y_[2a!X"><field name="TEXT">Mixly</field></shadow><block type="text_join" id="?O}71{v6X$wm`pWhO?4x"><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="pEYr+gyMtXC`[^BFqs=+"><field name="TEXT">Hello</field></shadow><block type="ascii_to_char" id="Fxh~.t,l.iF-oM)E=pO/"><value name="VAR"><shadow type="math_number" id="UVpwd%dSrDM2wzpXHi^W"><field name="NUM">0xdf</field></shadow></value></block></value><value name="B"><shadow type="text" id="C52Ed7PFi)|z^8z3~;9z"><field name="TEXT">C</field></shadow></value></block></value></block></value><next><block type="group_lcd_print2" id="3opqsipYAgs8@fw0ok1S"><field name="VAR">mylcd</field><value name="row"><shadow type="math_number" id="OcB1MM]v`j}9Z%ZBL0~;"><field name="NUM">2</field></shadow></value><value name="column"><shadow type="math_number" id=")zQNXUyVga-ycQ7nKhEW"><field name="NUM">1</field></shadow></value><value name="TEXT"><block type="text_join" id="}9EoS|^^V~1a^QXFm::a"><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id=".D|mdhB^Nr=@r$u4q86X"><field name="TEXT">Hello</field></shadow><block type="DHT" id="@W~SxXiTk5D6(bS)%E?#"><field name="TYPE">11</field><field name="PIN">4</field><field name="WHAT">humidity</field></block></value><value name="B"><shadow type="text" id="2A,P+PtZvxM%.Y_[2a!X"><field name="TEXT">%</field></shadow></value></block></value><next><block type="controls_end_program" id="XU74o.eUpXm$TZdRuCqx"></block></next></block></next></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="N4f:Ou2)PaV}}s(pwR9V" x="-280" y="66"><field name="VALUE">DS18B20读取温度\nDS18B20连接在D2管脚,串口打印出温度值\n注:如果使用的DS18B20是散件,则需要在电源线和信号线之间并联一个5K左右的电阻</field><next><block type="serial_begin" id=":W`^4cqg!JfN4NG/5XNQ"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="8i#5Ge^HVC$}U~!B,[5D"><field name="NUM">9600</field></shadow></value><next><block type="serial_print" id="9{^PL0M#}h1}|pPs$~t2"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join2" id="PI9nZSH#Z%HM=3_hGY[}" inline="false"><mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation><value name="ADD0"><block type="text" id="q}n1A$9LQ;bUVzTvHh8v"><field name="TEXT">温度:</field></block></value><value name="ADD1"><block type="ds18b20" id="?EalijiGf#1B]T2{[^[9"><field name="PIN">2</field><field name="UNIT">0</field></block></value><value name="ADD2"><block type="text" id="to{OQf@dAz)Rz.KAtr0p"><field name="TEXT">℃</field></block></value></block></value><next><block type="serial_print" id="M3Re@i!JuKuwif=M^wvb"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join2" id="iANWn%y5!db],+2^jNi{" inline="false"><mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation><value name="ADD0"><block type="text" id="OA2rPi-EbZ@cvI~ivqE`"><field name="TEXT">温度:</field></block></value><value name="ADD1"><block type="ds18b20" id="VD/!E6bbA]ueK%h*|RD-"><field name="PIN">2</field><field name="UNIT">1</field></block></value><value name="ADD2"><block type="text" id="-9;eB;J.LT}R]/w$VR`4"><field name="TEXT">℉</field></block></value></block></value><next><block type="serial_print" id="w!6_4MHZlM~,Cc+9t;!3"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="$p:N_?;gF7@|]p82GJ0R"><field name="TEXT"></field></block></value><next><block type="controls_delay" id="SD)NQecJy;P0he#_H]g#"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="nuOv.Yh|%r@7O|yR/St8"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id=")9.sZi.,vs-39t,XG(0J" x="-4" y="115"><field name="VALUE">MLX90614测温\nMLX90614连接IIC接口\n</field><next><block type="serial_begin" id="]=n:t%mRFZ+$*Md1TiV;"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="Xr!-lU%j*vsA{P$^~,Ph"><field name="NUM">9600</field></shadow></value><next><block type="mlx90614_init" id="M,N1]_BMxk=|bQ+5yb2w"><value name="mlx90614_address"><shadow type="math_number" id="T@x)M9Tz=om{h=,e5q8H"><field name="NUM">0x5A</field></shadow></value><next><block type="serial_println" id="jSsWsM?t6?#53[A,n13I"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join2" id="joz1:3Rc?F0Z8D9g,LXc" inline="false"><mutation xmlns="http://www.w3.org/1999/xhtml" items="5"></mutation><value name="ADD0"><block type="text" id="lswwHKMk)/]=y#WdgcP["><field name="TEXT">目标物体温度:</field></block></value><value name="ADD1"><block type="mlx90614_get_data" id="#P?08/#2bez%tW44t`Mk"><field name="mlx90614_data">readObjectTempC</field></block></value><value name="ADD2"><block type="text" id="8{8?X2y==MtEu!tZraL."><field name="TEXT">℃ </field></block></value><value name="ADD3"><block type="mlx90614_get_data" id="lwnCU;8GGM=PBt?Dac{?"><field name="mlx90614_data">readObjectTempF</field></block></value><value name="ADD4"><block type="text" id="93=|ib3`0C*gF|Zi[%Ho"><field name="TEXT">℉</field></block></value></block></value><next><block type="serial_println" id="::?:Y2;CUhBHRdodC4Mw"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join2" id="/J=fN~q!{~hCx?H:uqOV" inline="false"><mutation xmlns="http://www.w3.org/1999/xhtml" items="5"></mutation><value name="ADD0"><block type="text" id=".{.n}!Fokj0}Iek;6+Ue"><field name="TEXT">周围环境温度:</field></block></value><value name="ADD1"><block type="mlx90614_get_data" id="zGS{1N_F;,h+Ue1:{iKh"><field name="mlx90614_data">readAmbientTempC</field></block></value><value name="ADD2"><block type="text" id="G6e16-i!]@M}(p/h_eXu"><field name="TEXT">℃ </field></block></value><value name="ADD3"><block type="mlx90614_get_data" id="}33[3uL)#L-.#+PzBq7N"><field name="mlx90614_data">readAmbientTempF</field></block></value><value name="ADD4"><block type="text" id="np[$6DC@+vVoDh$sq#A."><field name="TEXT">℉</field></block></value></block></value><next><block type="serial_println" id="L7l`*MG)PK4zF}qB/xWh"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="@eVBfV,Upb42C/oL^[Hy"><field name="TEXT">\\n\\n</field></block></value><next><block type="controls_delay" id="zQE@HSf7t3.1N#uhT/aO"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id=":AHY-KAPxL~e,ys_d/r`"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="aZ;}G6R[mCbbk@q:Oc1E" x="133" y="205"><field name="VALUE">TCS34725颜色识别传感器\nTCS34725传感器连接在IIC接口</field><next><block type="serial_begin" id="ex[?nXO%9K9HCFc:MfGS"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="8bHh.zD=_57#B^VGMeWG"><field name="NUM">9600</field></shadow></value><next><block type="serial_print" id="QD+)k,^i3{ZB(%j)?*6h"><field name="serial_select">Serial</field><field name="new_line">print</field><value name="CONTENT"><block type="text_join2" id="sBA,?~J:llMLn(7=_I+*" inline="false"><mutation xmlns="http://www.w3.org/1999/xhtml" items="6"></mutation><value name="ADD0"><block type="text" id="~l[d^khdT;Zge*(TtZZ["><field name="TEXT">R:</field></block></value><value name="ADD1"><block type="TCS34725_Get_RGB" id="3yj|+C0)+,/Z|uadH_2$"><field name="DF_TCS34725_COLOR">tcs34725.getRedToGamma()</field></block></value><value name="ADD2"><block type="text" id="V|;x`?,pc.J;+CiV%EGl"><field name="TEXT"> G:</field></block></value><value name="ADD3"><block type="TCS34725_Get_RGB" id="o)G~r-d_@DtOg_qGhi``"><field name="DF_TCS34725_COLOR">tcs34725.getGreenToGamma()</field></block></value><value name="ADD4"><block type="text" id="kA_7;D5`,fjopd/Tg90."><field name="TEXT"> B:</field></block></value><value name="ADD5"><block type="TCS34725_Get_RGB" id="GO4W1?AVHP6a=Ed5To=U"><field name="DF_TCS34725_COLOR">tcs34725.getBlueToGamma()</field></block></value></block></value><next><block type="serial_print" id="1~LyT:=q1r`49#F|z-AW"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="H(%#ic4TJ#E[.v@M!;U$"><field name="TEXT"></field></block></value><next><block type="controls_delay" id="4pJ767Z2?r|YzY-`jp/p"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="rmP}$qZ%Po.U0w=DSQm["><field name="NUM">500</field></shadow></value></block></next></block></next></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="X3T/a@3SFdv+e/:u_Zh]" x="-31" y="114"><field name="VALUE">TCS230颜色识别传感器</field><next><block type="serial_begin" id="w05ZBH(!d4Nx+4O:o$k9"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="a7WN9/K57zKgz4d|D13v"><field name="NUM">9600</field></shadow></value><next><block type="tcs230_init" id="-g#h:Oqd/P0VJ.^2_ABe"><value name="tcs230_s0"><shadow type="pins_digital" id="Z0Z#(1q7;~J8jjx]O@C{"><field name="PIN">2</field></shadow></value><value name="tcs230_s1"><shadow type="pins_digital" id="%+=@v2m*=s[Ntpq5Ub3s"><field name="PIN">3</field></shadow></value><value name="tcs230_s2"><shadow type="pins_digital" id="J`kAhot4j`F^RUR|Y^}~"><field name="PIN">4</field></shadow></value><value name="tcs230_s3"><shadow type="pins_digital" id="C_/5te01|-;8h^4L?T:b"><field name="PIN">5</field></shadow></value><value name="tcs230_led"><shadow type="pins_digital" id="M2(SY~CK^%PB{*dECa;;"><field name="PIN">6</field></shadow></value><value name="tcs230_out"><shadow type="pins_digital" id="KG)=/[k9]K/NsLsZu!zo"><field name="PIN">7</field></shadow></value><next><block type="serial_print" id="z[:D_kpxZej=X{^j`znE"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join2" id="Gm~L=|CDITGQOj-O~aNJ" inline="false"><mutation xmlns="http://www.w3.org/1999/xhtml" items="6"></mutation><value name="ADD0"><block type="text" id="e31noB[U;~fRtbeYxBQA"><field name="TEXT">R:</field></block></value><value name="ADD1"><block type="tcs230_Get_RGB" id="gZ0?]:07W:b:aV):=;U*"><field name="tcs230_color">R</field></block></value><value name="ADD2"><block type="text" id="*ja;:jbuL+Iy|o-cB)aR"><field name="TEXT"> G:</field></block></value><value name="ADD3"><block type="tcs230_Get_RGB" id="NPwgZV!LF`.vf#[rgQm]"><field name="tcs230_color">G</field></block></value><value name="ADD4"><block type="text" id="^:d*B_llp/C%kyh*ZSF3"><field name="TEXT"> B:</field></block></value><value name="ADD5"><block type="tcs230_Get_RGB" id="Fz!;{Xq7dA:[=LGcDZ"><field name="tcs230_color">B</field></block></value></block></value><next><block type="serial_print" id="=I;3Pm~Eg*6qXJV4,/2?"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="5T-^yV5YE)zlcq|CXkSO"><field name="TEXT"></field></block></value><next><block type="controls_delay" id="5W^%zOB8]{bO;Y}X;Pc}"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="!(KWm2%%fVSF/QWyi|d|"><field name="NUM">500</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></xml>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="wW~HB.uP7}M-QoxlMuT5" x="61" y="-48"><field name="VALUE">串口输出日期\nDS102接线:RST-D2,DAT-D3,CLK-D4</field><next><block type="serial_begin" id="t^$cE8-n1WmX#_ETL55,"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="X`5+?[@[g;cjix8dXyXJ"><field name="NUM">9600</field></shadow></value><next><block type="DS1302_init" id="K~9::`zX(qR(~Co6U.qF"><value name="RST"><shadow type="pins_digital" id="O}KibXsCQrvA_*!lWy0#"><field name="PIN">2</field></shadow></value><value name="DAT"><shadow type="pins_digital" id="yG)1rqR)o.u?G4B9215P"><field name="PIN">3</field></shadow></value><value name="CLK"><shadow type="pins_digital" id=",3.J[l|{ru_vTgMz^SbP"><field name="PIN">4</field></shadow></value><next><block type="serial_println" id="{G!m2HsDwRs}5{#1C_Rh"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join" id="f7)y0dPqOFv`mDre]OYN"><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="K;n.pVN;P,tpEpxM+JsA"><field name="TEXT">Hello</field></shadow><block type="text_join" id=",6Du{bL}NoWQ+%dgcfa_"><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="K;n.pVN;P,tpEpxM+JsA"><field name="TEXT">Hello</field></shadow><block type="RTC_get_time" id="jO%R4uscEmCJ5XoKdIT6"><field name="TIME_TYPE">Year</field></block></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="!#6E1093)^n$e5-4O=DG"><field name="TEXT">Mixly</field></shadow><block type="text_join" id="NcnC*a81C?BAdy`{Npkk"><value name="A"><shadow type="text" id="j}0xI5*sY{3I4),mktxo"><field name="TEXT">/</field></shadow></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="~R+VNrbI}@)!mvM)k.QY"><field name="TEXT">Mixly</field></shadow><block type="RTC_get_time" id="}Ksg1-]|-?OlK{uNhN+k"><field name="TIME_TYPE">Month</field></block></value></block></value></block></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="~R+VNrbI}@)!mvM)k.QY"><field name="TEXT">Mixly</field></shadow><block type="text_join" id="CO++K~*KqGzG0Lnvq.+T"><value name="A"><shadow type="text" id="Vk[}dUeN-|nU5M6$9dF,"><field name="TEXT">/</field></shadow></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="~R+VNrbI}@)!mvM)k.QY"><field name="TEXT">Mixly</field></shadow><block type="RTC_get_time" id="f]21Pcbp5#DXE#C@_4wV"><field name="TIME_TYPE">Day</field></block></value></block></value></block></value><next><block type="serial_print" id="l.cza#V+#vL}$GiSqk`?"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text" id="h#bcg2HKH-Uf~4y)Fag-"><field name="TEXT"></field></block></value><next><block type="controls_delay" id="Y|Npn]LW}:)9*:cUu:E_"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="Pgq:[j9:1-Yy9ZkN;aiY"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></xml>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="4UcFR-uv`bnig0nvtrf9" x="0" y="0"><statement name="DO"><block type="variables_declare" id="YArv.v[QPAs5wu#l0dnl"><field name="variables_type">global_variate</field><field name="VAR">char_key</field><field name="TYPE">char</field><value name="VALUE"><block type="text_char" id="NDF+WX@DHp,Db,`l@!(r"><field name="TEXT">a</field></block></value><next><block type="Arduino_keypad_4_4_start" id="yR8!(bNE*9aPavHQTTio"><field name="keypad_name">KEYPAD_4_4</field><value name="keypad_row"><block type="keypad_row_data" id="8xR_[n+!Fz~zt}4V]KW/"><value name="keypad_row_1"><shadow type="pins_digital" id="jQ$$$TA(OI[v8o8d_v2c"><field name="PIN">2</field></shadow></value><value name="keypad_row_2"><shadow type="pins_digital" id="5K`kpflH#lz{6p@@L(wA"><field name="PIN">3</field></shadow></value><value name="keypad_row_3"><shadow type="pins_digital" id=":Hibm!9;)xq=L}kNxf^A"><field name="PIN">4</field></shadow></value><value name="keypad_row_4"><shadow type="pins_digital" id="8{DU0t_%OA!$e4D}K19F"><field name="PIN">5</field></shadow></value></block></value><value name="keypad_col"><block type="keypad_col_data" id="bO?{3ft}lbv0jgRNi}oG"><value name="keypad_col_1"><shadow type="pins_digital" id="ad.J;#4{16m??xn.F)|."><field name="PIN">6</field></shadow></value><value name="keypad_col_2"><shadow type="pins_digital" id="$~YH?Q;8isS3{`Ia/xc)"><field name="PIN">7</field></shadow></value><value name="keypad_col_3"><shadow type="pins_digital" id="(]%PrK5{jM5QFcLA4d$="><field name="PIN">8</field></shadow></value><value name="keypad_col_4"><shadow type="pins_digital" id="D4#0=d+pp/At0/|P#oRc"><field name="PIN">9</field></shadow></value></block></value><value name="keypad_type"><block type="keypad_type_data" id="$j:OJo]O*;*4nAh.}c-d"><field name="keypad_1_1">1</field><field name="keypad_1_2">2</field><field name="keypad_1_3">3</field><field name="keypad_1_4">A</field><field name="keypad_2_1">4</field><field name="keypad_2_2">5</field><field name="keypad_2_3">6</field><field name="keypad_2_4">B</field><field name="keypad_3_1">7</field><field name="keypad_3_2">8</field><field name="keypad_3_3">9</field><field name="keypad_3_4">C</field><field name="keypad_4_1">*</field><field name="keypad_4_2">0</field><field name="keypad_4_3">#</field><field name="keypad_4_4">D</field></block></value></block></next></block></statement></block><block type="variables_set" id="*PGGuH$er@-e^t$,@@3j" x="0" y="317"><field name="VAR">char_key</field><value name="VALUE"><block type="get_keypad_num" id="gh[JFx]nY-K#K]KpkZ|h"><field name="keypad_name">KEYPAD_4_4</field></block></value><next><block type="controls_if" id="`W:hQ]$EEf`CXar=RLwM"><value name="IF0"><block type="variables_get" id="u-vkm],mPyZHm%_}bO=("><field name="VAR">char_key</field></block></value><statement name="DO0"><block type="serial_print" id=")ZO*wVcN@xtH7).?I6=b"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="variables_get" id="7227cyh+,[S3FAsoRzxw"><field name="VAR">char_key</field></block></value></block></statement></block></next></block></xml>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="serial_begin" id="x0Ee.qpxbW0iYm+0,hNy" x="-49" y="-80"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="CFyj}!3;O{;6?wkOq#xz"><field name="NUM">9600</field></shadow></value><next><block type="serial_println" id="372:HbP|ajAUcG%b[kyY"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join2" id=":m){7W5%`{x74oU6F8YX"><mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation><value name="ADD0"><block type="text" id=",VgP38YO;YRpd]Q}X4]V"><field name="TEXT">温度:</field></block></value><value name="ADD1"><block type="BME280_READ" id=";GODUsTRpXDmbOrX3I"><field name="TYPE">bme</field><field name="BME_TYPE">readTemperature()</field><value name="address"><shadow type="math_number" id="x?s9rlgY~^Z$g{^5/j-M"><field name="NUM">0x77</field></shadow></value></block></value><value name="ADD2"><block type="text" id="P~^6CWy3Y^/m=IrZokFI"><field name="TEXT">℃</field></block></value></block></value><next><block type="controls_delay" id="|LM-4®#mX_UWTniNb2"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="+()MyFw`ZvvvKgNrXn{s"><field name="NUM">1000</field></shadow></value></block></next></block></next></block></xml>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="L7{oJKPl/Yn@Vam6|Sw." x="-30" y="-29"><statement name="DO"><block type="PS2_init" id="#MOvZ31uyg9d/*m/bMT2"><field name="PS2_DAT">2</field><field name="PS2_CMD">4</field><field name="PS2_SEL">5</field><field name="PS2_CLK">12</field><field name="rumble">true</field><next><block type="serial_begin" id="bCq1^E~UQmH0$7(*^T[M"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="^6i}qkXUY;E2;B*!V2Ov"><field name="NUM">9600</field></shadow></value></block></next></block></statement></block><block type="simple_timer" id="B=eN-fYEcAy_,_@@}|={" x="0" y="92"><field name="NO">1</field><value name="timein"><shadow type="math_number" id="Nk[_umsDOAs:G]#sP|aa"><field name="NUM">1000</field></shadow></value><statement name="zxhs"><block type="PS2_update" id=".b.wh~QEsOpfevOm)nJ:"><next><block type="serial_println" id="efU?W+~Vr{C#P2)CWncX"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join" id="HYb+yG;cQc{}xOFeat:N"><value name="A"><shadow type="text" id=",*{VDGRv[|cYH(aekbB/"><field name="TEXT">Left_X:</field></shadow></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="$Dna5x}n@r#9ISV;}@sQ"><field name="TEXT">Mixly</field></shadow><block type="PS2_stk" id="YE^`S^-8eMv#lYTt)_Q!"><field name="psstk">PSS_LX</field></block></value></block></value><next><block type="serial_println" id="5d4wvEQ3cszYMp$F~l@;"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_join" id="wjH@d!-;uiT3||hz%v8J"><value name="A"><shadow type="text" id="`g{m5L0GXPbdNIa|1y]N"><field name="TEXT">Right_X:</field></shadow></value><value name="B"><shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="$Dna5x}n@r#9ISV;}@sQ"><field name="TEXT">Mixly</field></shadow><block type="PS2_stk" id="$h-ln.h;V9Bkp-pAI^f)"><field name="psstk">PSS_RY</field></block></value></block></value></block></next></block></next></block></statement></block></xml>
|
||||
1
boards/default/arduino_avr/examples/10-传感器/B01-声控舵机.mix
Normal file
1
boards/default/arduino_avr/examples/10-传感器/B01-声控舵机.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id=":7}WfioZi?:yEQD$ZOI-" x="102" y="97"><field name="VALUE">声控舵机\n\nA0接声音传感器,D2接舵机\n舵机转动角度随音量大小在0-180之间来回转</field><next><block type="servo_move" id="]Akc4svhV~9n75IRz}t@"><field name="PIN">2</field><value name="DEGREE"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="?(PgFXBQ{Uk_8Fk(D/.P"><field name="NUM">0</field></shadow><block type="base_map" id="{RgO/~UOs,Wq--*W0zyY"><field name="maptype">map_int</field><value name="NUM"><block type="inout_analog_read" id="_k|xOL0_wGEr~MdRPZY."><value name="PIN"><shadow type="pins_analog" id="%_?*D#.r/68Zbgf#K2(c"><field name="PIN">A0</field></shadow></value></block></value><value name="fromLow"><shadow type="math_number" id="ti#9F*|/31y%cW?t{q3k"><field name="NUM">1</field></shadow></value><value name="fromHigh"><shadow type="math_number" id="kg(O,W(w{0]SvC7qKi0R"><field name="NUM">500</field></shadow></value><value name="toLow"><shadow type="math_number" id="BhkhVF?`{A?R/!uVqwsf"><field name="NUM">0</field></shadow></value><value name="toHigh"><shadow type="math_number" id="CXoJT1%u03N(w~8P=VoX"><field name="NUM">180</field></shadow></value></block></value><value name="DELAY_TIME"><shadow type="math_number" id="d!DVoo%zipBM4d=~Fy!%"><field name="NUM">100</field></shadow></value></block></next></block></xml>
|
||||
1
boards/default/arduino_avr/examples/11-执行器/01-门铃.mix
Normal file
1
boards/default/arduino_avr/examples/11-执行器/01-门铃.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="_oz*{?yq:)}+^S)!?bq6" x="-455" y="-121"><field name="VALUE">D8连接蜂鸣器,D2连接按钮传感器\n当按钮被按下时,蜂鸣器出现“叮咚”的声音</field><next><block type="controls_if" id="3`vT9%5^7H,S9itk).i#"><value name="IF0"><block type="inout_digital_read2" id="n2NNH?-d_9?v-WIV8/wX"><value name="PIN"><shadow type="pins_digital" id="OZhetW[.b`,Y?#R:^RXO"><field name="PIN">2</field></shadow></value></block></value><statement name="DO0"><block type="controls_tone" id="DRFCX+GM([=Jqs_G6-%{"><value name="PIN"><shadow type="pins_digital" id="i(b@UKA+:/^DW0RVJ1zT"><field name="PIN">8</field></shadow></value><value name="FREQUENCY"><shadow type="tone_notes" id="!eI/,xBXlNu)Z6vFWL]s"><field name="STAT">659</field></shadow></value><next><block type="base_delay" id="5wl4w7@+h*|Z-]Y+C*m["><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="n!;}FDy)~Z{mB.C+M5h*"><field name="NUM">500</field></shadow></value><next><block type="controls_tone" id="ntN_k,]FE!ThT#jGvz9#"><value name="PIN"><shadow type="pins_digital" id="@XfYJ;03::@7]gAm4cS!"><field name="PIN">8</field></shadow></value><value name="FREQUENCY"><shadow type="tone_notes" id="_T0Wl8XIf~9_7SgMieCI"><field name="STAT">532</field></shadow></value><next><block type="base_delay" id="mq=[QrQti;IXQa`oa{6f"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="tdn;2E*W|dhuB)B{B1T8"><field name="NUM">500</field></shadow></value><next><block type="controls_notone" id="`WBDU*BAkH,.=RGr_BFv"><value name="PIN"><shadow type="pins_digital" id="1hinP6eQXR7qpAAVN0Pv"><field name="PIN">8</field></shadow></value></block></next></block></next></block></next></block></next></block></statement></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="@_vZSi+|O`lUHmLa-(nb" x="-3" y="-63"><field name="VALUE">蜂鸣器:D8,\n播放简谱1,2,3,4,5,6</field></block><block type="base_setup" id="wwxPPYs):Dc}i%;HjK4V" x="0" y="0"><statement name="DO"><block type="lists_create_with_text2" id="1:QwZ60EGbX%ZmjR6je("><field name="TYPE">float</field><field name="VAR">tonelist</field><field name="SIZE">7</field><field name="TEXT">1046.5,1174.7,1318.5,1396.9,1568,1760,1975.5</field></block></statement></block><block type="controls_for" id="5#T3-br*q7]KwlnT{gcU" x="0" y="92"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="@X}XTH:3,giTmh?mrAVL"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="}),.E1NS]C/ftCitG82p"><field name="NUM">7</field></shadow></value><value name="STEP"><shadow type="math_number" id="ji%L3,pG2:vQ+AwwA{Ai"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="controls_tone" id="xf[V;^WsA1f-5-!4Q@M:"><value name="PIN"><shadow type="pins_digital" id="FGXX@B/o^hezSl|qGF#+"><field name="PIN">8</field></shadow></value><value name="FREQUENCY"><shadow xmlns="http://www.w3.org/1999/xhtml" type="tone_notes" id="0gvgjrbASh_?;ClsVc9w"><field name="STAT">131</field></shadow><block type="lists_getIndex" id="T_)nxD~[:jAs!DOn57"><field name="VAR">tonelist</field><value name="AT"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="93m;T*@dHD/Gt^wPk7gt"><field name="NUM">1</field></shadow><block type="variables_get" id="(Hc(fb81-B.{;0pFQ^Rj"><field name="VAR">i</field></block></value></block></value><next><block type="base_delay" id="63[J:zWiOX%_:GdL[ZZe"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="slq60yg^!32.w:lz72j#"><field name="NUM">600</field></shadow></value><next><block type="controls_notone" id="1d(.7/H~oWm+q6,9Y+jM"><value name="PIN"><shadow type="pins_digital" id="(X5P35)7p!ti(THX/Y?A"><field name="PIN">8</field></shadow></value><next><block type="base_delay" id="drPu5[m{IV_ofNW~{T~H"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="0IJ).0U|r[LtIONMzu_."><field name="NUM">600</field></shadow></value></block></next></block></next></block></next></block></statement></block></xml>
|
||||
1
boards/default/arduino_avr/examples/11-执行器/03-按键钢琴.mix
Normal file
1
boards/default/arduino_avr/examples/11-执行器/03-按键钢琴.mix
Normal file
File diff suppressed because one or more lines are too long
1
boards/default/arduino_avr/examples/11-执行器/04-两只老虎.mix
Normal file
1
boards/default/arduino_avr/examples/11-执行器/04-两只老虎.mix
Normal file
File diff suppressed because one or more lines are too long
1
boards/default/arduino_avr/examples/11-执行器/05-Alarm.mix
Normal file
1
boards/default/arduino_avr/examples/11-执行器/05-Alarm.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="base_setup" id="}TdQ~3R.MECSsGHEAnpa" x="0" y="0"><statement name="DO"><block type="controls_attachInterrupt" id="xKQNHd7i4G}rWea=:U3!"><field name="mode">RISING</field><value name="PIN"><shadow type="pins_interrupt" id="E$8=9TpgDEs;xih,uEH3"><field name="PIN">2</field></shadow></value><statement name="DO"><block type="inout_digital_write2" id="y+{R2oWc^gALgOB3T/M|"><value name="PIN"><shadow type="pins_digital" id="9KZI60Ty+b4cW+HqCA*S"><field name="PIN">10</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="UmJzGpb|)!1mA]E0MYWQ"><field name="BOOL">LOW</field></shadow></value></block></statement></block></statement></block><block type="controls_if" id="u!h2NlGE~,;.-y*XIeD=" x="0" y="154"><value name="IF0"><block type="logic_negate" id="-[1.NwjOT;vB3{OT.|/9"><value name="BOOL"><block type="inout_digital_read2" id="MSfROVNo$QsPVbiDaacs"><value name="PIN"><shadow type="pins_digital" id="p%ybTU^zAg^;5XBr%mYs"><field name="PIN">4</field></shadow></value></block></value></block></value><statement name="DO0"><block type="inout_digital_write2" id="WC~iqqkeg+p-eqmMcQ4P"><value name="PIN"><shadow type="pins_digital" id="o[UPgI=e4yYN|OjAQ-)_"><field name="PIN">10</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="$I-JT)#`ASfj;jZfb!N_"><field name="BOOL">HIGH</field></shadow></value><next><block type="controls_whileUntil" id="!gu#~/JhUH!Tu+v6#a{/"><field name="MODE">WHILE</field><value name="BOOL"><block type="inout_digital_read2" id="Y3$]O/mt``D1JR{e^3$W"><value name="PIN"><shadow type="pins_digital" id="Q.8=5LV:##|/iwDX`PE("><field name="PIN">10</field></shadow></value></block></value><statement name="DO"><block type="controls_for" id="5Ik/Yv+u31AN!!G1UfZ`"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id="LMYHEW9!{ZX5^Q5yxJ|!"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="|1+,bwO@~S`*t(0wKHSz"><field name="NUM">180</field></shadow></value><value name="STEP"><shadow type="math_number" id="hMP*j(N~K5MEaJaCAMqV"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="controls_tone" id="umr-IJ$[C(von*FSW#qO" inline="false"><value name="PIN"><shadow type="pins_digital" id="#;Ld6{C^HPaLGPUIK0(-"><field name="PIN">8</field></shadow></value><value name="FREQUENCY"><shadow xmlns="http://www.w3.org/1999/xhtml" type="tone_notes" id="2+NteE~edEVSA6S#3d@%"><field name="STAT">131</field></shadow><block type="math_arithmetic" id=";ng$tZSfnY|Tx1|?5gj+"><field name="OP">ADD</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="yPv{Ms[rIavX5((jS0jp"><field name="NUM">1</field></shadow><block type="math_arithmetic" id="]SNHJ*oJYh2z!`-YSDnW"><field name="OP">MULTIPLY</field><value name="A"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="tM6NxbzNtkI|~},{M,gn"><field name="NUM">1</field></shadow><block type="math_trig" id="Zv+lXmy0%R3#I:|11Roe"><field name="OP">SIN</field><value name="NUM"><block type="variables_get" id=".`gnb-sJcq`qPweyC|8G"><field name="VAR">i</field></block></value></block></value><value name="B"><shadow type="math_number" id="^I-U{ag1h{y^OitPUpFX"><field name="NUM">1000</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="k%[#,8v]OT.]z]0G{Fw:"><field name="NUM">2000</field></shadow></value></block></value><next><block type="base_delay" id="Gh?d#Ok,D)rIK7c;_[If"><field name="UNIT">delay</field><value name="DELAY_TIME"><shadow type="math_number" id="}YWb0^XG`8!5*KXsmt(-"><field name="NUM">10</field></shadow></value></block></next></block></statement><next><block type="controls_notone" id="sXtM9Z~wG4^=T+gVQ(H4"><value name="PIN"><shadow type="pins_digital" id="7I;JFARpC~@9/Pj.Y9ju"><field name="PIN">8</field></shadow></value></block></next></block></statement></block></next></block></statement></block></xml>
|
||||
1
boards/default/arduino_avr/examples/11-执行器/06-WS2812.mix
Normal file
1
boards/default/arduino_avr/examples/11-执行器/06-WS2812.mix
Normal file
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="4TX=5*bt0*hutw{6Z$~6" x="186" y="158"><field name="VALUE">D2接灯带</field><next><block type="display_rgb_init" id="FgY/L4~-)h[5c]R6(Nse"><field name="PIN">2</field><field name="TYPE">NEO_GRB</field><value name="LEDCOUNT"><shadow type="math_number" id="bW3e${N3qDjQATq{#rSs"><field name="NUM">10</field></shadow></value><next><block type="display_rgb_Brightness" id="qa%W{.bh4m+nxi5gzbXQ"><field name="PIN">2</field><value name="Brightness"><shadow type="math_number" id="KUPBjGPL5~1_v=3Jtie="><field name="NUM">20</field></shadow></value><next><block type="controls_for" id="!lZuV3T52@dw}+nWhk%H"><field name="VAR">i</field><value name="FROM"><shadow type="math_number" id=".V@bh0e?#/c0$p}COJ=^"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="7Ut,$%:e?VOpKd_}b~IA"><field name="NUM">10</field></shadow></value><value name="STEP"><shadow type="math_number" id="5q~9,x,W,j9~4UDN:$k{"><field name="NUM">1</field></shadow></value><statement name="DO"><block type="display_rgb" id=")c@?fGKNYA$qjPB8S~vq"><field name="PIN">2</field><value name="_LED_"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="vqUoAnW,6Qh;y{E~}+$$"><field name="NUM">1</field></shadow><block type="variables_get" id="qnJrC(EzVv6ftJ,{znl3"><field name="VAR">i</field></block></value><value name="COLOR"><block type="RGB_color_seclet" id=":B@jgD31`[MV0%8,@Sz1"><field name="COLOR">#ff0000</field></block></value></block></statement><next><block type="display_rgb_show" id="ZxnR%5v0#FvkM=^Q[GCJ"><field name="PIN">2</field></block></next></block></next></block></next></block></next></block></xml>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 Beta11" board="Arduino AVR@Arduino/Genuino Uno" xmlns="http://www.w3.org/1999/xhtml"><block type="factory_notes" id="R=%*GXh!~iC.,-r;iqC(" x="0" y="0"><field name="VALUE">简易MP3播放器\n模块使用软串口\n上一曲按键接在D2\n下一曲按键接在D3\n</field></block><block type="base_setup" id="d5T.@*]1AQ,ixdrzHVwC" x="0" y="145"><statement name="DO"><block type="serial_softserial" id="oHlD2nVKV[I*Se$BpDxs"><field name="serial_select">mySerial</field><value name="RX"><shadow type="pins_digital" id="en]vx#2iuT~D-S@00{La"><field name="PIN">7</field></shadow></value><value name="TX"><shadow type="pins_digital" id="74Q$g4@Oh;RCh[^W8TSL"><field name="PIN">8</field></shadow></value><next><block type="serial_begin" id="pD?ZiMd~VI3%WiQ^3if}"><field name="serial_select">mySerial</field><value name="CONTENT"><shadow type="math_number" id="k}AZT3qCD{i37C(O~6.U"><field name="NUM">9600</field></shadow></value><next><block type="arduino_dfplayer_mini_begin" id="zI!yDm8uS8J5t3*#19`R"><field name="dfplayer_name">myPlayer</field><value name="dfplayer_pin"><shadow type="arduino_dfplayer_mini_pin" id="H^Xh,=V]B0Xw6ffZo)8J"><field name="pin_type">mySerial</field></shadow></value><next><block type="arduino_dfplayer_mini_setTimeOut" id="4+FkMW8uJzD_mYNaY3IY"><field name="dfplayer_name">myPlayer</field><value name="timeout_data"><shadow type="math_number" id="#J!Kw]t:wr*J.0n[[o)Z"><field name="NUM">500</field></shadow></value><next><block type="arduino_dfplayer_mini_outputDevice" id="nIfDT3F*c@C^%#,h]A_v"><field name="dfplayer_name">myPlayer</field><value name="outputdevice_data"><shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"><field name="NUM">2</field></shadow><block type="arduino_dfplayer_mini_outputDevice_type" id="Qi5/2SoWZp~#rFhGxB$,"><field name="outputdevice_type">DFPLAYER_DEVICE_SD</field></block></value><next><block type="arduino_dfplayer_mini_volume" id="bx-G|J$[oM^2?ljus18x"><field name="dfplayer_name">myPlayer</field><value name="volume_data"><shadow type="math_number" id="PnuKRi4}Yh0[kiUtXDnN"><field name="NUM">15</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="OneButton_interrupt" id="wAxyK5yw)4v`DP}H]14t" x="0" y="433"><field name="mode">attachClick</field><value name="PIN"><shadow type="pins_digital" id="EL7^MK??n|[wSxc6P$3h"><field name="PIN">2</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="GrK/7}7+]#eo`=`jjkJ8"><field name="BOOL">LOW</field></shadow></value><statement name="DO"><block type="arduino_dfplayer_set_1" id="@d|eL1MX/VYd2WvH|:z;"><field name="dfplayer_name">myPlayer</field><field name="set_data">previous</field></block></statement></block><block type="OneButton_interrupt" id="1B3glUup#MXy=vtJ*K/U" x="0" y="537"><field name="mode">attachClick</field><value name="PIN"><shadow type="pins_digital" id="uK+d#^6apAydK`C.d^H)"><field name="PIN">3</field></shadow></value><value name="STAT"><shadow type="inout_highlow" id="dD]I|=4#gL4/.A+5^A,."><field name="BOOL">LOW</field></shadow></value><statement name="DO"><block type="arduino_dfplayer_set_1" id="j@uEk{,_f4RDw,VT#=kb"><field name="dfplayer_name">myPlayer</field><field name="set_data">next</field></block></statement></block></xml>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user