Skip to content
This repository was archived by the owner on Aug 1, 2022. It is now read-only.

Commit 075c524

Browse files
committed
Merge branch 'master' of github.com:m5stack/m5-docs
2 parents 8a61e57 + 976a8c5 commit 075c524

10 files changed

Lines changed: 62 additions & 49 deletions

File tree

15.4 KB
Loading

docs/image/Display/image.webp

18.1 KB
Loading
3.05 KB
Loading
3.07 KB
Loading

docs/zh_CN/uiflow/Units.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340

341341
#### 功能说明
342342

343-
>进行DA转换并输出电压,最大3.7V
343+
>进行DA转换并输出电压,最大3.3V
344344
345345
><img src="/image/Units/DAC.webp" width="40%">
346346

docs/zh_CN/uiflow/advanced.md

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -483,39 +483,6 @@ wifi重新连接
483483
484484

485485

486-
## DAC
487-
488-
#### 功能说明
489-
490-
>数模转换
491-
492-
><img src="/image/Advanced module/DAC.webp" width="50%">
493-
494-
* __Init in Pin__
495-
设置转换通道
496-
497-
* __write value__
498-
写入da值
499-
500-
* __beep with freq duration scale__
501-
设置蜂鸣器频率,时间和振幅
502-
503-
* __waveform with freq type duration scale offset invert__
504-
设置波形频率振幅偏移量
505-
506-
* __stop wave__
507-
停止输出
508-
509-
* __set freq__
510-
设置频率
511-
512-
#### 使用说明
513-
514-
>使用dac0通道在25引脚输出波形
515-
516-
><img src="/image/Advanced module/DAC_user.webp" width="50%">
517-
518-
519486

520487
## I2C
521488

docs/zh_CN/uiflow/data_structure.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,31 +42,31 @@
4242
4343
><img src="/image/Operation/Math.webp" width="30%">
4444
45-
* __常量__
45+
* __Constant__
4646
填写任意数字,然后连接到其他的对象上用作赋值
4747

48-
* __常用运算__
48+
* __Common operation__
4949
在式子的两边添加数据进行加减乘除幂运算
5050

51-
* __求余__
51+
* __Surplus__
5252
在式子两边添加数据,进行求余
5353

54-
* __特殊数判断__
54+
* __Special number judgment__
5555
添加一个数值,设定判断是否为成立(例如判断是否为奇数或偶数或质数),符合时为True,否则为False
5656

57-
* __数组计算__
57+
* __Array calculation__
5858
对一个数组进行求和,求最大值或最小值,平均数等计算
5959

60-
* __舍入__
60+
* __round__
6161
对小数进行四舍五入或者上舍下舍
6262

63-
* __高级数学计算__
63+
* __advance operation__
6464
求三角函数、绝对值等运算
6565

66-
* __转换为整数__
66+
* __Convert to int__
6767
将数值转为整数
6868

69-
* __转换为浮点数__
69+
* __Convert to float__
7070
将数值转为浮点数
7171

7272

@@ -140,26 +140,37 @@
140140
>如果说变量是一个容器,那么数组就是由很多个容器组成的一个集合体,我们可以对数组里的任何一个变量进行赋值,获取
141141
142142
><img src="/image/Operation/List.webp" width="40%">
143+
143144
* __length of__
144145
测量数组的长度(即数组中元素的个数)
146+
145147
* __X is empty__
146148
判断一个数组是否为空,成立时式子为True,否则为False
149+
147150
* __in list find__
148151
数组索引,索引正序或倒序的某个指定元素
152+
149153
* __create empty list__
150154
添加一个数值,设定判断是否为成立(例如判断是否为奇数或偶数或质数),符合时为True,否则为False
155+
151156
* __create list with__
152157
自定义一个数组
158+
153159
* __in list get__
154160
获取数组某个索引元素值
161+
155162
* __in list get sub-list from__
156163
从数组中截获元素作为新数组
164+
157165
* __icreat list with item repeated times__
158166
建立一个数组,使用元素重复一定次数进行填充
167+
159168
* __reverse__
160169
数组倒序排列
170+
161171
* __in list set as__
162172
在数组中设置某个索引为指定值
173+
163174
* __make list from text with delimiter__
164175
从文本建立数组,使用分隔符
165176

@@ -240,7 +251,6 @@
240251
* __Reduce to decimal places__
241252
指定小数位数
242253

243-
#### Instructions
244-
>
254+
#### 使用方法
245255

246256
><img src="/image/Operation/Text_user.webp" width="50%">

docs/zh_CN/uiflow/hardware.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</el-card>
1313

1414

15-
## RGB
15+
## RGB Bar
1616

1717
#### 功能说明
1818

@@ -137,12 +137,12 @@
137137

138138
## POWER (M5StickC)
139139

140-
#### 功能说明
140+
#### 功能说明
141141

142142
>设置AXP192相关参数.
143143
144144

145-
><img src="/image/Hardwares/POWERAXP.webp" width="30%">
145+
><img src="/image/Hardwares/PowerAXP.webp" width="30%">
146146
147147
* __Get charge state__
148148
返回充电状态

docs/zh_CN/uiflow/logic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
判断条件是否成立,当成立时执行Do右侧程序
2626

2727
* __if else__
28-
判断条件是否成立,当成立时执行Do,不成立时执行else
28+
判断条件是否成立,当成立时执行Do右侧程序,不成立时执行else右侧程序
2929

3030
* __true__
3131
布尔值可以代替判断条件的式子,设置为true为成立,设置false为不成立

docs/zh_CN/uiflow/ui_simulator.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ https://unicode-table.com/en/blocks/miscellaneous-technical/">点击查看详情
195195
196196

197197
><img src="/image/Display/Emoji.webp" width="30%">
198+
198199
* __Set emoji map in__
199200
设置方阵像素点,勾选方阵中的小方格对应显示对应的像素点
200201

@@ -239,6 +240,21 @@ https://unicode-table.com/en/blocks/miscellaneous-technical/">点击查看详情
239240
* __rect__
240241
绘制矩形
241242

243+
* __triangle__
244+
绘制三角形
245+
246+
* __circle__
247+
绘制圆
248+
249+
* __ellipse__
250+
绘制椭圆形
251+
252+
* __arc__
253+
绘制弧
254+
255+
* __polygon__
256+
绘制多边形
257+
242258
#### 注意
243259

244260
>M5GO的屏幕分辨率为320X240
@@ -257,6 +273,26 @@ https://unicode-table.com/en/blocks/miscellaneous-technical/">点击查看详情
257273

258274
>添加一些本地图片,到屏幕上显示(添加要求:大小为25K以下,格式为jpg或bmp)
259275
276+
><img src="/image/Display/image.webp" width="30%">
277+
278+
* __Show__
279+
显示图片
280+
281+
* __Hide__
282+
隐藏图片
283+
284+
* __Set x y__
285+
设置图片所在的x,y坐标
286+
287+
* __Set x__
288+
设置图片所在的x坐标
289+
290+
* __Set y__
291+
设置图片所在的y坐标
292+
293+
* __Set image__
294+
设置图片为image0
295+
260296
#### 添加图片
261297

262298
>首先用APIKey建立起设备与UIFlow的连接,点击页面右上角的云保存按钮,点击image选项,点击Add image从本地添加图片,等待图片上传完成

0 commit comments

Comments
 (0)