You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-8Lines changed: 2 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Instructions for using the BSEC Arduino Library in Arduino 1.8.9
1
+
# Instructions for using the BSEC Arduino Library in Arduino 1.8.13
2
2
3
3
## About BSEC
4
4
@@ -75,7 +75,7 @@ The BSEC software is only available for download or use after accepting the soft
75
75
76
76
### 1. Install the latest Arduino IDE
77
77
78
-
As of this publication, the latest Arduino IDE 1.8.9 can be downloaded from this [link](https://www.arduino.cc/download_handler.php)
78
+
As of this publication, the latest Arduino IDE 1.8.13 can be downloaded from this [link](https://www.arduino.cc/download_handler.php)
79
79
80
80
### 2. Install the BSEC library
81
81
@@ -157,12 +157,6 @@ add `*libalgobsec.a:(.literal.* .text.*)`, which should look like,
157
157
*(.rodata._ZZ*__func__)
158
158
```
159
159
160
-
#### NRF52 - modify the boards.txt file
161
-
162
-
Due to possibly various build options for ARM's Cortex-M4's FPU, a variety of static libaries can be generated. We offer two options based on whether the FPU is disabled or enabled. The static libraries are stored under the directories `cortex-m4` and `cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard` respectively. In order for the Arduino builder to use the correct static library, the directory name should match the internal `build.arch` variable. For the NRF52 core, this seems to be derived from the `build.mcu` variable which is defined in the boards.txt file. Hence, one needs to update this variable to use the directory with the floating point enabled static library.
163
-
164
-
For example, the line [`feather52832.build.mcu=cortex-m4`](https://github.com/adafruit/Adafruit_nRF52_Arduino/blob/0278a461b790fcfe2dcb85502791eece80c42aef/boards.txt#L38) should become `feather52832.build.mcu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard`
165
-
166
160
### 5. Verify and upload the example code
167
161
168
162
Start or restart the Arduino IDE. Open the example code found under ```File>Examples>Bsec software library>Basic```.
output = "Timestamp [ms], raw temperature [°C], pressure [hPa], raw relative humidity [%], gas [Ohm], IAQ, IAQ accuracy, temperature [°C], relative humidity [%]";
56
+
Serial.println(output);
57
+
}
58
+
59
+
// Function that is looped forever
60
+
voidloop(void)
61
+
{
62
+
unsignedlong time_trigger = millis();
63
+
if (iaqSensor.run()) { // If new data is available
0 commit comments