diff --git a/docs/en/uiflow/advanced.md b/docs/en/uiflow/advanced.md index c56b4128..5bad1cec 100644 --- a/docs/en/uiflow/advanced.md +++ b/docs/en/uiflow/advanced.md @@ -24,6 +24,8 @@ BLE UART Blynk Echo STT + Pin Servo + NTP @@ -854,4 +856,74 @@ Receive data from speech recognition. >ATOM Echo flash related ECHO STT firmware and controls led through speech recognition by M5StackFire. -> \ No newline at end of file +> + +## Pin Servo + +>Control Servo + +> + +* __Init Pin, freq, min, max,angle range__ +Initial setting of the servo, Pin=servo pin, freq=frequency of the servo signal, min=minimum pulse width, max=maximum pulse width, angle angle=angle range of the servo + +* __rotate to degree__ +Servo rotation angle + +* __write us__ +High level time + +#### USAGE + +>Control the servo to switch between 0° and 90° + +> + +## NTP + +>Get time via NTP web server + +> + +* __Init ntptime with host and timezone__ +Set NTP server and time zone + +* __Get timestamp__ +Get Unix timestamp + +* __Get date format with -__ +Get the date, the display format is separator "-" + +* __Get time format with -__ +Get time, the display format is separator "-" + +* __Get date format with - and time format with :__ +Display date and time, date format is separator "-", time format is separator ":" + +* __Get year__ +Get Year + +* __Get month__ +获取月 + +* __Get day__ +Get Day + +* __Get weekday__ +Get Weekday + +* __Get hour__ +Get Hour + + +* __Get minute__ +Get Minute + +* __Get second__ +Get Second + +#### USAGE + +>Display Unix timestamp and current time and date + +> \ No newline at end of file diff --git a/docs/image/Advanced module/NTP.webp b/docs/image/Advanced module/NTP.webp new file mode 100644 index 00000000..7fb8603e Binary files /dev/null and b/docs/image/Advanced module/NTP.webp differ diff --git a/docs/image/Advanced module/NTP_user.webp b/docs/image/Advanced module/NTP_user.webp new file mode 100644 index 00000000..91918f18 Binary files /dev/null and b/docs/image/Advanced module/NTP_user.webp differ diff --git a/docs/image/Advanced module/pin_servo.webp b/docs/image/Advanced module/pin_servo.webp new file mode 100644 index 00000000..e6e565eb Binary files /dev/null and b/docs/image/Advanced module/pin_servo.webp differ diff --git a/docs/image/Advanced module/pin_servo_user.webp b/docs/image/Advanced module/pin_servo_user.webp new file mode 100644 index 00000000..30dcb9d5 Binary files /dev/null and b/docs/image/Advanced module/pin_servo_user.webp differ diff --git a/docs/zh_CN/uiflow/advanced.md b/docs/zh_CN/uiflow/advanced.md index 6e781ffe..115d372f 100644 --- a/docs/zh_CN/uiflow/advanced.md +++ b/docs/zh_CN/uiflow/advanced.md @@ -24,6 +24,8 @@ BLE UART Blynk Echo STT + Pin Servo + NTP @@ -878,4 +880,74 @@ wifi重新连接 >ATOM Echo烧录ECHO STT相关固件,通过语音识别控制M5StackFire的LED -> \ No newline at end of file +> + +## Pin Servo + +>对舵机进行控制 + +> + +* __Init Pin, freq, min, max,angle range__ +舵机初始化设置,Pin=引脚, freq=舵机信号频率, min=最小脉冲宽度, max=最大脉冲宽度, angle angle=舵机角度范围 + +* __rotate to degree__ +舵机转动角度 + +* __write us__ +高电平时间 + +#### 使用说明 + +>控制舵机在0°和90°之间切换 + +> + +## NTP + +>通过网络服务器获取时间 + +> + +* __Init ntptime with host and timezone__ +设置NTP服务器和时区 + +* __Get timestamp__ +获取Unix时间戳 + +* __Get date format with -__ +获取日期,显示格式为分隔符- + +* __Get time format with -__ +获取时间,显示格式为分隔符- + +* __Get date format with - and time format with :__ +显示日期和时间,日期格式为分隔符-,时间格式为分隔符: + +* __Get year__ +获取年 + +* __Get month__ +获取月 + +* __Get day__ +获取日 + +* __Get weekday__ +获取星期 + +* __Get hour__ +获取小时 + + +* __Get minute__ +获取分钟 + +* __Get second__ +获取秒 + +#### 使用说明 + +>显示Unix时间戳和当前的时间日期 + +> \ No newline at end of file