introduction_to_the_internet_of_things
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
introduction_to_the_internet_of_things [2018/08/01 00:34] – sdh7 | introduction_to_the_internet_of_things [2018/08/01 03:32] – sdh7 | ||
---|---|---|---|
Line 14: | Line 14: | ||
Install the following libraries: | Install the following libraries: | ||
* Cayenne MQTT Library - https:// | * Cayenne MQTT Library - https:// | ||
- | * Adafruit Sensor Library | + | * Adafruit Sensor Library |
- | * Adafruit BME280 library | + | * Adafruit BME280 library |
* Arduino SimpleTimer library https:// | * Arduino SimpleTimer library https:// | ||
Line 21: | Line 21: | ||
* on OS X, navigate using the finder or otherwise cd ~/ | * on OS X, navigate using the finder or otherwise cd ~/ | ||
* On Windows & Linux the files will be somewhere similar. | * On Windows & Linux the files will be somewhere similar. | ||
- | * edit Adafruit_BME280.h using your favorite editor, | + | * edit Adafruit_BME280.h using your favorite editor, |
- | * more advanced C programmers may do something like: | + | |
- | < | + | |
- | #define BME280_ADDRESS 0x77 | + | |
- | #ifdef CLASS_BME280 | + | |
- | #define BME280_ADDRESS 0x76 | + | |
- | #endif | + | |
- | </ | + | |
- | + | ||
- | and then add | + | |
- | < | + | |
- | #define CLASS_BME280 | + | |
- | </ | + | |
- | at the beginning of your program, so that way if you get an Adafruit BME280 board in the future, it will continue to work right... | + | |
===If Using Your Phone to Tether=== | ===If Using Your Phone to Tether=== | ||
Line 61: | Line 48: | ||
< | < | ||
#define CAYENNE_PRINT Serial | #define CAYENNE_PRINT Serial | ||
- | #define CLASS_BME280 1 //enable non-Adafruit BME280 board hack | ||
#include < | #include < |
introduction_to_the_internet_of_things.txt · Last modified: 2018/08/22 15:09 by sdh7