diff --git a/docs/assets/img/product_pics/base/btc_01.png b/docs/assets/img/product_pics/base/btc_01.png new file mode 100644 index 00000000..f1a19940 Binary files /dev/null and b/docs/assets/img/product_pics/base/btc_01.png differ diff --git a/docs/index.md b/docs/index.md index a50c55e1..bf541650 100644 --- a/docs/index.md +++ b/docs/index.md @@ -52,7 +52,7 @@ -[![lan_01.png](https://i.loli.net/2018/12/13/5c1223ee16411.png)](en/base/lan_base)         [![node_01.png](https://i.loli.net/2018/12/13/5c1223fd8d2cb.png)](en/base/node_base)         [![btc_01.png](https://i.loli.net/2018/12/13/5c122411a87d1.png)](en/base/btc_base) +[![lan_01.png](https://i.loli.net/2018/12/13/5c1223ee16411.png)](en/base/lan_base)         [![node_01.png](https://i.loli.net/2018/12/13/5c1223fd8d2cb.png)](en/base/node_base)         [![btc_01.png](https://img-blog.csdnimg.cn/20181226174825591.png)](en/base/btc_base) diff --git a/docs/ja/module/btc.md b/docs/ja/module/btc.md index 1959ecf4..07519349 100644 --- a/docs/ja/module/btc.md +++ b/docs/ja/module/btc.md @@ -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)** + + + ## 概要 @@ -44,23 +47,32 @@ - [サンプルコード](https://github.com/m5stack/M5Stack/tree/master/examples/Modules/DHT12) (for DHT12) -
- module_btc_01 -
-
- module_btc_02 -
-
- module_btc_03 -
-
- module_btc_04 -
-
- module_btc_05 -
+## サンプルコード -## 関連情報 +```arduino +#include +#include "DHT12.h" +#include //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) \ No newline at end of file +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. \ No newline at end of file diff --git a/docs/zh_CN/README.md b/docs/zh_CN/README.md index 5cdd44df..be952f34 100644 --- a/docs/zh_CN/README.md +++ b/docs/zh_CN/README.md @@ -46,7 +46,7 @@ -[![lan_01.png](https://i.loli.net/2018/12/13/5c1223ee16411.png)](zh_CN/base/lan_base)         [![node_01.png](https://i.loli.net/2018/12/13/5c1223fd8d2cb.png)](zh_CN/base/node_base)         [![btc_01.png](https://i.loli.net/2018/12/13/5c122411a87d1.png)](zh_CN/base/btc_base) +[![lan_01.png](https://i.loli.net/2018/12/13/5c1223ee16411.png)](zh_CN/base/lan_base)         [![node_01.png](https://i.loli.net/2018/12/13/5c1223fd8d2cb.png)](zh_CN/base/node_base)         [![btc_01.png](https://img-blog.csdnimg.cn/20181226174825591.png)](zh_CN/base/btc_base)