2016-09-17から1日間の記事一覧

TI-Nspire & Arduino / 温度・湿度・気圧計 3 / サンプルスケッチを変える

When receiving 't' via a serial port, Leo transmits some data via the port in the format of a space-delimited string, "elapsedSeconds△Celsius△humidity△hectopascal". #include <Adafruit_BME280.h> boolean gotInitData = false; unsigned long initTime; float elaps</adafruit_bme280.h>…

TI-Nspire & Arduino / 温度・湿度・気圧計 2 / サンプルスケッチを試す

youtu.be The necessary libraries can be obtained from GitHub - adafruit/Adafruit_BME280_Library: Arduino Library for BME280 sensors and GitHub - adafruit/Adafruit_Sensor: Common sensor library. The following sketch assumes connection of th…

TI-Nspire & Arduino / 温度・湿度・気圧計 1 / モジュール同士を接続する

Bosch BME280 offers a choice of using I2C or SPI. In this example, I2C will be used. If an Adafruit BME280 breakout board can be bought in your location, a logic-level converter is not required.