maxik 1 Posted August 22, 2012 Share Posted August 22, 2012 Hello. I'm trying to get TWI working on latest Energia with Aruino library "Keypad_I2C". Basic Keypad library works after little modification, but when I try to compile program with I2C I get error: E:\energia\hardware\msp430\libraries\Wire\Wire.cpp: In member function 'uint8_t TwoWire::requestFrom(uint8_t, uint8_t)': E:\energia\hardware\msp430\libraries\Wire\Wire.cpp:92:58: error: too few arguments to function 'uint8_t twi_readFrom(uint8_t, uint8_t*, uint8_t, uint8_t)' E:\energia\hardware\msp430\cores\msp430/twi.h:94:9: note: declared here E:\energia\hardware\msp430\libraries\Wire\Wire.cpp: In member function 'uint8_t TwoWire::endTransmission()': E:\energia\hardware\msp430\libraries\Wire\Wire.cpp:124:66: error: too few arguments to function 'uint8_t twi_writeTo(uint8_t, uint8_t*, uint8_t, uint8_t, uint8_t)' E:\energia\hardware\msp430\cores\msp430/twi.h:95:9: note: declared here I tried few combinations of Wire.cpp, twi.c and twi.h as there are such files in hardware\msp430\libraries\Wire\ and hardware\msp430\cores\msp430 but none of this combinations worked. Some just returned different error messages, such as not defined constants or USCI not available. I am using LaunchPad rev.1.5 with MSP430G2553. Regards. Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.