Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed it to be compatible with Arduino #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PCA9539.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
#include "WProgram.h"
#endif

#include "clsPCA9539.h"
#include "PCA9539.h"
#include "Wire.h"

/**
* @name PCA9539 constructor
* @param address I2C address of the IO Expander
* Creates the class interface and sets the I2C Address of the port
*/
PCA9555::PCA9555(uint8_t address) {
PCA9539::PCA9539(uint8_t address) {
_address = address; // save the address id
_valueRegister = 0;
Wire.begin(); // start I2C communication
Expand Down
4 changes: 2 additions & 2 deletions PCA9539.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

/** enum with names of ports ED0 - ED15 */
enum {
A0, A1, A2, A3, A4, A5, A6, A7 ,
B0, B1, B2, B3, B4, B5, B6, B7
B0, B1, B2, B3, B4, B5, B6, B7 ,
C0, C1, C2, C3, C4, C5, C6, C7
};

//
Expand Down