mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
..
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 283 KiB |
+1
-1
@@ -52,7 +52,7 @@
|
||||
|
||||
<img src='assets/img/product_pics/5.jpg'> <img src='assets/img/product_pics/bases.png'>
|
||||
|
||||
[](en/base/lan_base) [](en/base/node_base) [](en/base/btc_base)
|
||||
[](en/base/lan_base) [](en/base/node_base) [](en/base/btc_base)
|
||||
|
||||
<!-- [](en/base/plc_base) -->
|
||||
|
||||
|
||||
+31
-19
@@ -6,7 +6,10 @@
|
||||
|
||||
***
|
||||
|
||||
:memo:**[概要](#概要)** :octocat:**[サンプルコード](#サンプルコード)** :electric_plug:**[回路図](#回路図)** 🛒**[購入リンク](https://www.aliexpress.com/store/product/M5Stack-Official-Stock-Offer-GPS-Module-with-Internal-External-Antenna-MCX-Interface-IoT-Development-Board-for/3226069_32840757048.html?spm=2114.12010615.8148356.2.7c6c2743BZthY3)**
|
||||
:memo:**[概要](#概要)** :octocat:**[サンプルコード](#サンプルコード)** 🛒**[購入リンク](https://www.aliexpress.com/store/product/M5Stack-Official-Stock-Offer-GPS-Module-with-Internal-External-Antenna-MCX-Interface-IoT-Development-Board-for/3226069_32840757048.html?spm=2114.12010615.8148356.2.7c6c2743BZthY3)**
|
||||
|
||||
<!-- :memo:**[概要](#概要)** :octocat:**[サンプルコード](#サンプルコード)** :electric_plug:**[回路図](#回路図)** 🛒**[購入リンク](https://www.aliexpress.com/store/product/M5Stack-Official-Stock-Offer-GPS-Module-with-Internal-External-Antenna-MCX-Interface-IoT-Development-Board-for/3226069_32840757048.html?spm=2114.12010615.8148356.2.7c6c2743BZthY3)** -->
|
||||
|
||||
|
||||
## 概要
|
||||
|
||||
@@ -44,23 +47,32 @@
|
||||
|
||||
- [サンプルコード](https://github.com/m5stack/M5Stack/tree/master/examples/Modules/DHT12) (for DHT12)
|
||||
|
||||
<figure>
|
||||
<img src="assets/img/product_pics/module/module_btc_01.png" alt="module_btc_01" width="300px" height="300px">
|
||||
</figure>
|
||||
<figure>
|
||||
<img src="assets/img/product_pics/module/module_btc_02.png" alt="module_btc_02" width="300px" height="300px">
|
||||
</figure>
|
||||
<figure>
|
||||
<img src="assets/img/product_pics/module/module_btc_03.png" alt="module_btc_03" width="300px" height="300px">
|
||||
</figure>
|
||||
<figure>
|
||||
<img src="assets/img/product_pics/module/module_btc_04.png" alt="module_btc_04" width="300px" height="300px">
|
||||
</figure>
|
||||
<figure>
|
||||
<img src="assets/img/product_pics/module/module_btc_05.png" alt="module_btc_05" width="300px" height="300px">
|
||||
</figure>
|
||||
## サンプルコード
|
||||
|
||||
## 関連情報
|
||||
```arduino
|
||||
#include <M5Stack.h>
|
||||
#include "DHT12.h"
|
||||
#include <Wire.h> //The DHT12 uses I2C comunication.
|
||||
|
||||
- [BTC モジュール 購入(スイッチサイエンス)](https://www.switch-science.com/catalog/3993/)
|
||||
- [BTC モジュール 購入(AliExpress)](https://www.aliexpress.com/store/product/M5Stack-btc-DHT12-ESP32-micropython-bitcoin/3226069_32852302770.html)
|
||||
void setup() {
|
||||
M5.begin();
|
||||
Wire.begin();
|
||||
M5.Lcd.setBrightness(10);
|
||||
Serial.println(F("ENV Unit(DHT12 and BMP280) test..."));
|
||||
}
|
||||
|
||||
void loop() {
|
||||
float tmp = dht12.readTemperature();
|
||||
float hum = dht12.readHumidity();
|
||||
Serial.printf("Temperatura: %2.2f*C Humedad: %0.2f%%\r\n", tmp, hum);
|
||||
|
||||
M5.Lcd.setCursor(0, 0);
|
||||
M5.Lcd.setTextColor(WHITE, BLACK);
|
||||
M5.Lcd.setTextSize(3);
|
||||
M5.Lcd.printf("Temp: %2.1f \r\nHumi: %2.0f%% \r\n", tmp, hum);
|
||||
|
||||
delay(100);
|
||||
}
|
||||
```
|
||||
|
||||
特定の `BTC.ino`, click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Base/BTC/Arduino) please.
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
<img src='assets/img/product_pics/5.jpg'> <img src='assets/img/product_pics/bases.png'>
|
||||
|
||||
[](zh_CN/base/lan_base) [](zh_CN/base/node_base) [](zh_CN/base/btc_base)
|
||||
[](zh_CN/base/lan_base) [](zh_CN/base/node_base) [](zh_CN/base/btc_base)
|
||||
|
||||
<!-- [](zh_CN/base/plc_base) -->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user