Skip to content

Commit a2d97fe

Browse files
committed
Fix TinyWireM support (v1.0.2)
Library was #including TinyWireM.h, which was causing problems on some platforms. Seemed to work OK on Mac, but other users are having problems.
1 parent 2d15817 commit a2d97fe

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Adafruit_MCP23017.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
****************************************************/
1313

1414
#ifdef __AVR_ATtiny85__
15-
#include <TinyWireM.h>
16-
#define Wire TinyWireM
15+
#define Wire TinyWireM //TinyWireM is now part of Adafruit Wire library
1716
#else
1817
#include <Wire.h>
1918
#endif

Adafruit_MCP23017.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
#define _Adafruit_MCP23017_H_
1616

1717
// Don't forget the Wire library
18-
#ifdef __AVR_ATtiny85__
19-
#include <TinyWireM.h>
20-
#else
18+
//#ifdef __AVR_ATtiny85__ //TinyWireM is now part of
19+
//#include <TinyWireM.h> // Adafruit version of Wire Library
20+
//#else
2121
#include <Wire.h>
22-
#endif
22+
//#endif
2323

2424
class Adafruit_MCP23017 {
2525
public:

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit MCP23017 Arduino Library
2-
version=1.0.1
2+
version=1.0.2
33
author=Adafruit
44
maintainer=Adafruit <info@adafruit.com>
55
sentence=Library for the MCP23017 I2C Port Expander

0 commit comments

Comments
 (0)