mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
release ATOM SPK and update some info
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
|
||||
## サンプルコード
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
/*
|
||||
Example for DHT12 Sensor
|
||||
*/
|
||||
|
||||
@@ -58,7 +58,7 @@ COMMUでCAN通信を行うためのサンプルコードです。
|
||||
|
||||
*完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/COMMU/Arduino/CAN)*
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
/*
|
||||
commu_can_transmitter.ino
|
||||
*/
|
||||
@@ -82,7 +82,7 @@ CAN0.setMode(MCP_NORMAL);
|
||||
CAN0.sendMsgBuf(0x100, 0, 8, data);
|
||||
```
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
/*
|
||||
commu_can_receiver.ino
|
||||
*/
|
||||
|
||||
@@ -24,7 +24,7 @@ ENCODERはM5CoreからI2C通信で制御することができます。I2Cアド
|
||||
|
||||
**LEDを一つ制御する**
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
/*
|
||||
Parameter:
|
||||
led_index: 0 ~ 11
|
||||
@@ -43,7 +43,7 @@ void Led(int led_index, int r, int g, int b){
|
||||
|
||||
**エンコーダの増分読取り**
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
void get_encoder_increment(void){
|
||||
int temp_encoder_increment;
|
||||
|
||||
@@ -82,7 +82,7 @@ void get_encoder_increment(void){
|
||||
|
||||
*`faces_encoder.ino`の完全なコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/ENCODER/Arduino/faces_encoder).*
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
/*
|
||||
* faces_encoder.ino
|
||||
*/
|
||||
|
||||
@@ -46,7 +46,7 @@ Communication Protocol: UART.
|
||||
|
||||
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
|
||||
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Module/EasyLoader_FACES_FINGER.exe"><button type="button" class="btn btn-primary">click to download EasyLoader</button></a>
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Module/EasyLoader_FACES_FINGER.exe"><el-tag effect="plain">click to download EasyLoade</el-tag></a>
|
||||
|
||||
>1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed.(**Currently EasyLoader is only available for Windows OS**)
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ Communication Protocol: I2C.
|
||||
|
||||
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
|
||||
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Module/EasyLoader_FACES_RFID.exe"><button type="button" class="btn btn-primary">click to download EasyLoader</button></a>
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Module/EasyLoader_FACES_RFID.exe"><el-tag effect="plain">click to download EasyLoade</el-tag></a>
|
||||
|
||||
>1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed.(**Currently EasyLoader is only available for Windows OS**)
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ Communication Protocol: I2C (0x61).
|
||||
|
||||
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
|
||||
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Module/EasyLoader_GOPLUS.exe"><button type="button" class="btn btn-primary">click to download EasyLoader</button></a>
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Module/EasyLoader_GOPLUS.exe"><el-tag effect="plain">click to download EasyLoade</el-tag></a>
|
||||
|
||||
>1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed.(**Currently EasyLoader is only available for Windows OS**)
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ GPIO16、GPIO17を他の目的に使用する場合は、GPSモジュールに
|
||||
|
||||
*完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/GPS/Arduino)。*
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
#include <M5Stack.h>
|
||||
|
||||
/* By default, GPS is connected with M5Core through UART2 */
|
||||
|
||||
@@ -79,7 +79,7 @@ Product Feature:
|
||||
|
||||
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
|
||||
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Module/EasyLoader_GSM_MODULE.exe"><button type="button" class="btn btn-primary">click to download EasyLoader</button></a>
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Module/EasyLoader_GSM_MODULE.exe"><el-tag effect="plain">click to download EasyLoade</el-tag></a>
|
||||
|
||||
>1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed.(**Currently EasyLoader is only available for Windows OS**)
|
||||
|
||||
@@ -94,7 +94,7 @@ Product Feature:
|
||||
|
||||
*To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/GSM/Arduino).*
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
#include <M5Stack.h>
|
||||
|
||||
void IotWriteCommand(char cmd[],char date[]){
|
||||
|
||||
@@ -24,7 +24,7 @@ JOYSTICKとM5Coreの間はI2C通信で接続されています。I2Cアドレス
|
||||
|
||||
**単独LED制御**
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
/*
|
||||
Parameter:
|
||||
indexOfLED: 0 ~ 11
|
||||
@@ -42,7 +42,7 @@ void Led(int indexOfLED, int r, int g, int b){
|
||||
|
||||
**各方向のジョイスティック変位量とクリック取得**
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
void get_joystick_offset(void){
|
||||
Wire.requestFrom(FACE_JOY_ADDR, 5);
|
||||
if (Wire.available()) {
|
||||
@@ -76,7 +76,7 @@ void get_joystick_offset(void){
|
||||
|
||||
*完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/JOYSTICK/Arduino/faces_joystick)。*
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
/*
|
||||
* faces_joystick.ino
|
||||
*/
|
||||
|
||||
@@ -42,7 +42,7 @@ LoRa™は少ない消費電力で広いエリア(1~2km)をカバーする無線
|
||||
|
||||
<!-- ?> **メモ** もしあなたのLCD画面が表示されない場合は、以下のソースのように``m5.begin()``の前にGPIO5をプルアップする2行を追加してみてください。GPIO5がLoRaモジュールのNSSピンに接続されている為、GPIO5をプルアップする必要があります。
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
pinMode(5,OUTPUT);
|
||||
digitalWrite(5,HIGH);
|
||||
m5.begin();
|
||||
@@ -59,7 +59,7 @@ LoRa™は少ない消費電力で広いエリア(1~2km)をカバーする無線
|
||||
|
||||
*完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LORA/Arduino)*
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
#include <M5Stack.h>
|
||||
#include <M5LoRa.h>
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
|
||||
*完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LORAWAN/Arduino)。*
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
/*
|
||||
device_A.ino
|
||||
*/
|
||||
@@ -95,7 +95,7 @@ memset(buffer, 0, 128);
|
||||
length = lora.receivePacketP2PMode(buffer, 128, &rssi, 1);
|
||||
```
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
/*
|
||||
device_B.ino
|
||||
*/
|
||||
|
||||
@@ -82,7 +82,7 @@ Product Feature:
|
||||
|
||||
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
|
||||
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Module/EasyLoader_LTE_MODULE.exe"><button type="button" class="btn btn-primary">click to download EasyLoader</button></a>
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Module/EasyLoader_LTE_MODULE.exe"><el-tag effect="plain">click to download EasyLoade</el-tag></a>
|
||||
|
||||
>1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed.(**Currently EasyLoader is only available for Windows OS**)
|
||||
|
||||
@@ -96,7 +96,7 @@ Product Feature:
|
||||
|
||||
*To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LTE/Arduino).*
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
#include <M5Stack.h>
|
||||
|
||||
void IotWriteCommand(char cmd[],char date[]){
|
||||
|
||||
@@ -110,7 +110,7 @@ only for reference
|
||||
|
||||
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
|
||||
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Module/EasyLoader_NBIOT_MODULE.exe"><button type="button" class="btn btn-primary">click to download EasyLoader</button></a>
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Module/EasyLoader_NBIOT_MODULE.exe"><el-tag effect="plain">click to download EasyLoade</el-tag></a>
|
||||
|
||||
>1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed.(**Currently EasyLoader is only available for Windows OS**)
|
||||
|
||||
@@ -124,7 +124,7 @@ only for reference
|
||||
|
||||
*To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Module/NB_IOT/Arduino/NB_IOT.ino).*
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
#include <M5Stack.h>
|
||||
|
||||
void IotWriteCommand(char cmd[],char date[]){
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
*完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/PLUS/Arduino)`plus_read_encoder.ino`。*
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
/*
|
||||
* ギアポテンショメータのデータを読む
|
||||
* 赤外線ライト
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
*完全なソースコードは[こちら](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/SERVO/Arduino)。*
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
#include <Arduino.h>
|
||||
#include <M5Stack.h>
|
||||
#include <Wire.h>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
*以下のコードは不完全です(説明のためだけに). 完全なコードが必要な場合は、ここをクリックしてください[サンプルコード](https://github.com/m5stack/stepmotor_module/tree/master/Example/Arduino)。*
|
||||
|
||||
```adrduino
|
||||
```clike
|
||||
/*
|
||||
If Button A was pressed,
|
||||
stepmotor will rotate back and forth at a time
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
`usb_mouse.ino`をM5Coreに書き込みます。USBマウスをモジュールに接続します。マウスの左ボタンを押して緑色の線を描き、右ボタンで白色の線を描きます。中央のボタンを押すと画面をクリアします。
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
#include <M5Stack.h>
|
||||
#include <SPI.h>
|
||||
#include <Usb.h>
|
||||
|
||||
Reference in New Issue
Block a user