Skip to content

Commit daf7057

Browse files
committed
Adds check for ESP8266, changes version number to reflect backwards compatibility patch, updates README
1 parent 9eb6464 commit daf7057

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SparkFun LSM6DS3 Arduino Library
77

88
This is an arduino IDE library to control the LSM6DS3. It can be configured to use I2C or SPI with 2 instances per I2C channel or any number of SPI instances. The top-level driver, class LSM6DS3, contains an inner driver LSM6DS3Core, a settings struct, and float-based math functions for conversion from raw to meaningful numbers.
99

10-
This has been tested with Arduino Uno and Teensy 3.1 architectures.
10+
This has been tested with Arduino Uno, ESP32, ESP8266, and Teensy 3.1 architectures.
1111

1212
Repository Contents
1313
-------------------
@@ -46,7 +46,7 @@ Products that use this Library
4646
Version History
4747
---------------
4848

49-
* [V 1.0.0](https://github.com/sparkfun/SparkFun_LSM6DS3_Arduino_Library/releases/tag/V_1.0.0) -- Initial commit of Arduino 1.6-compatible library.
49+
* [V 1.0.1](https://github.com/sparkfun/SparkFun_LSM6DS3_Arduino_Library/releases/tag/V_1.0.1) -- Initial commit of Arduino 1.6-compatible library.
5050

5151
License Information
5252
-------------------

src/SparkFunLSM6DS3.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/******************************************************************************
22
SparkFunLSM6DS3.cpp
3-
LSM6DS3 Arduino and Teensy Driver
3+
LSM6DS3 Arduino, Teensy Driver, SparkFun ESP32 and ESP8266
44
55
Marshall Taylor @ SparkFun Electronics
66
May 20, 2015
@@ -15,6 +15,7 @@ Either can be omitted if not used
1515
Development environment specifics:
1616
Arduino IDE 1.6.4
1717
Teensy loader 1.23
18+
ESPTool 2.6 for ESP32
1819
1920
This code is released under the [MIT License](http://opensource.org/licenses/MIT).
2021
@@ -27,9 +28,6 @@ Distributed as-is; no warranty is given.
2728
//See SparkFunLSM6DS3.h for additional topology notes.
2829

2930
#include "SparkFunLSM6DS3.h"
30-
#include "stdint.h"
31-
#include "Wire.h"
32-
#include "SPI.h"
3331

3432
//****************************************************************************//
3533
//
@@ -79,6 +77,8 @@ status_t LSM6DS3Core::beginCore(void)
7977
// Data is read and written MSb first.
8078
#ifdef ESP32
8179
SPI.setBitOrder(SPI_MSBFIRST);
80+
#elif ESP8266
81+
SPI.setBitOrder(SPI_MSBFIRST);
8282
#else
8383
SPI.setBitOrder(MSBFIRST);
8484
#endif

0 commit comments

Comments
 (0)