diff --git a/docs/en/api/micropython/peripherals/api_gpio.md b/docs/en/api/gpio.md similarity index 100% rename from docs/en/api/micropython/peripherals/api_gpio.md rename to docs/en/api/gpio.md diff --git a/docs/en/api/micropython/api_lcd.md b/docs/en/api/lcd.md similarity index 100% rename from docs/en/api/micropython/api_lcd.md rename to docs/en/api/lcd.md diff --git a/docs/en/api/micropython/api_speaker.md b/docs/en/api/speaker.md similarity index 100% rename from docs/en/api/micropython/api_speaker.md rename to docs/en/api/speaker.md diff --git a/docs/en/application/lidarbot.md b/docs/en/application/lidarbot.md deleted file mode 100644 index 35ee779d..00000000 --- a/docs/en/application/lidarbot.md +++ /dev/null @@ -1,63 +0,0 @@ -# LidarBot - - - -* * * - -:memo:**[Description](#Description)**   :octocat:**[Example](https://github.com/m5stack/Applications-LidarBot/tree/master/LidarBot/Example)**   🛒**[Purchase](https://www.aliexpress.com/store/product/M5Stack-New-Lidar-Bot-Mini-Car-Lidar-8m-6Hz-McNamm-Wheels-NeoPixel-LED-Bar-with-ESP32/3226069_32951134988.html?spm=a2g1y.12024536.productList_5885013.subject_7)** - -## Description - -LidarBot is a four-wheeled car based on indoor navigation. The car body is loaded with lidar, four Mecanum wheels, control-wheel bottom board(based on MEGA328), two RGB bars, M5Core(CarMainController) and some LEGO holes. - -Real-time communication via ESP-NOW between the car and the remote control handle. After receiving the control signal, the car master controlls the wheels and RGB bars through the specified protocol format. - -And in addition to controlling the car's flexible front, rear, left and right movements, the indoor terrain can also be displayed on the display screens of the car master(M5Core) and the remote control handle. - -## Feature - -- Lidar: 8m @ 6Hz -- Programming Support - + Arduino -- Compatible LEGO - -## Protocol for CarBottomBoard - -*Protocol Format:Data Header(command type) + Data Packet + Data Tail* - -| Control Target | Protocol Format | -| :-------------: |:------------------------------------: | -| Wheels | 0xAA,SpeedX,SpeedY,SpeedZ,SpeedA,0x55 | -| One RGB | 0xAB,LedIndex,R,G,B,0x55 | -| Front RGB Bar | 0xAC,R,G,B,0x55 | -| Back RGB Bar | 0xAD,R,G,B,0x55 | -| All RGB | 0xAE,R,G,B,0x55 | -| ServoMotor0 | 0xAF,Angle,0x55 | -| ServoMotor1 | 0xB0,Angle,0x55 | - -## PARAMETER - -- Communication Parameter - - M5Core(CarMain) <-> Lidar(GPIO16 <-> Lidar) - Serial Configuration: "230400bps, 8, n, 1"(8 bits data, no parity, 1 stop bit) - - M5Core(CarMain) <-> CarBottomBoard(GPIO17 <-> Lidar) - Serial Configuration: "115200bps, 8, n, 1"(8 bits data, no parity, 1 stop bit) -- PinMap - - ServoMotor0 <-> A0(MEGA328) - - ServoMotor1 <-> A1(MEGA328) - - NeoPixelRGB <-> 11(MEGA328) - -## Include - -- 1x LidarBot -- 1x Remote Control Handle -- 2x Battery(1300mAh @ 11.1V) -- 1x Power Charger -- 1x Type-C USB Cable - -## APPLICATIONS - -- Indoor Navigation -- Autonomous walking maze -- Route plan -- Autopilot \ No newline at end of file diff --git a/docs/ja/api/arduino/api_lcd.md b/docs/ja/api/arduino/api_lcd.md deleted file mode 100644 index f76ba1a3..00000000 --- a/docs/ja/api/arduino/api_lcd.md +++ /dev/null @@ -1,144 +0,0 @@ -# LCD - - - -*画面の解像度は横320x縦240で左上を(0,0)とします。* - -### M5.lcd.setBrightness(uint8_t brightness); - -**画面全体の明るさを設定します。** - -| 引数 | 説明 | -|:---|:---| -| brightness | 画面の明るさ(0-254) | - -**使用例** - -```c++ -M5.lcd.setBrightness(200); -``` - ---- - -### M5.Lcd.setCursor(uint16_t x0, uint16_t y0); - -**表示開始位置を設定します。(x0, y0)** - -| パラメータ | 説明 | -|:---|:---| -| x0 | カーソルのx座標 | -| y0 | カーソルのy座標 | - -**使用例** - -```c++ -M5.lcd.setCursor(20, 40); -``` - ---- - -### M5.Lcd.fillScreen(uint16_t color); - -**画面全体を指定された色で塗りつぶします。** - -| パラメータ | 説明 | -|:---|:---| -| color | 塗りつぶしの色 | - -**使用例** - -```c++ -M5.Lcd.fillScreen(BLUE); -``` - ---- - -### M5.Lcd.drawPixel(int16_t x, int16_t y, [uint16_t color]); - -**位置(x, y)にcolorで指定した色の点を描画します。** - -*もしcolorを指定しない場合は、現在の背景色が使用されます。* - -| パラメータ | 説明 | -|:---|:---| -| x | 点のx座標 | -| y | 点のy座標 | -| color | 点の色 | - -**使用例** - -```c++ -M5.Lcd.drawPixel(20, 40, BLUE); -``` - ---- - -### M5.Lcd.drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color); - -**始点(x0, y0)から終点(x1, y1)にcolorで指定した色の直線を描画します。** - -*もしcolorを指定しない場合は、現在の背景色が使用されます。* - -| パラメータ | 説明 | -|:---|:---| -| x0 | 線の始点のx座標 | -| y0 | 線の始点のy座標 | -| x1 | 線の終点のx座標 | -| y1 | 線の終点のy座標 | -| color | 線の色 | - -**使用例** - -```c++ -M5.Lcd.drawLine(0, 0, 12, 12, BLUE); -``` - ---- - -### M5.Lcd.drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color); - -**colorで指定した色の線で3つの頂点(x0, y0)、(x1, y1)、(x2, y2)を持つ三角形を描画します。** - -*もしcolorを指定しない場合は、現在の背景色が使用されます。* - -| パラメータ | 説明 | -|:---|:---| -| x0 | 三角形の頂点Aのx座標 | -| y0 | 三角形の頂点Aのy座標 | -| x1 | 三角形の頂点Bのx座標 | -| y1 | 三角形の頂点Bのy座標 | -| x2 | 三角形の頂点Cのx座標 | -| y2 | 三角形の頂点Cのy座標 | -| color | 線の色 | - -**使用例** - -```c++ -M5.Lcd.drawTriangle(22, 22, 69, 98, 51, 22, BLUE); -``` - ---- - -### M5.Lcd.fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color); - -**colorで指定した色に塗りつぶされた頂点(x0, y0)、(x1, y1)、(x2, y2)を持つ三角形を描画します。** - -*もしcolorを指定しない場合は、現在の背景色が使用されます。* - -| パラメータ | 説明 | -|:---|:---| -| x0 | 三角形の頂点Aのx座標 | -| y0 | 三角形の頂点Aのy座標 | -| x1 | 三角形の頂点Bのx座標 | -| y1 | 三角形の頂点Bのy座標 | -| x2 | 三角形の頂点Cのx座標 | -| y2 | 三角形の頂点Cのy座標 | -| color | 線の色 | - -**使用例** - -```c++ -M5.Lcd.fillTriangle(122, 122, 169, 198, 151, 182, BLUE); -``` - ---- diff --git a/docs/ja/api/micropython/peripherals/api_gpio.md b/docs/ja/api/gpio.md similarity index 100% rename from docs/ja/api/micropython/peripherals/api_gpio.md rename to docs/ja/api/gpio.md diff --git a/docs/ja/api/micropython/api_lcd.md b/docs/ja/api/lcd.md similarity index 100% rename from docs/ja/api/micropython/api_lcd.md rename to docs/ja/api/lcd.md diff --git a/docs/ja/api/micropython/api_speaker.md b/docs/ja/api/speaker.md similarity index 100% rename from docs/ja/api/micropython/api_speaker.md rename to docs/ja/api/speaker.md diff --git a/docs/zh_CN/api/arduino/api_lcd.md b/docs/zh_CN/api/arduino/api_lcd.md deleted file mode 100644 index a82da5c9..00000000 --- a/docs/zh_CN/api/arduino/api_lcd.md +++ /dev/null @@ -1,180 +0,0 @@ -# LCD - - - -*屏幕像素为320x240,以屏幕左上角为原点(0,0)* - -### M5.lcd.setBrightness(uint8_t brightness); - -**例程** -```c++ -M5.lcd.setBrightness(200); -``` - -**设置整个屏幕显示的亮度。** - -| 参数 | 描述 | -| --- | --- | -| brightness | 屏幕的亮度(0-254) | - -* * * - -### M5.Lcd.setCursor(uint16_t x0, uint16_t y0); - -**例程** -```c++ -M5.lcd.setCursor(20, 40); -``` - -**设置下一次要显示的起始位置(x0, y0)** - -* * * - -### M5.Lcd.fillScreen(uint16_t color); -**例程** -```c++ -M5.Lcd.fillScreen(BLUE); -``` -**以指定的颜色填充整个屏幕。** - -| 参数 | 描述 | -| --- | --- | -| color | 颜色值 | - -* * * - -### M5.Lcd.drawPixel(int16_t x, int16_t y, uint16_t color); -**例程** -```c++ -M5.Lcd.drawPixel(20, 40); -``` -**在位置(x,y)处画color颜色的点。** - -*如果函数的color值没给出,则使用当前的背景颜色。* - -* * * - -### M5.Lcd.drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color); -**例程** -```c++ -M5.Lcd.drawLine(0,0,12,12,BLUE); -``` -**以指定的颜色color从点(x0,y0)到点(x1,y1)画直线。** - -*如果函数的color值没给出,则使用当前的背景颜色。* - -* * * - -### M5.Lcd.drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color); - -**例程** -```c++ -M5.Lcd.drawTriangle(22,22,69,98,51,22,BLUE); -``` - -**以指定颜色color画三角形,顶点分别为(x,y),(x1,y1)和(x2,y2)。** - -*如果函数的color值没给出,则使用当前的背景颜色。* - -* * * - -### M5.Lcd.fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color); - -**例程** -```c++ -M5.Lcd.fillTriangle(122, 122, 169, 198, 151, 182, BLUE); -``` -**以指定颜色画填充形式的三角形,顶点分别为(x,y),(x1,y1)和(x2,y2)。** - -*如果函数的color值没给出,则使用当前的背景颜色。* - - -* * * - diff --git a/docs/zh_CN/api/micropython/peripherals/api_gpio.md b/docs/zh_CN/api/gpio.md similarity index 100% rename from docs/zh_CN/api/micropython/peripherals/api_gpio.md rename to docs/zh_CN/api/gpio.md diff --git a/docs/zh_CN/api/micropython/api_lcd.md b/docs/zh_CN/api/lcd.md similarity index 100% rename from docs/zh_CN/api/micropython/api_lcd.md rename to docs/zh_CN/api/lcd.md diff --git a/docs/zh_CN/api/micropython/api_speaker.md b/docs/zh_CN/api/speaker.md similarity index 100% rename from docs/zh_CN/api/micropython/api_speaker.md rename to docs/zh_CN/api/speaker.md