add some docs-ja

This commit is contained in:
塩入孔章
2019-01-22 19:18:33 +08:00
parent b740e66112
commit d3b9cbf2f4
13 changed files with 215 additions and 117 deletions
+3 -3
View File
@@ -4,11 +4,11 @@
***
:memo:**[Description](#Description)**      :bulb:**[Assembly](#Assembly)**      🛒**[购买链接](https://www.aliexpress.com/store/product/M5Stack-Official-Rubber-Band-Powered-Butterfly-Launcher-with-SERVO-control-and-GROVE-Cable-Adapter-Children-s/3226069_32956965036.html?spm=2114.12010615.8148356.2.486b2682Z5xogF)**
:memo:**[Description](#Description)**      :bulb:**[Assembly](#Assembly)**      🛒**[Purchase](https://www.aliexpress.com/store/product/M5Stack-Official-Rubber-Band-Powered-Butterfly-Launcher-with-SERVO-control-and-GROVE-Cable-Adapter-Children-s/3226069_32956965036.html?spm=2114.12010615.8148356.2.486b2682Z5xogF)**
## Description
**<mark>BUTTERFLY</mark>** is a butterfly model driven by Servo Motor. When servo turn to **0 degree**, "butterfly" will be locked; When servo turns to **90 degree**, "butterfly" will be released and fly out.
**<mark>BUTTERFLY</mark>** is a butterfly model driven by Servo Motor. When servo turn to **0 degree**, "butterfly" will be locked; When servo turns to **30 degree**, "butterfly" will be released and fly out.
<img src="assets/img/product_pics/unit/unit_butterfly_06.png" width="70%" height="70%">
@@ -20,7 +20,7 @@ Before "butterfly" fly out, we need assemble it. First, burn this [example](http
<img src="assets/img/product_pics/unit/unit_butterfly_04.png" width="70%" height="70%">
Assemble "butterfly", control the Servo Motor to **90 degree**, then bind "butterfly" to the Lanuncher, and control the Servo Motor to **0 degree** for locking "butterfly".
Assemble "butterfly", control the Servo Motor to **30 degree**, then bind "butterfly" to the Lanuncher, and control the Servo Motor to **0 degree** for locking "butterfly".
<img src="assets/img/product_pics/unit/unit_butterfly_03.png" width="70%" height="70%">
+1 -1
View File
@@ -8,7 +8,7 @@
## Description
**<mark>NEOFLASH</mark>**is a RGB LED panel with 192 RGB LED(24x8). The upper right corner is the first LED, and the LEDs are incremented from left to right and top to bottom. NEOFLASH is also equipped with three GROVE A interfaces (IIC interfaces) for easy integration with Neoflash.
**<mark>NEOFLASH</mark>**is a RGB LED panel with 192 RGB LED(24x8). The upper left corner is the first LED, and the LEDs are incremented from left to right and top to bottom. NEOFLASH is also equipped with three GROVE A interfaces (IIC interfaces) for easy integration with Neoflash.
<img src="assets/img/product_pics/unit/unit_neoflash_03.png">
+4 -2
View File
@@ -97,9 +97,11 @@
**Visual class**
[![unit_neopixel.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_neopixel_01.png)](ja/unit/neopixel)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![unit_hex.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_hex_01.png)](ja/unit/hex)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![unit_neoflash.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_neoflash_01.png)](ja/unit/neoflash)
[![unit_neopixel.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_neopixel_01.png)](ja/unit/neopixel)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![unit_catear.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_catear_01.png)](ja/unit/catear)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![unit_hex.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_hex_01.png)](ja/unit/hex)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[![unit_neoflash.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_neoflash_01.png)](ja/unit/neoflash)
<!-- [![unit_catear.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_catear_01.png)](ja/unit/catear)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -->
&nbsp;
[![unit_butterfly.png](http://m5-docs.oss-cn-shenzhen.aliyuncs.com/assets/img/product_pics/homepage_picture/unit/unit_butterfly_01.png)](ja/unit/butterfly)
***
+32 -25
View File
@@ -10,7 +10,7 @@
**<mark>LORA</mark>**モジュールはRa-02と呼ばれる小型のLoRa™モジュールを採用しています。
LoRa™は少ない消費電力で広いエリアをカバーする無線通信方式の一つです。
LoRa™は少ない消費電力で広いエリア(1~2km)をカバーする無線通信方式の一つです。Wi-FiやBluetoothなどとは補完の関係にあります。
## 特徴
@@ -49,45 +49,52 @@ LoRa™は少ない消費電力で広いエリアをカバーする無線通信
### Arduino IDE
2台以上のLoRaモジュールを用い、長距離通信を行うサンプルコードです。
- メッセージの送信に成功したら、青い文字列が表示されます。
- メッセージの受信に成功したら、黄色い文字列が表示されます。
- 初期化に失敗したら、赤い文字列が表示されます。
*完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LORA/Arduino)*
```arduino
#include <M5Stack.h>
#include <M5LoRa.h>
//declaration
String outgoing; // outgoing message
byte msgCount = 0; // count of outgoing messages
byte localAddress = 0xBB; // address of this device
byte destination = 0xFF; // destination to send to
// 宣言
String outgoing; // 送信メッセージ
byte msgCount = 0; // 送信メッセージ数
byte localAddress = 0xBB; // このデバイスのアドレス
byte destination = 0xFF; // 送信先
//initialization
// 初期化
M5.begin();
LoRa.setPins(); // set CS, reset, IRQ pin
LoRa.begin(433E6); // initialize ratio at 915 MHz
LoRa.setPins(); // CS, reset, IRQピンの設定
LoRa.begin(433E6); // 915 MHzで初期化
//send message
// メッセージ送信
void sendMessage(String outgoing) {
LoRa.beginPacket(); // start packet
LoRa.write(destination); // add destination address
LoRa.write(localAddress); // add sender address
LoRa.write(msgCount); // add message ID
LoRa.write(outgoing.length()); // add payload length
LoRa.print(outgoing); // add payload
LoRa.endPacket(); // finish packet and send it
msgCount++; // increment message ID
LoRa.beginPacket(); // パケット開始
LoRa.write(destination); // 送信先アドレスの追加
LoRa.write(localAddress); // 送信者アドレスの追加
LoRa.write(msgCount); // メッセージIDの追加
LoRa.write(outgoing.length()); // ペイロード長の追加
LoRa.print(outgoing); // ペイロードの追加
LoRa.endPacket(); // パケット送信
msgCount++; // メッセージIDインクリメント
}
//receive message
// メッセージ受信
void onReceive(int packetSize) {
if (packetSize == 0) return; // if there's no packet, return
int recipient = LoRa.read(); // recipient address
byte sender = LoRa.read(); // sender address
byte incomingMsgId = LoRa.read(); // incoming msg ID
byte incomingLength = LoRa.read(); // incoming msg length
if (packetSize == 0) return; // パケットが無い場合リターン
int recipient = LoRa.read(); // 受信者アドレス
byte sender = LoRa.read(); // 送信者アドレス
byte incomingMsgId = LoRa.read(); // 受信メッセージID
byte incomingLength = LoRa.read(); // 受信メッセージ長
String incoming = "";
while (LoRa.available()) {
incoming += (char)LoRa.read();
incoming += (char)LoRa.read(); // メッセージ取得
}
}
+27
View File
@@ -0,0 +1,27 @@
# BUTTERFLY
<img src="assets/img/product_pics/unit/unit_butterfly_01.png" width="30%" height="30%">
***
:memo:**[概要](#概要)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:bulb:**[組み立て](#組み立て)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[購入リンク](https://www.aliexpress.com/store/product/M5Stack-Official-Rubber-Band-Powered-Butterfly-Launcher-with-SERVO-control-and-GROVE-Cable-Adapter-Children-s/3226069_32956965036.html)**
## 概要
**<mark>BUTTERFLY</mark>**はServoモータによって駆動する蝶々のモデルです。サーボを**0度**に設定すると"butterfly"はロック状態になります。サーボを**30度**にすると"butterfly"は羽ばたきながら飛び出します。
<img src="assets/img/product_pics/unit/unit_butterfly_06.png" width="70%" height="70%">
## 組み立て
"butterfly"が飛び立つ前にそれらを組み立てる必要があります。はじめにこの[サンプルコード](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/BUTTERFLY/UIFlow)をM5Coreに書き込む必要があります。次に発射台とM5CoreをGROVEケーブルでGrove2Pinコンバータを介して接続します。
<img src="assets/img/product_pics/unit/unit_butterfly_02.png" width="70%" height="70%">
<img src="assets/img/product_pics/unit/unit_butterfly_04.png" width="70%" height="70%">
組み立て後、サーボモータを**30度**にしてから"butterfly"を発射台にセットします。そしてサーボモータを**0度**にしてロック状態にします。
<img src="assets/img/product_pics/unit/unit_butterfly_03.png" width="70%" height="70%">
<img src="assets/img/product_pics/unit/unit_butterfly_05.png" width="70%" height="70%">
+59
View File
@@ -0,0 +1,59 @@
# CATEAR
<img src="assets/img/product_pics/unit/unit_catear_01.png" width="30%" height="30%"><img src="assets/img/product_pics/unit/unit_catear_02.png" width="30%" height="30%"><img src="assets/img/product_pics/unit/unit_catear_03.png" width="30%" height="30%">
***
:memo:**[概要](#概要)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[サンプルコード](#サンプルコード)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[購入リンク](https://www.aliexpress.com/store/product/M5Stack-Official-Cute-Cat-Ears-Acrylic-Handbands-with-118Pcs-NeoPixel-LED-Lights-Control-by-UI-Flow/3226069_32956969127.html)**
## 概要
**<mark>CATEAR</mark>**はフルカラーLEDを118個搭載した猫耳型のアクセサリです。M5CoreとGROVEコネクタで接続します。
## 特徴
- フルカラーLED: 118個
- GROVEインターフェース、[UIFlow](http://flow.m5stack.com)と[Arduino](http://www.arduino.cc)をサポート
## 関連リンク
- **[公式ビデオ](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[フォーラム](http://forum.m5stack.com/)**
- **[FastLEDライブラリ](https://github.com/FastLED/FastLED/wiki/Overview)**
- **[FastLEDリファレンス(中国語)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)**
## サンプルコード
<!-- ### 1. Arduino IDE -->
### UIFlow
*完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/CATEAR/UIFlow)。*
<img src="assets/img/product_pics/unit/unit_example/CATEAR/example_unit_catear_01.png">
### ピンマップ
**CATEARをGROVE Aに接続**
<table>
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
<tr><td>CATEAR Unit</td><td> </td><td>CATEAR Pin</td><td>5V</td><td>GND</td></tr>
</table>
**CATEARをGROVE Bに接続**
<table>
<tr><td>M5Core(GROVE B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
<tr><td>CATEAR Unit</td><td> </td><td>CATEAR Pin</td><td>5V</td><td>GND</td></tr>
</table>
**CATEARをGROVE Cに接続**
<table>
<tr><td>M5Core(GROVE C)</td><td>GPIO16</td><td>GPIO17</td><td>5V</td><td>GND</td></tr>
<tr><td>CATEAR Unit</td><td> </td><td>CATEAR Pin</td><td>5V</td><td>GND</td></tr>
</table>
+14 -13
View File
@@ -4,31 +4,32 @@
***
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-Official-Extend-Serial-IO-I-O-Unit-Grove-Cable-I2C-Interface-for-Arduino-Blockly-ESP32/3226069_32966582585.html?spm=a2g03.12010615.8148356.48.3b773d71o7oNY1)**
:memo:**[概要](#概要)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[購入リンク](https://www.aliexpress.com/item/M5Stack-Official-Extend-Serial-IO-I-O-Unit-Grove-Cable-I2C-Interface-for-Arduino-Blockly-ESP32/32966582585.html)**
<!-- :memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[Example](#Example)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :electric_plug:**[Schematic](#Schematic)** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-Official-Extend-Serial-IO-I-O-Unit-Grove-Cable-I2C-Interface-for-Arduino-Blockly-ESP32/3226069_32966582585.html?spm=a2g03.12010615.8148356.48.3b773d71o7oNY1)** -->
## Description
## 概要
**<mark>EXT.IO</mark>** is a unit used to expand I/O port. It integrates PCA9554PW that can achieve two I/O pins expand to 8 bits of General Purpose parallel Input/Output(GPIO).
**<mark>EXT.IO</mark>**ユニットはI/Oポートを拡張します。2本のI/Oピンを8ビットの汎用パラレル入出力(GPIO)に拡張可能なPCA9554PWを統合しています。
This unit connects to GRVOE A interface on M5Core, and it communicates with M5Core through IIC(the IIC address is 0x27).
このユニットはM5CoreのGRVOE Aを経て、I2C通信で接続されます。I2Cアドレスは**0x27**です。
## Feature
## 特徴
- Expanded I/O number: 8
- GROVE interface, support [UiFlow](http://flow.m5stack.com) and [Arduino](http://www.arduino.cc)
- Two Lego installation holes
- I/O拡張数: 8
- GROVEインターフェース、[UiFlow](http://flow.m5stack.com)[Arduino](http://www.arduino.cc)をサポート
- LEGO互換の穴
## Related Link
## 関連リンク
- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[公式ビデオ](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[Forum](http://forum.m5stack.com/)**
- **[フォーラム](http://forum.m5stack.com/)**
- Datasheet - **[PCA9554PW](https://pdf1.alldatasheet.com/datasheet-pdf/view/86709/PHILIPS/PCA9554PW.html)**
- Datasheet
- **[PCA9554PW](https://pdf1.alldatasheet.com/datasheet-pdf/view/86709/PHILIPS/PCA9554PW.html)**
### PinMap
### ピンマップ
<table>
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
+20 -20
View File
@@ -4,47 +4,47 @@
***
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:electric_plug:**[Schematic](#Schematic)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-Official-Finger-Print-Unit-FPC1020A-Capacitive-Fingerprint-Identification-Module-Grove-Cable-UART-Interface-for-ESP32/3226069_32966642182.html?spm=a2g03.12010612.8148356.36.73ee56a05T9uR7)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:clapper:**[Related Video](#Related-Video)**
:memo:**[概要](#概要)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:electric_plug:**[回路図](#回路図)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[購入リンク](https://www.aliexpress.com/item/M5Stack-Official-Finger-Print-Unit-FPC1020A-Capacitive-Fingerprint-Identification-Module-Grove-Cable-UART-Interface-for-ESP32/32966642182.html)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:clapper:**[関連動画](#関連動画)**
<!-- :memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[Example](#Example)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:electric_plug:**[Schematic](#Schematic)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-Official-Finger-Print-Unit-FPC1020A-Capacitive-Fingerprint-Identification-Module-Grove-Cable-UART-Interface-for-ESP32/3226069_32966642182.html?spm=a2g03.12010612.8148356.36.73ee56a05T9uR7)**&nbsp;&nbsp;&nbsp;:clapper:**[Related Video](#Related-Video)** -->
## Description
## 概要
**<mark>FINGER</mark>** is a fingerprint recognition unit. The unit integrates the FPC1020A capacitive fingerprint recognition module and Fingerprint recognition algorithm chip. It can realize fingerprint information entry, fingerprint deletion, fingerprint search, feature extraction for multiple people and so on. The unit also can be set fingerprint recognition comparison level and different security level.
**<mark>FINGER</mark>**は指紋認識ユニットです。静電容量式指紋認識モジュール(FPC1020A)という指紋認識アルゴリズムチップを搭載しています。指紋情報入力、指紋削除、指紋検索、複数人の特徴抽出などを実現できます。 このユニットは指紋認識・比較レベルや様々なセキュリティレベルを設定することができます。
It's serial communication(UART Interface) between FINGER and M5Core.
FINGERM5Coreはシリアル通信(UART)で接続されます。
The parameter of USART: Baudrate(default: 19200bps), Start bits(1 bit), Stop bits(1 bit), Parity(no)
USARTパラメータ: ボーレート(デフォルト: 19200bps), スタートビット(1 bit), ストップビット(1 bit), パリティ(no)
## Feature
## 特徴
- Fingerprint recognition capacity: 150 pices
- Comparison mode: 1:N or 1:1
- Comparison level: 0 ~ 9(default: 5)
- Security level: 1 ~ 5(default: 3)
- Response time: fingerprint preprocessing < 0.45s
- Input voltage range: 3.3 ~ 6V
- Operating temperature and humidity: -10 ~ 60°, 20% ~ 80%
- 静電容量式指紋認識: 150 pices
- 比較モード: 1:N or 1:1
- 比較レベル: 0 ~ 9(default: 5)
- セキュリティレベル: 1 ~ 5(default: 3)
- 応答時間: fingerprint preprocessing < 0.45s
- 入力電圧範囲: 3.3 ~ 6V
- 動作温度および湿度: -10 ~ 60°, 20% ~ 80%
## Related Link
## 関連リンク
- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[公式ビデオ](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[Forum](http://forum.m5stack.com/)**
- **[フォーラム](http://forum.m5stack.com/)**
## Schematic
## 回路図
<img src="assets/img/product_pics/unit/finger_sch.JPG">
### PinMap
### ピンマップ
<table>
<tr><td>M5Core(GROVE C)</td><td>U2RXD</td><td>U2TXD</td><td>5V</td><td>GND</td></tr>
<tr><td>FINGER Unit</td><td>TXD</td><td>RXD</td><td>5V</td><td>GND</td></tr>
</table>
## Related Video
## 関連動画
- **FINGER Application**
- **FINGERアプリケーション**
<iframe height=498 width=510 src="http://player.youku.com/embed/XMzk5NjU4NjM3Ng==" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
+22 -22
View File
@@ -4,42 +4,42 @@
***
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[Example](#Example)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-New-HEX-NeoPixel-LED-Board-with-WS6812-37pcs-NeoPixel-Three-GROVE-Port-and-Power-Input/3226069_32961683136.html?spm=a2g03.12010615.8148356.2.d4652ef23dWS29)**
:memo:**[概要](#概要)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[サンプルコード](#サンプルコード)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[購入リンク](https://www.aliexpress.com/item/M5Stack-New-HEX-NeoPixel-LED-Board-with-WS6812-37pcs-NeoPixel-Three-GROVE-Port-and-Power-Input/32961683136.html)**
## Description
## 概要
**<mark>HEX</mark>** is a hexagon RGB LED unit built in 37 RGB. And you can connect many HEXs in series one by one.
**<mark>HEX</mark>**は37個のフルカラーLEDを備えた六角形LEDパネルユニットです。複数のHEXを直列に接続する事が可能です。
This's a figure about HEX serial number.
LEDの番号は下図の通りです。
<img src="assets/img/product_pics/unit/unit_hex_03.png">
## Feature
## 特徴
- The number of RGB: 37
- GROVE interface, support [UIFlow](http://flow.m5stack.com) and [Arduino](http://www.arduino.cc)
- フルカラーLED: 37
- GROVEインターフェース、[UIFlow](http://flow.m5stack.com)[Arduino](http://www.arduino.cc)をサポート
## Related Link
## 関連リンク
- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[公式ビデオ](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[Forum](http://forum.m5stack.com/)**
- **[フォーラム](http://forum.m5stack.com/)**
- **[FastLED Library](https://github.com/FastLED/FastLED/wiki/Overview)**
- **[FastLEDライブラリ](https://github.com/FastLED/FastLED/wiki/Overview)**
- **[FastLED Reference(Chinese version)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)**
- **[FastLEDリファレンス(中国語)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)**
## Example
## サンプルコード
### 1. Arduino IDE
This is a HEX example that displays gradient rainbow color. Before compiling this example, you need to install FastLED library and connect HEX to GROVE A of M5Core.
このサンプルコードはHEXを虹色にグラデーション表示します。プログラムを実行する前に、あらかじめFastLEDライブラリをインストールしてください。HEXとM5Coreは`GROVE A`で接続してください。
*If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/HEX/Arduino)。*
*完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/HEX/Arduino)。*
```arduino
/*
Install FastLED library first.(HEX is connected to GROVE A)
プログラムを実行する前に、あらかじめFastLEDライブラリをインストールしてください。(HEXをGROVE Aに接続)
*/
#include <M5Stack.h>
#include "FastLED.h"
@@ -60,7 +60,7 @@ void setup() {
M5.Lcd.setCursor(0, 25);
M5.Lcd.println("Display rainbow effect");
// Neopixel initialization
// Neopixel初期化
FastLED.addLeds<WS2811,Neopixel_PIN,GRB>/
(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
FastLED.setBrightness(10);
@@ -77,27 +77,27 @@ void loop(){
### UIFlow
*If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/HEX/UIFlow).*
*完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/HEX/UIFlow).*
<img src="assets/img/product_pics/unit/unit_example/HEX/example_unit_dual_button_01.png" width="50%" height="50%"> <img src="assets/img/product_pics/unit/unit_example/HEX/example_unit_dual_button_02.png" width="30%" height="30%">
### PinMap
### ピンマップ
**If HEX was connected to GROVE A**
**HEXをGROVE Aに接続**
<table>
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
<tr><td>HEX Unit</td><td> </td><td>HEX Pin</td><td>5V</td><td>GND</td></tr>
</table>
**If HEX was connected to GROVE B**
**HEXをGROVE Bに接続**
<table>
<tr><td>M5Core(GROVE B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
<tr><td>HEX Unit</td><td> </td><td>HEX Pin</td><td>5V</td><td>GND</td></tr>
</table>
**If HEX was connected to GROVE C**
**HEXをGROVE Cに接続**
<table>
<tr><td>M5Core(GROVE C)</td><td>GPIO16</td><td>GPIO17</td><td>5V</td><td>GND</td></tr>
+15 -15
View File
@@ -4,40 +4,40 @@
***
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[Example](#Example)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-Newest-NeoFlash-Light-Board-made-of-Acrylic-with-192pcs-NeoPixels-and-PIR-Sensor-compatible-with/3226069_32957760176.html?spm=a2g03.12010615.8148356.2.66ca32c6EOLxpR)**
:memo:**[概要](#概要)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[サンプルコード](#サンプルコード)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[購入リンク](https://www.aliexpress.com/item/M5Stack-Newest-NeoFlash-Light-Board-made-of-Acrylic-with-192pcs-NeoPixels-and-PIR-Sensor-compatible-with/32957760176.html)**
## Description
## 概要
**<mark>NEOFLASH</mark>**is a RGB LED panel with 192 RGB LED(24x8). The upper right corner is the first LED, and the LEDs are incremented from left to right and top to bottom. NEOFLASH is also equipped with three GROVE A interfaces (IIC interfaces) for easy integration with Neoflash.
**<mark>NEOFLASH</mark>**は192個のフルカラーLED(24x8)と人感センサー(PIR)を搭載したLEDパネルユニットです。左上が1番目ののLEDです。左から右、上から下にいくにつれて番号が増えていきます。NEOFLASHは、3つの`GROVE A`インターフェース(I2C)を備えており、他のNEOFLASHを接続する事が可能です。
<img src="assets/img/product_pics/unit/unit_neoflash_03.png">
## Feature
## 特徴
- The number of RGB: 192
- GROVE interface, support [UIFlow](http://flow.m5stack.com) and [Arduino](http://www.arduino.cc)
- フルカラーLED: 192
- GROVEインターフェース、[UIFlow](http://flow.m5stack.com)[Arduino](http://www.arduino.cc)をサポート
## Related Link
## 関連リンク
- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[公式ビデオ](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[Forum](http://forum.m5stack.com/)**
- **[フォーラム](http://forum.m5stack.com/)**
- **[FastLED Library](https://github.com/FastLED/FastLED/wiki/Overview)**
- **[FastLEDライブラリ](https://github.com/FastLED/FastLED/wiki/Overview)**
- **[FastLED Reference(Chinese version)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)**
- **[FastLEDリファレンス(中国語)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)**
## Example
## サンプルコード
### 1. Arduino IDE
This is a example that takes real-time time from the network and displays it on NEOFLASH. Show real time when someone is shaking before NEOFLASH, otherwise the time "disappears".
人を検知したらネットワークから現在時刻を取得してNEOFLASHに表示します。何も検知しないと時計は消えます。
*If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/NEOPIXEL/Arduino)。*
*完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/NEOPIXEL/Arduino)。*
<img src="assets/img/product_pics/unit/unit_example/NEOFLASH/example_unit_neoflash_01.png">
### PinMap
### ピンマップ
<table>
<tr><td>M5Core(GROVE B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
+15 -13
View File
@@ -4,30 +4,32 @@
***
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-Official-RS485-to-TTL-Unit-GROVE-Grove-Cable-UART-Interface-for-Arduino-ESP32-Development-Board/3226069_32966570641.html?spm=a2g03.12010615.8148356.2.5e6e66005SP84o)**
:memo:**[概要](#概要)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[購入リンク](https://www.aliexpress.com/store/product/M5Stack-RS485-Oficial-a-Unidade-BOSQUE-Arvoredo-Cabo-de-Interface-UART-TTL/3226069_32966570641.html)**
<!-- :memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[Example](#Example)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :electric_plug:**[Schematic](#Schematic)** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://pt.aliexpress.com/store/product/M5Stack-Official-RS485-to-TTL-Unit-GROVE-Grove-Cable-UART-Interface-for-Arduino-ESP32-Development-Board/3226069_32966570641.html?spm=a2g03.12010615.8148356.2.5e6e66005SP84o)** -->
## Description
## 概要
**<mark>RS485</mark>** is a unit used for converting TTL level to RS485 level. If the device to be controlled only can communicate with other device through RS485, you can connect this device with M5Core through this unit. In this case, you could easily control a RS485 device with [UIFlow](http://flow.m5stack.com).
**<mark>RS485</mark>**ユニットは、信号レベルをTTLレベルからRS485レベルに変換するユニットです。制御対象デバイスが他のデバイスとRS485でのみ通信できる場合は、本ユニットを介してM5Coreと接続できます。 この場合、[UIFlow](http://flow.m5stack.com)を使ってRS485デバイスを簡単に制御できます。
## Feature
## 特徴
- Built in MAX485/SP485EEN
- Drive RS485 devices up to 12V
- GROVE interface, support [UiFlow](http://flow.m5stack.com) and [Arduino](http://www.arduino.cc)
- Two Lego installation holes
- MAX485/SP485EEN内蔵
- 12VまでのRS485デバイス制御
- GROVEインターフェース、[UiFlow](http://flow.m5stack.com)[Arduino](http://www.arduino.cc)をサポート
- 2つのLEGO互換ホール
## Related Link
## 関連リンク
- **[Offical Video](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[公式ビデオ](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[Forum](http://forum.m5stack.com/)**
- **[フォーラム](http://forum.m5stack.com/)**
- Datasheet - **[MAX485](https://pdf1.alldatasheet.com/datasheet-pdf/view/73463/MAXIM/MAX485.html)** - **[SP485EEN](https://pdf1.alldatasheet.com/datasheet-pdf/view/45954/SIPEX/SP485EEN.html)**
- データシート
- **[MAX485](https://pdf1.alldatasheet.com/datasheet-pdf/view/73463/MAXIM/MAX485.html)**
- **[SP485EEN](https://pdf1.alldatasheet.com/datasheet-pdf/view/45954/SIPEX/SP485EEN.html)**
### PinMap
### ピンマップ
<table>
<tr><td>M5Core(GROVE C)</td><td>U2RXD(GPIO16)</td><td>U2TXD(GPIO17)</td><td>5V</td><td>GND</td></tr>
+2 -2
View File
@@ -8,7 +8,7 @@
## 描述
**<mark>BUTTERFLY</mark>** 是一个由舵机驱动的蝴蝶模型。当控制舵机是 **0 度**时,舵机发射装置上锁;当控制舵机 **90 度**时,发射装置解锁,释放“蝴蝶”。
**<mark>BUTTERFLY</mark>** 是一个由舵机驱动的蝴蝶模型。当控制舵机是 **0 度**时,舵机发射装置上锁;当控制舵机 **30 度**时,发射装置解锁,释放“蝴蝶”。
<img src="assets/img/product_pics/unit/unit_butterfly_06.png" width="70%" height="70%">
@@ -20,7 +20,7 @@
<img src="assets/img/product_pics/unit/unit_butterfly_04.png" width="70%" height="70%">
装配“蝴蝶”,控制舵机 **90 度**,将“蝴蝶”通过皮筋绑定发射装置上,并控制舵机为 **0 度**,上锁。
装配“蝴蝶”,控制舵机 **30 度**,将“蝴蝶”通过皮筋绑定发射装置上,并控制舵机为 **0 度**,上锁。
<img src="assets/img/product_pics/unit/unit_butterfly_03.png" width="70%" height="70%">
+1 -1
View File
@@ -10,7 +10,7 @@
## 描述
**<mark>NEOFLASH</mark>**是24x8阵列的Neopixel RGB LED面板。一共有192颗RGB LED。NEOFLASH上RGB LED接M5Core的GPIO26, 上角是第一个颗LED,LED递增顺序为从左到右,从上到下。NEOFLASH还配置了3个GROVE A接口(IIC接口)方便结合Neoflash做拓展应用。
**<mark>NEOFLASH</mark>**是24x8阵列的Neopixel RGB LED面板。一共有192颗RGB LED。NEOFLASH上RGB LED接M5Core的GPIO26, 上角是第一个颗LED,LED递增顺序为从左到右,从上到下。NEOFLASH还配置了3个GROVE A接口(IIC接口)方便结合Neoflash做拓展应用。
<img src="assets/img/product_pics/unit/unit_neoflash_03.png">