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

twi.h compile error #14

Open
noetzelj opened this issue Jun 30, 2016 · 1 comment
Open

twi.h compile error #14

noetzelj opened this issue Jun 30, 2016 · 1 comment

Comments

@noetzelj
Copy link

Doing initial tests and had problem with twi.h when compiling. Resolved error by replaced changing code in BaseI2CDevice to:

extern "C" {

if ( ARDUINO == 10608 )

//#include "../../hardware/arduino/avr/libraries/Wire/src/utility/twi.h"
//above code throws error - below allows to compile - absolute addressing is a problem for libraries

include "utility/twi.h"

elif ( ARDUINO == 10605 )

include "../../hardware/arduino/avr/libraries/Wire/utility/twi.h"

else

uint8_t twi_writeTo(uint8_t, uint8_t*, uint8_t, uint8_t, uint8_t);

endif

}

Not sure if this problem exists in other code - will check when I do more testing.

@mindsensors
Copy link
Owner

did you resolve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants