diff --git a/docs/assets/img/product_pics/icon_core.png b/docs/assets/img/product_pics/icon_core.png
new file mode 100644
index 00000000..b33e5021
Binary files /dev/null and b/docs/assets/img/product_pics/icon_core.png differ
diff --git a/docs/assets/img/product_pics/unit/unit_example/RGB/example_unit_rgb_01.png b/docs/assets/img/product_pics/unit/unit_example/RGB/example_unit_rgb_01.png
new file mode 100644
index 00000000..e729a831
Binary files /dev/null and b/docs/assets/img/product_pics/unit/unit_example/RGB/example_unit_rgb_01.png differ
diff --git a/docs/en/api/gpio.md b/docs/en/api/gpio.md
index b3a88417..de868a6b 100644
--- a/docs/en/api/gpio.md
+++ b/docs/en/api/gpio.md
@@ -2,7 +2,7 @@
*Refer to GPIO API of [Arduino](http://www.arduino.cc)*
-### digitalRead
+### digitalRead
> uint32 digitalRead(uint8 pin);
Read the value of `pin`
diff --git a/docs/en/api/speaker.md b/docs/en/api/speaker.md
index f2c3e127..4d79b799 100644
--- a/docs/en/api/speaker.md
+++ b/docs/en/api/speaker.md
@@ -1,15 +1,26 @@
# Speaker
-### tone
-> M5.Speaker.tone(uint32_t freq);
+### tone
-Set the pitch of speaker.
+**Function prototype:**
-| Param | Type | Description |
-| --- | --- | --- |
-| freq | uint32_t | frequency |
+tone(uint16_t freq); // for arduino
+
+tone(uint16_t freq, uint32_t duration); // for arduino
+
+
+**Function: Set the pitch of speaker.**
+
+| Param | Description |
+| --- | --- |
+| freq | frequency |
+| duration | duration (unit: millisecond) |
**Example**
```arduino
-M5.Speaker.tone(100);
+#include
+
+M5.begin();
+
+M5.Speaker.tone(900, 1000);
```
\ No newline at end of file
diff --git a/docs/en/unit/rgb.md b/docs/en/unit/rgb.md
index 79a23b91..91f9aac1 100644
--- a/docs/en/unit/rgb.md
+++ b/docs/en/unit/rgb.md
@@ -55,11 +55,11 @@ pixels.setPixelColor(2, pixels.Color(0,0,100));
pixels.show(); // This sends the updated pixel color to the hardware.
```
-
+
diff --git a/docs/index.md b/docs/index.md
index 6ac5c1b5..227cc601 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -13,7 +13,7 @@
[](en/core/basic) [](en/core/gray) [](en/core/fire)
- **BASIC** **GRAY** **FIRE**
+ *BASIC* *GRAY* *FIRE*
@@ -29,7 +29,7 @@
[](en/core/m5go_lite) [](en/core/m5go) [](en/core/face_kit)
- **M5GO Lite** **M5GO Kit** **FACES Kit**
+ *M5GO Lite* *M5GO Kit* *FACES Kit*
***
@@ -43,7 +43,7 @@
[](en/module/gps) [](en/module/lora) [](en/module/lorawan) [](en/module/sim800)
- **GPS** **LORA** **LoRaWAN** **SIM800L**
+ *GPS* *LORA* *LoRaWAN* *SIM800L*
@@ -57,11 +57,11 @@
[](en/module/battery) [](en/module/proto) [](en/module/plus) [](en/module/usb)
- **BATTERY** **PROTO** **PLUS** **USB**
+ *BATTERY* *PROTO* *PLUS* *USB*
[](en/module/bus)
- **BUS**
+ *BUS*
@@ -69,7 +69,7 @@
[](en/module/stepmotor) [](en/module/servo) [](en/module/lego_plus)
- **STEPMOTOR** **SERVO** **LEGO+**
+ *STEPMOTOR* *SERVO* *LEGO+*
@@ -77,7 +77,7 @@
[](en/module/encoder) [](en/module/joystick)
- **ENCODER** **JOYSTICK**
+ *ENCODER* *JOYSTICK*
***
@@ -89,13 +89,13 @@
[](en/base/lan_base) [](en/base/node_base) [](en/base/btc_base) [](en/base/plc_base)
- **LAN** **NODE** **BTC** **PLC**
+ *LAN* *NODE* *BTC* *PLC*
[](en/base/core_bottom) [](en/base/m5go_bottom) [](en/base/m5go_rfid) [](en/base/m5go_charger)
- **Core BOTTOM** **M5GO BOTTOM** **M5GO RFID** **M5GO CHARGER**
+ *Core BOTTOM* *M5GO BOTTOM* *M5GO RFID* *M5GO CHARGER*
***
@@ -109,55 +109,55 @@
[](en/unit/esp32cam) [](en/unit/m5camera) [](en/unit/m5camera_f)
- **ESP32CAM** **M5Camera** **M5CameraF**
+ *ESP32CAM* *M5Camera* *M5CameraF*
[](en/unit/env) [](en/unit/earth) [](en/unit/light) [](en/unit/angle)
- **ENV** **EARTH** **LIGHT** **ANGLE**
+ *ENV* *EARTH* *LIGHT* *ANGLE*
[](en/unit/ir) [](en/unit/pir) [](en/unit/ncir) [](en/unit/thermal)
- **IR** **PIR** **NCIR** **THERMAL**
+ *IR* *PIR* *NCIR* *THERMAL*
[](en/unit/button) [](en/unit/dual_button) [](en/unit/joystick) [](en/unit/cardkb)
- **BUTTOM** **Dual-BUTTOM** **JOYSTICK** **CardKB**
+ *BUTTOM* *Dual-BUTTOM* *JOYSTICK* *CardKB*
[](en/unit/color) [](en/unit/tof) [](en/unit/heart) [](en/unit/rfid)
- **COLOR** **ToF** **HEART** **RFID**
+ *COLOR* *ToF* *HEART* *RFID*
[](en/unit/adc) [](en/unit/dac) [](en/unit/makey) [](en/unit/rgb)
- **ADC** **DAC** **LIGHT** **ANGLE**
+ *ADC* *DAC* *LIGHT* *ANGLE*
[](en/unit/relay) [](en/unit/hub) [](en/unit/396port) [](en/unit/proto)
- **RELAY** **HUB** **3.96Port** **PROTO**
+ *RELAY* *HUB* *3.96Port* *PROTO*
[](en/unit/extio) [](en/unit/rs485) [](en/unit/gps) [](en/unit/finger)
- **EXT.IO** **RS485** **GPS** **FINGER**
+ *EXT.IO* *RS485* *GPS* *FINGER*
[](en/unit/weight) [](en/unit/trace)
- **WEIGHT** **TRACE**
+ *WEIGHT* *TRACE*
@@ -165,13 +165,13 @@
[](en/unit/neopixel) [](en/unit/catear) [](en/unit/hex) [](en/unit/neoflash)
- **NeoPixel** **CatEar** **HEX** **NeoFlash**
+ *NeoPixel* *CatEar* *HEX* *NeoFlash*
[](en/unit/butterfly)
- **BUTTERFLY**
+ *BUTTERFLY*
***
@@ -183,7 +183,7 @@
[](en/app/bala) [](en/app/lidarbot) [](en/app/piano) [](en/app/flir)
- **BALA** **LidarBOT** **PIANO** **FLIR**
+ *BALA* *LidarBOT* *PIANO* *FLIR*
***
@@ -195,7 +195,7 @@
[](en/accessory/convertor/grove_t)
- **Grove-T**
+ *Grove-T*
diff --git a/docs/ja/api/speaker.md b/docs/ja/api/speaker.md
index d10b1033..bf69e263 100644
--- a/docs/ja/api/speaker.md
+++ b/docs/ja/api/speaker.md
@@ -1,7 +1,7 @@
# Speaker
-
+
\ No newline at end of file
diff --git a/docs/ja/unit/rgb.md b/docs/ja/unit/rgb.md
index ca44e824..856cacaa 100644
--- a/docs/ja/unit/rgb.md
+++ b/docs/ja/unit/rgb.md
@@ -48,11 +48,11 @@ pixels.setPixelColor(2, pixels.Color(0,0,100));
pixels.show(); // This sends the updated pixel color to the hardware.
```
-
+
diff --git a/docs/zh_CN/api/speaker.md b/docs/zh_CN/api/speaker.md
index 171eb32a..e825fc9e 100644
--- a/docs/zh_CN/api/speaker.md
+++ b/docs/zh_CN/api/speaker.md
@@ -1,6 +1,6 @@
# 喇叭
-### tone
+
### tone()
**函数原型:**
tone(uint16_t freq); // for arduino
+
tone(uint16_t freq, uint32_t duration); // for arduino
@@ -29,7 +30,7 @@ M5.Speaker.tone(100);
| freq | 声音频率 |
| duration | 持续时间 (单位:毫秒) |
-*如果函数的 duration 值没给出,则使用当前的背景颜色。*
+
**例程**
```arduino
diff --git a/docs/zh_CN/unit/rgb.md b/docs/zh_CN/unit/rgb.md
index a62ff9cf..d3541efc 100644
--- a/docs/zh_CN/unit/rgb.md
+++ b/docs/zh_CN/unit/rgb.md
@@ -53,11 +53,11 @@ pixels.setPixelColor(2, pixels.Color(0,0,100));
pixels.show(); // This sends the updated pixel color to the hardware.
```
-
+