From 363edc352cc13bf0c985c055a02ebfaa3789adb4 Mon Sep 17 00:00:00 2001
From: Sean <1026025056@qq.com>
Date: Tue, 12 Nov 2019 16:05:14 +0800
Subject: [PATCH] change navigation and add arduino page
---
docs/assets/css/main.css | 65 +++++--
docs/en/{api.md => arduino/arduino_api.md} | 42 ++---
docs/en/arduino/arduino_development.md | 101 +++++++++++
docs/en/arduino/arduino_home_page.md | 34 ++++
docs/en/core/fire.md | 2 +-
docs/en/uiflow/uiflow_home_page.md | 58 +++----
docs/index.html | 16 +-
docs/zh_CN/{api.md => arduino/arduino_api.md} | 160 +++++++++---------
docs/zh_CN/arduino/arduino_development.md | 103 +++++++++++
docs/zh_CN/arduino/arduino_home_page.md | 34 ++++
docs/zh_CN/core/fire.md | 2 +-
11 files changed, 467 insertions(+), 150 deletions(-)
rename docs/en/{api.md => arduino/arduino_api.md} (96%)
create mode 100644 docs/en/arduino/arduino_development.md
create mode 100644 docs/en/arduino/arduino_home_page.md
rename docs/zh_CN/{api.md => arduino/arduino_api.md} (96%)
create mode 100644 docs/zh_CN/arduino/arduino_development.md
create mode 100644 docs/zh_CN/arduino/arduino_home_page.md
diff --git a/docs/assets/css/main.css b/docs/assets/css/main.css
index 5d1997f8..e93279c2 100644
--- a/docs/assets/css/main.css
+++ b/docs/assets/css/main.css
@@ -31,6 +31,17 @@ body[data-page="en/uiflow/uiflow_home_page.md"] article.markdown-section {
padding: 0;
}
+
+body[data-page="zh_CN/arduino/arduino_home_page.md"] article.markdown-section {
+ max-width: 100%;
+ padding: 0;
+}
+
+body[data-page="en/arduino/arduino_home_page.md"] article.markdown-section {
+ max-width: 100%;
+ padding: 0;
+}
+
.pic{
width:30%;
}
@@ -75,30 +86,64 @@ body[data-page="en/uiflow/uiflow_home_page.md"] article.markdown-section {
.related_links {
position: fixed;
- top:20%;
- right: 4%;
+ top:35%;
+ right: 0px;
z-index: 900;
+ width: 50px;
}
.related_links a {
display: block;
- background-color: #555555;
- width: 80px;
- height: 80px;
+ /* background-color: #555555; */
+ width: 50px;
+ height: 50px;
text-decoration:none;
+ transition:all .25s ease;
+ float: right;
}
+
+
+.related_links a:first-child {
+ border-top-left-radius: 3px;
+ background-color: #76c5f0;
+}
+
+.related_links a:nth-child(2) {
+ background-color: #007cc2;
+}
+
+.related_links a:nth-child(3) {
+ background-color: #dc214c;
+}
+
+.related_links a:last-child {
+ border-bottom-left-radius: 3px;
+ background-color: #1f1a17;
+}
+
+
+
+
+
+
.related_links a:hover {
- background-color: #007bff;
+ width: 90px;
}
-.related_links img {
+.related_links a img {
position: relative;
- top:12px;
- left: 22px;
- width: 36px;
+ top:5px;
+ left: 5px;
+ width: 40px;
+}
+
+.related_links a:last-child img{
+ top:3.5px;
+ left: 3.5px;
+ width: 43px;
}
.related_links div {
diff --git a/docs/en/api.md b/docs/en/arduino/arduino_api.md
similarity index 96%
rename from docs/en/api.md
rename to docs/en/arduino/arduino_api.md
index 1e928503..fe492b52 100644
--- a/docs/en/api.md
+++ b/docs/en/arduino/arduino_api.md
@@ -1,21 +1,21 @@
-# Arduino API {docsify-ignore-all}
-
-## M5Core
-
-|||
-|:---:|:---:|
-|**[System](en/api/system)** | **[Speaker](en/api/speaker)** |
-|**[LCD](en/api/lcd)** | **[Button](en/api/button)** |
-|**[IMU Sensor(MPU9250)](en/api/mpu9250)** | **[TF Card](en/api/tf)** |
-|**[Power](en/api/power)** |**[I/O](en/api/gpio)** |
-|**[I2C Communication](en/api/commutil)** | **[WIFI](en/api/wifi)**|
-|**[Timer](en/api/ticker)**|
-
-
-## M5StickC
-
-|||
-|:---:|:---:|
-|**[System](en/api/system_m5stickc)** | **[Power Management(AXP192)](en/api/axp192_m5stickc)** |
-|**[TFT Screen](en/api/lcd_m5stickc)** | **[IMU(SH200Q)](en/api/sh200q_m5stickc)** |
-|**[RTC](en/api/rtc)**|
+# Arduino API {docsify-ignore-all}
+
+## M5Core
+
+|||
+|:---:|:---:|
+|**[System](en/api/system)** | **[Speaker](en/api/speaker)** |
+|**[LCD](en/api/lcd)** | **[Button](en/api/button)** |
+|**[IMU Sensor(MPU9250)](en/api/mpu9250)** | **[TF Card](en/api/tf)** |
+|**[Power](en/api/power)** |**[I/O](en/api/gpio)** |
+|**[I2C Communication](en/api/commutil)** | **[WIFI](en/api/wifi)**|
+|**[Timer](en/api/ticker)**|
+
+
+## M5StickC
+
+|||
+|:---:|:---:|
+|**[System](en/api/system_m5stickc)** | **[Power Management(AXP192)](en/api/axp192_m5stickc)** |
+|**[TFT Screen](en/api/lcd_m5stickc)** | **[IMU(SH200Q)](en/api/sh200q_m5stickc)** |
+|**[RTC](en/api/rtc)**|
diff --git a/docs/en/arduino/arduino_development.md b/docs/en/arduino/arduino_development.md
new file mode 100644
index 00000000..72b653be
--- /dev/null
+++ b/docs/en/arduino/arduino_development.md
@@ -0,0 +1,101 @@
+# Arduino IDE Development{docsify-ignore-all}
+
+
+1. [Install Arduino-IDE](#Install-Arduino-IDE)
+
+2. [Install ESP32 Board](#Install-ESP32-Board)
+
+3. [Install M5Stack Library](#Install-M5Stack-Library)
+
+4. [Install USB Driver](#Install-USB-Driver)
+
+## Install Arduino-IDE
+
+
+>[Click here to visit Arduino's official website](https://www.arduino.cc/en/Main/Software),Select the installation package for your own operating system to download.
+
+
+
+
+
+## Install ESP32 Board
+
+>1.Open up Arduino IDE, navigate to `File`->`Peferences`->`Settings`
+
+
+
+>2.Copy the following ESP32 Boards Manager url to `Additional Boards Manager URLs:`
+
+**https://dl.espressif.com/dl/package_esp32_index.json**
+
+
+
+>3.Navigate to `Tools`->`Board:`->`Boards Manager...`
+
+
+
+>4.Search `ESP32` in the pop-up window, find it and click `Install`
+
+
+
+>5.select `Tools`->`Board:`->`ESP32`
+
+
+
+## Install M5Stack Library
+
+>Different hardware devices, with different case libraries, please choose to download according to the device you use..Open Arduino IDE, then Select `Sketch`->`Include Library`->`Manage Libraries...`
+
+
+
+### For M5Core and M5Stick
+
+?>Search `M5Stack` , find it and click `Install`
+
+
+
+### For M5Stick-C
+
+?>Search `M5StickC` , find it and click `Install`
+
+
+
+## Install USB Driver
+
+>1.Click on the CP210X driver for your operating system below to download.
+
+
+
+
+### For Mac
+
+>Unzip the downloaded driver package, install the program, double-click the image file to start the installation..
+
+
+
+
+s
\ No newline at end of file
diff --git a/docs/en/arduino/arduino_home_page.md b/docs/en/arduino/arduino_home_page.md
new file mode 100644
index 00000000..28c60934
--- /dev/null
+++ b/docs/en/arduino/arduino_home_page.md
@@ -0,0 +1,34 @@
+
+
+
+
+Explain several preparations before using Arduino, including software download of Arduino IDE, and related environment configuration.
+ +Introduction to data types in UIFlow, including constants, variables, characters, random numbers, lists, etc.
- -The use of logic judgments, operations, and conditional loops, iterations, functions, etc. in UIFlow.
- -The higher-level functions in UIFlow involve remote functions and the use of MQTT communication.
- -Introduction to data types in UIFlow, including constants, variables, characters, random numbers, lists, etc.
+ +The use of logic judgments, operations, and conditional loops, iterations, functions, etc. in UIFlow.
+ +The higher-level functions in UIFlow involve remote functions and the use of MQTT communication.
+ +
+
+
+## 安装ESP32的板管理
+
+>1.打开 Arduino IDE,选择 `文件`->`首选项`->`设置`
+
+
+
+>2.复制下方的 ESP32 板管理网址到 `附加开发板管理器:` 中
+
+**https://dl.espressif.com/dl/package_esp32_index.json**
+
+
+
+>3.选择 `工具`->`开发板:`->`开发板管理器...`
+
+
+
+>4.在新弹出的对话框中,输入并搜索 `ESP32`,点击`安装`(若出现搜索失败的情况,可以尝试重启Arduino程序)
+
+
+
+
+>5.选择 `工具`->`开发板:`->`ESP32`
+
+
+
+## 安装M5Stack的库
+
+>不同的硬件设备,有着不同的案例程序库,请根据你所使用的设备选择下载.打开 Arduino IDE, 然后选择 `项目`->`加载库`->`库管理...`
+
+
+
+### For M5Core and M5Stick
+
+?>搜索 `M5Stack` 并安装,如下图所示
+
+
+
+### For M5Stick-C
+
+?>搜索 `M5StickC` 并安装,如下图所示
+
+
+
+## 安装串口驱动
+
+>1.点击下方对应自己操作系统的CP210X驱动程序 进行下载.
+
+
+
+
+
+### For Windows
+
+>将下载好的驱动压缩包解压,选择对应您操作系统的安装程序,双击安装.
+
+
+
+
+### For Mac
+
+>将下载好的驱动压缩包解压,安装程序,双击镜像文件开始安装.
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/zh_CN/arduino/arduino_home_page.md b/docs/zh_CN/arduino/arduino_home_page.md
new file mode 100644
index 00000000..b85318f7
--- /dev/null
+++ b/docs/zh_CN/arduino/arduino_home_page.md
@@ -0,0 +1,34 @@
+
+
+
+