+
+
+
+
+### Features:
+- Dual-Core 64-bit RISC-V RV64IMAFDC (RV64GC) CPU / 400Mhz(Normal)
+- Dual Independent Double Precision FPU
+- 8MiB 64bit width On-Chip SRAM
+- Neural Network Processor(KPU) / 0.8Tops
+- Field-Programmable IO Array (FPIOA)
+- Dual hardware 512-point 16bit Complex FFT
+- SPI, I2C, UART, I2S, RTC, PWM, Timer Support
+- AES, SHA256 Accelerator
+- Direct Memory Access Controller (DMAC)
+- Micropython Support
+- Firmware encryption support
+- On-board Hardware resources:
+ - Flash: 16M.
+ - TFT: ST7789. 135*240 IPS 1.14 SPI
+ - Camera :OV7740
+ - PCM: MAX98357
+ - PMIC: AXP192
+ - Button: Front and side.
+ - Battery: 200mAh.
+ - Indicator light: RGBW .
+ - External storage: TF card/Micro SD
+ - Microphone: MSM261S4030HOR.
+ - Gyro: MPU6886.
+ - Interface: CONNEXT.
+
+### Package Includes
+- M5Stick-V
+- USB cable
+
+
+### FUNCTIONAL DESCRIPTION
+#### 1.1 KENDRYTE K210
+The Kendryte K210 is a system-on-chip (SoC) that integrates machine vision and machine hearing. Using TSMC’s ultra-low-power 28-nm advanced process with dualcore 64-bit processors for better power efficiency, stability and reliability. The SoC strives for ”zero threshold” development and to be deployable in the user’s products in the shortest possible time, giving the product artificial intelligence
+- Machine Vision
+- Machine Hearing
+- Better low power vision processing speed and accuracy
+- KPU high performance Convolutional Neural Network (CNN) hardware accelerator
+- Advanced TSMC 28nm process, temperature range -40°C to 125°C
+- Firmware encryption support
+- Unique programmable IO array maximises design flexibility
+- Low voltage, reduced power consumption compared to other systems with the same processing power
+- 3.3V/1.8V dual voltage IO support eliminates need for level shifters
+
+##### 1.1.1 CPU
+The chip contains a high-performance, low power RISC-V ISA-based dual core 64-bit CPU with the following features:
+
+- Core Count: Dual-core processor
+- Bit Width: 64-bit CPU 400MHz
+- Frequency: 400MHz
+- ISA extensions: IMAFDC
+- FPU: Double Precision
+- Platform Interrupts: PLIC
+- Local Interrupts: CLINT
+- I-Cache: 32KiB x 2
+- D-Cache: 32KiB x 2
+- On-Chip SRAM: 8MiB
+
+
+#### 1.2 OV7740
+- support for output formats: RAW RGB and YUV
+- support for image sizes: VGA, QVGA, CIF and any size smaller
+- support for black sun cancellation
+- support for internal and external frame synchronization
+- standard SCCB serial interface
+- digital video port (DVP) parallel output interface
+- embedded one-time programmable (OTP) memory
+- on-chip phase lock loop (PLL)
+- embedded 1.5 V regulator for core
+- Sophisticated Edge Rate Control Enables Filterless Class D Outputs
+- 77dB PSRR at 1kHz
+- Low RF Susceptibility Rejects TDMA Noise from GSM Radios
+- Extensive Click-and-Pop Reduction Circuitry
+
+##### 1.2.1 SPECIFICATION
+- array size: 656 x 488
+- power supply: – core: 1.5VDC ± 5% – analog: 3.3V ± 5% – I/O: 1.7 ~ 3.47V
+- temperature range: – operating: -30° C to 70°C – stable image: 0° C to 50° C
+- output format: – 8-/10-bit raw RGB data – 8-bit YUV
+- lens size: 1/5"
+- input clock frequency: 6 ~ 27 MHz
+- max image transfer rate: VGA (640x480): 60 fps – QVGA (320 x 240): 120 fp
+- sensitivity: 6800 mV/(Lux-sec)
+- maximum exposure interval: 502 x tROW
+- pixel size: 4.2 μm x 4.2 μm
+- image area: 2755.2 μm x 2049.6 μm
+- package/die dimensions: – CSP3: 4185 μm x 4345 μm – COB: 4200 μm x 4360 μm
+
+
+#### 1.3 MAX98357
+- Single-Supply Operation (2.5V to 5.5V).
+- 3.2W Output Power into 4Ω at 5V
+- 2.4mA Quiescent Current
+- 92% Efficiency (RL = 8Ω, POUT = 1W)
+- 22.8µVRMS Output Noise (AV = 15dB)
+- Low 0.013% THD+N at 1kHz
+- No MCLK Required
+- Sample Rates of 8kHz to 96kHz
+- Supports Left, Right, or (Left/2 + Right/2) Output
+- Sophisticated Edge Rate Control Enables Filterless Class D Outputs
+- 77dB PSRR at 1kHz
+- Low RF Susceptibility Rejects TDMA Noise from GSM Radios
+- Extensive Click-and-Pop Reduction Circuitry
+
+#### 1.4 AXP192
+- Operation Voltage: 2.9V~6.3V (AMR:-0.3V~15V)
+- Configurable Intelligent Power Select system
+- Current and voltage limit of adaptive USB or AC adapter input
+- The resistance of internal ideal diode lower than 100mΩ
+
+#### 1.5 MPU6886
+
+##### 1.5.1 GYROSCOPE FEATURES
+The triple-axis MEMS gyroscope in the MPU-6886 includes a wide range of features:
+- Digital-output X-, Y-, and Z-axis angular rate sensors (gyroscopes) with a user-programmable full-scale range of ±250 dps, ±500 dps, ±1000 dps, and ±2000 dps and integrated 16-bit ADCs
+- Digitally-programmable low-pass filter
+- Low-power gyroscope operation
+- Factory calibrated sensitivity scale factor
+- lens size: 1/5"
+- Self-test
+
+##### 1.5.2 ACCELEROMETER FEATURES
+The triple-axis MEMS accelerometer in MPU-6886 includes a wide range of features:
+- Digital-output X-, Y-, and Z-axis accelerometer with a programmable full scale range of ±2g, ±4g, ±8g and ±16g and integrated 16-bit ADCs
+- User-programmable interrupts
+- Wake-on-motion interrupt for low power operation of applications processor
+- Self-test
+
+#### 1.6. ANOTHER HARDWARES
+- Flash: 16M.
+- TFT: ST7789. 135*240 IPS 1.14 SPI
+- Button: Front and side.
+- Battery: 200mAh.
+- Indicator light: RGBW.
+- External storage: TF card/Micro SD
+- Microphone: MSM261S4030HOR.
+- Gyro: MPU6886.
+- Interface: CONNECT.
+
+## Applications/What can M5Stick-V do?
+- Face recognition/detection
+- Object detection/classification
+- Obtaining size and coordinates of the target in real-time
+- Obtaining the type of detected target in real-time
+- Shape recognition
+- Video/Audio Record/Display
+- Game simulator
+
+
+## Links
+
+- **Web page** - [sipeed](https://maixpy.sipeed.com/en/)
+- **Quick Start Guide** - [M5StickV Guide](https://docs.m5stack.com/#/en/quick_start/m5stickv/m5stickv_quick_start)
+
+## Schematic
+
+
+
+
diff --git a/docs/zh_CN/hat/hat-adc.md b/docs/zh_CN/hat/hat-adc.md
index 36c14a01..4e68a97e 100644
--- a/docs/zh_CN/hat/hat-adc.md
+++ b/docs/zh_CN/hat/hat-adc.md
@@ -1,16 +1,21 @@
# Hat ADC {docsify-ignore-all}
-
+
***
-:memo:**[描述](#描述)** :electric_plug:**[原理图](#原理图)** 🛒**[购买链接](https://m5stack.com/collections/m5-unit/products/m5stickc-env-hat)** **[EasyLoader](#EasyLoader)**
+:memo:**[描述](#Description)** :electric_plug:**[原理图](#Schematic)** :octocat:**[Code](#Code)** **[EasyLoader](#EasyLoader)** 🛒**[购买链接](https://m5stack.com/collections/m5-unit/products/m5stickc-adc-hat)**
## 描述
**ADC Hat**是一款兼容M5SticKC的AD转换模块,内部集成ADC转换芯片ADS1100,具备全差分、16位、自校准、Δ-Σ模/ 数转换等特性,使得用户能够非常轻松的获得精确的测量结果.
+
+ADS1100包含一个具有可调增益的Δ-Σ A / D转换器内核,一个时钟发生器和一个I2C接口.
+
+ADS1100允许-5~ + 5V的差分输入,但我们通过增加该IC的外围电路设计将输入限制为0~12V
+
## 产品特性
@@ -32,33 +37,88 @@
## 包含
- 1x ADC HAT
-
+- 1x 2 Pin 3.96 端子
## 应用
-- Analog Signal Capture
+- 模拟信号捕获
-## Schematic
+## 相关链接
-
+- **Datasheet** - [ADS1100](http://www.ti.com/lit/ds/symlink/ads1100.pdf)
+## 原理图
+
+
## EasyLoader
-
+
>1.EasyLoader是一个简洁快速的程序烧录器,每一个产品页面里的EasyLoader都提供了一个与产品相关的案例程序.
>2.下载软件后,双击运行应用程序,将M5设备通过数据线连接至电脑,选择端口参数,点击 **"Burn"** 即可开始烧录
+## Code
+
+### 1. Arduino IDE
+
+*以下代码仅为片段,如需获取完整代码,[请点击此处.](https://github.com/m5stack/M5StickC/tree/master/examples/Hat/ADC).*
+
+```arduino
+#include
+#include
+#include "ADS1100.h"
+
+ADS1100 ads;
+#define REF_VOL 3.3
+#define ADC_BASE REF_VOL/32768
+void setup(void)
+{
+ M5.begin(true,true,false);
+ // The address can be changed making the option of connecting multiple devices
+ ads.getAddr_ADS1100(ADS1100_DEFAULT_ADDRESS); // 0x48, 1001 000 (ADDR = GND)
+ // The ADC gain (PGA), Device operating mode, Data rate
+ // can be changed via the following functions
+ ads.setGain(GAIN_ONE); // 1x gain(default)
+ ads.setMode(MODE_CONTIN); // Continuous conversion mode (default)
+ ads.setRate(RATE_8); // 8SPS (default)
+ ads.setOSMode(OSMODE_SINGLE); // Set to start a single-conversion
+ ads.begin();
+}
+void loop() {
+byte error;
+ int8_t address;
+ address = ads.ads_i2cAddress;
+ // The i2c_scanner uses the return value of
+ // the Write.endTransmisstion to see if
+ // a device did acknowledge to the address.
+ Wire.beginTransmission(address);
+ error = Wire.endTransmission();
+ result = ads.Measure_Differential();
+}
+```
+
+### 管脚映射
+
+
+
M5StickC
GPIO0
GPIO26
5V
GND
+
HAT ADC
SDA
SCL
5V
GND
+
+
+
+## 相关视频
+**Demo**
+
+
-## 相关链接
-- **Datasheet** - [ADS1100](http://pdf1.alldatasheet.com/datasheet-pdf/view/619024/TI1/ADS1100.html)
diff --git a/docs/zh_CN/hat/hat-dac.md b/docs/zh_CN/hat/hat-dac.md
index ddd1dc31..eba29e03 100644
--- a/docs/zh_CN/hat/hat-dac.md
+++ b/docs/zh_CN/hat/hat-dac.md
@@ -1,6 +1,6 @@
# Hat DAC {docsify-ignore-all}
-
+
***
@@ -49,7 +49,7 @@
-## Schematic
+## 原理图
@@ -69,4 +69,12 @@
## 相关链接
-- **Datasheet** - [MCP4725](http://pdf1.alldatasheet.com/datasheet-pdf/view/233449/MICROCHIP/MCP4725.html)
\ No newline at end of file
+- **Datasheet** - [MCP4725](http://pdf1.alldatasheet.com/datasheet-pdf/view/233449/MICROCHIP/MCP4725.html)
+
+
+## Video
+**Demo**
+
+
diff --git a/docs/zh_CN/hat/hat-rs485.md b/docs/zh_CN/hat/hat-rs485.md
index 88d2eaff..db372ca6 100644
--- a/docs/zh_CN/hat/hat-rs485.md
+++ b/docs/zh_CN/hat/hat-rs485.md
@@ -1,58 +1,107 @@
# Hat RS485 {docsify-ignore-all}
-
+
+
***
-:memo:**[描述](#描述)** :electric_plug:**[原理图](#原理图)** 🛒**[购买链接](https://m5stack.com/collections/m5-unit/products/m5stickc-env-hat)** **[EasyLoader](#EasyLoader)**
+:memo:**[Description](#Description)** :electric_plug:**[Schematic](#Schematic)** :octocat:**[Code](#Code)** **[EasyLoader](#EasyLoader)** 🛒**[Purchase](https://m5stack.com/collections/m5-unit/products/m5stickc-adc-hat)**
+## Description
-## 描述
-
-**RS485 Hat**是一款兼容M5SticKC的TTL-RS485转换模块,内部集成
+**RS485-HAT** is a TTL to RS485 converter for M5StickC. Among M5stack products we have 5 items that include TTL to RS485, they are RS485 unit, RS485 HAT, PLC, LAN, BASE26 they have different input voltage, vary from 5V - 12V.
+
+In this RS485-HAT, it consists of a 485 automatic transceiver circuit and a DC-DC buck circuit which can drop an input 12V to 5V.
+
+RS485 is a standard defining the electrical characteristics of drivers and receivers for use in serial communications systems, widely used in the industrial field. multipoint systems are supported.
+
+It is used to convert the TTL standard to the RS485 standard. If the outside serial device is RS485 standard, you can attach this hat on top of stickc, therefore, to implement the communication with RS485 device by TTL protocol.
+
## Product Features
- Built-in SP485EEN
- The built-in automatic transceiver circuit
- Built-in DC-DC buck circuit
-- AOZ1282CI
+- AOZ1282CI
- input DC 5~12 V
+- BandRate up to 115200
- Program Platform: Arduino, UIFlow(Blockly, Python)
-- Program Platform: Arduino, UIFlow(Blockly, Python)
-
## Include
- 1x RS485 HAT
- 1x 4 Pin 3.96 Pitch Terminal
-## Application
+## Application
+
- RS485 multipoint systems
- Serial communication in industrial field.
+## Links
+- **Datasheet** - [SP485EEN](https://pdf1.alldatasheet.com/datasheet-pdf/view/45954/SIPEX/SP485EEN.html)
+
## Schematic
-
-
-
+
## EasyLoader
-
+
->1.EasyLoader是一个简洁快速的程序烧录器,每一个产品页面里的EasyLoader都提供了一个与产品相关的案例程序.
+>1.EasyLoader is a simple and fast program burner, and each product page has a product-related case program for EasyLoader.
->2.下载软件后,双击运行应用程序,将M5设备通过数据线连接至电脑,选择端口参数,点击 **"Burn"** 即可开始烧录
+>2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click **"Burn"** to start burning.
+
+## Code
+
+### 1. Arduino IDE
+
+*To get complete code, please click [here](https://github.com/m5stack/M5StickC/tree/master/examples/Hat/RS485).*
+
+```arduino
+#include
+
+/* This demo is for RS485 Hat uart write and read ,
+AutoSend Hello M5! AutoReceive and diaplay on screen */
+
+void setup() {
+
+ M5.begin(true,true,true);
+ Serial.begin(115200);
+ // Serial2.begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert)
+ Serial2.begin(115200, SERIAL_8N1, 26, 0);
+
+ Serial.println("RS485");
+
+}
+void loop() {
+ Serial2.print("Hello M5!");
+
+ if(Serial2.available()) {
+ char ch = Serial2.read();
+ M5.Lcd.setTextSize(2);
+ }
+}
+```
+
+### Pin Map
+
+
+
M5StickC
GPIO0
GPIO26
5V
GND
+
HAT ADC
TX
RX
5V
GND
+
+## Video
+**Demo**
-## 相关链接
-
-- **Datasheet** - [SP485EEN](https://pdf1.alldatasheet.com/datasheet-pdf/view/45954/SIPEX/SP485EEN.html)
+
diff --git a/docs/zh_CN/sidebar.md b/docs/zh_CN/sidebar.md
index 1108cda0..f1e2df5f 100644
--- a/docs/zh_CN/sidebar.md
+++ b/docs/zh_CN/sidebar.md
@@ -20,6 +20,7 @@
GRAYFIREM5StickC
+ M5StickVM5StickM5GO LiteM5GO Kit
@@ -166,8 +167,8 @@
IRRS485RFID
-
+ LASER-RX
+ LASER-TX
@@ -183,9 +184,9 @@
PROTONCIRThermal
-
+ RS485
diff --git a/docs/zh_CN/unit/laser-rx.md b/docs/zh_CN/unit/laser-rx.md
index d267ea1d..548885a4 100644
--- a/docs/zh_CN/unit/laser-rx.md
+++ b/docs/zh_CN/unit/laser-rx.md
@@ -1,21 +1,22 @@
-# Unit LASER RX {docsify-ignore-all}
+# Unit LASER.RX {docsify-ignore-all}
-
+
+
***
-:memo:**[描述](#描述)** :octocat:**[例程](#例程)** :electric_plug:**[原理图](#原理图)** 🛒**[购买链接](https://m5stack.com/collections/m5-unit/products/light-sensor-unit)** :clapper:**[相关视频](#相关视频)** **[EasyLoader](#EasyLoader)**
+:memo:**[Description](#Description)** :electric_plug:**[Schematic](#Schematic)** :octocat:**[Code](#Code)** **[EasyLoader](#EasyLoader)** 🛒**[Purchase](https://m5stack.com/collections/m5-unit/products/m5stickc-adc-hat)**
+## Description
-
-30, LASER.RX
This is one of the communication devices among M5Units, a non-modulation Laser receiver. It is mainly built with a laser transistor.
-
+
Laser communications devices are wireless connections through the atmosphere. They work similarly to fiber-optic links, except the beam is transmitted through free space. While the transmitter and receiver must require line-of-sight conditions, they have the benefit of eliminating the need for broadcast rights and buried cables. Laser communications systems can be easily deployed since they are inexpensive, small, low power and do not require any radio interference studies.
Two parallel beams are needed, one for transmission and one for reception. Therefore we have a LASER.TX parallelly.
-
+
Port type of this unit is PORTB.
+
## Product Features
- Laser receiver
@@ -26,16 +27,95 @@ Port type of this unit is PORTB.
- Two Lego-compatible holes
- Program Platform: Arduino, UIFlow(Blockly, Python)
+
## Include
+
- 1x LASER.RX unit
- 1x GROVE cable
-## Application
-- Laser communication system on space.
+## Application
+- Laser communication system on space.
+
+
+## Links
## Schematic
+## EasyLoader
+
+
+
+
+
+>1.EasyLoader is a simple and fast program burner, and each product page has a product-related case program for EasyLoader.
+
+>2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click **"Burn"** to start burning.
+
+## Code
+
+### 1. Arduino IDE
+
+*To get complete code, please click [here](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/LASER).*
+
+```arduino
+/* This demo is for LASER.TX and LASER.RX, utilized UART for transmittion and reception of
+ laser signals. In order to get the result of this demo, you will need to connect LASER.TX
+ and LASER.RX with PORTC(blue) respectively onto two different M5Cores with M5GO bases on
+ bottom. Then flash the demo into both M5Core device.
+ When testing the demo, you need to point the TX unit to RX, and press the button TX connected
+ device. RX connected device will reponse with a display,and will show what is received .
+ See this link for more detals: https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Unit/LASER/EasyLoader_LASER_RX.exe
+ */
+
+#include
+
+char ch;
+// serial 2 write and read
+//#define RX
+void setup() {
+ M5.begin();
+ Serial.begin(115200);
+ // Serial2.begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert)
+ Serial2.begin(9600, SERIAL_8N1, 16, 17);
+
+}
+
+void loop() {
+M5.update();
+
+ if (M5.BtnA.wasReleased()) {
+ ch = 'A';
+ Serial2.write(ch);
+ } else if (M5.BtnB.wasReleased()) {
+ ch = 'B';
+ Serial2.write(ch);
+ } else if (M5.BtnC.wasReleased()) {
+ ch = 'C';
+ Serial2.write(ch);
+ }
+ M5.update();
+ if(Serial2.available()) {
+ char ch = Serial2.read();
+ M5.Lcd.print(ch);
+ }
+}
+```
+
+### Pin Map
+
+
+
M5 PORTB
GPIO36
GPIO26
5V
GND
+
LASER_RX
RX
/
5V
GND
+
+
+
+## Video
+**Demo**
+
+
diff --git a/docs/zh_CN/unit/laser-tx.md b/docs/zh_CN/unit/laser-tx.md
index 6964df43..5c356bbf 100644
--- a/docs/zh_CN/unit/laser-tx.md
+++ b/docs/zh_CN/unit/laser-tx.md
@@ -1,39 +1,141 @@
-# Unit LASER TX {docsify-ignore-all}
+# Unit LASER.TX {docsify-ignore-all}
-
+
+
***
-:memo:**[描述](#描述)** :octocat:**[例程](#例程)** :electric_plug:**[原理图](#原理图)** 🛒**[购买链接](https://m5stack.com/collections/m5-unit/products/light-sensor-unit)** :clapper:**[相关视频](#相关视频)** **[EasyLoader](#EasyLoader)**
+:memo:**[Description](#Description)** :electric_plug:**[Schematic](#Schematic)** :octocat:**[Code](#Code)** **[EasyLoader](#EasyLoader)** 🛒**[Purchase](https://m5stack.com/collections/m5-unit/products/m5stickc-adc-hat)**
+## Description
-
-
-This is one of the communication devices among M5Units, a Laser emitter with adjustable focal length. It is mainly build with a laser diode
-
+This is one of the communication devices among M5Units, a Laser emitter with adjustable focal length. It is mainly built with a laser diode
+
Laser communications devices are wireless connections through the atmosphere. They work similarly to fiber-optic links, except the beam is transmitted through free space. While the transmitter and receiver must require line-of-sight conditions, they have the benefit of eliminating the need for broadcast rights and buried cables. Laser communications systems can be easily deployed since they are inexpensive, small, low power and do not require any radio interference studies.
Two parallel beams are needed, one for transmission and one for reception. Therefore we have a LASER.RX parallelly.
-
+
Port type of this unit is PORTB.
+
+*warning!!! laser is dangerous for human being, Don’t aim a laser pointer towards a person’s head. This is to prevent the beam from getting in their eyes, possibly causing eye damage. Remember that people can move unexpectedly, so keeping away from their heads is a good idea*
## Product Features
- Laser transmitter
- adjustable focal length
- Work voltage: 5V
+- Pair with LASER.RX
+- Two Lego-compatible holes
- Program Platform: Arduino, UIFlow(Blockly, Python)
+
## Include
+
- 1x LASER.TX unit
- 1x GROVE cable
-## Application
-- Laser communication system on space.
+## Application
+
+- Laser communication system on space.
+## Links
## Schematic
+## EasyLoader
+
+
+
+
+
+>1.EasyLoader is a simple and fast program burner, and each product page has a product-related case program for EasyLoader.
+
+>2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click **"Burn"** to start burning.
+
+## Code
+
+### 1. Arduino IDE
+
+*To get complete code, please click [here](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/LASER).*
+
+```arduino
+/* This demo is for LASER.TX and LASER.RX, utilized UART for transmittion and reception of
+ laser signals. In order to get the result of this demo, you will need to connect LASER.TX
+ and LASER.RX with PORTC(blue) respectively onto two different M5Cores with M5GO bases on
+ bottom. Then flash the demo into both M5Core device.
+ When testing the demo, you need to point the TX unit to RX, and press the button TX connected
+ device. RX connected device will reponse with a display,and will show what is received .
+ See this link for more detals: https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Unit/LASER/EasyLoader_LASER_RX.exe
+ */
+
+#include
+
+char ch;
+// serial 2 write and read
+//#define RX
+void setup() {
+ M5.begin();
+ Serial.begin(115200);
+ // Serial2.begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert)
+ Serial2.begin(9600, SERIAL_8N1, 16, 17);
+
+}
+
+void loop() {
+M5.update();
+
+ if (M5.BtnA.wasReleased()) {
+ ch = 'A';
+ Serial2.write(ch);
+ } else if (M5.BtnB.wasReleased()) {
+ ch = 'B';
+ Serial2.write(ch);
+ } else if (M5.BtnC.wasReleased()) {
+ ch = 'C';
+ Serial2.write(ch);
+ }
+ M5.update();
+ if(Serial2.available()) {
+ char ch = Serial2.read();
+ M5.Lcd.print(ch);
+ }
+}
+```
+
+### Pin Map
+
+