Skip to content

Commit 4341769

Browse files
committed
lib ver roll
Added ESP8266 support. Increased the clockStretchLimit from 230uS (default) to 200 mS.
1 parent d0663f3 commit 4341769

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
src/.SparkFunCCS811.cpp.un~
3+
*.cpp~
4+
*.properties~
5+
*.un~

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name=SparkFun CCS811 Breakout
2-
version=1.0.0
2+
version=1.0.1
33
author=SparkFun Electronics <[email protected]>
44
maintainer=SparkFun Electronics <sparkfun.com>
55
sentence=A library to drive the AMS CCS811 by I2C.
66
paragraph=Uno examples to drive by I2C to collect extra sensor inputs.
77
category=Sensors
88
url=https://github.com/sparkfun/SparkFun_CCS811_Arduino_Library
9-
architectures=*
9+
architectures=*

src/SparkFunCCS811.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ CCS811Core::status CCS811Core::beginCore(void)
5858
#else
5959
#endif
6060

61-
#ifdef ARDUINO_ARCH_ESP32
61+
#ifdef (ARDUINO_ARCH_ESP32 ARDUINO_ARCH_ESP8266)
62+
Wire.setClockStretchLimit(200000);// was defautl 230 uS, now 200ms
6263
#else
6364
#endif
6465

0 commit comments

Comments
 (0)