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
Rickta59 589 Posted August 22, 2012 Share Posted August 22, 2012 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: Could you provide a link to where you got your "Keypad_I2C"? Quote Link to post Share on other sites
maxik 1 Posted August 23, 2012 Author Share Posted August 23, 2012 I just tried and "Your post looks too spamy for a new user, please remove off-site URLs.", so please search for "arduino keypad library", it's on the Arduino Playground. There is Keypad and Keypad_I2C in the keypad.zip archive. Quote Link to post Share on other sites
Rickta59 589 Posted August 23, 2012 Share Posted August 23, 2012 I just tried and "Your post looks too spamy for a new user, please remove off-site URLs.", so please search for "arduino keypad library", it's on the Arduino Playground. There is Keypad and Keypad_I2C in the keypad.zip archive. You get that because you hadn't posted three times. Now that you have made three posts you should be able to post a link to the correct url. I did look before I asked. I didn't find anything marked specifically Keypad_I2C. That is why I asked. When I search the Arduino playground for "Keypad_I2C". I get 3 hits, none of which are actually "Keypad_I2C". http://arduino.cc/playground/Main/I2CPortExpanderAndKeypads http://www.arduino.cc/playground/code/Keypad http://arduino.cc/playground/Main/I2CPortExpanderAndDecoders I also found some posts in the forum that allude to problems with some keypad_i2c and a typo. I did see posts talking about the code not working with Arduino 1.0. Do you know if the code works with Arduino 1.01? I'd like to make sure I'm using the same code as you before I try to figure out why it doesn't work for you. -rick Quote Link to post Share on other sites
maxik 1 Posted August 23, 2012 Author Share Posted August 23, 2012 I just tried this code on clean installation of Energia and it compiles! It think that 0006 version and 0008 version got mixed up and that's why it didn't work. Sorry for your trouble and thank you for your willingness to help, I really appreciate it. Keep up the good work Energia team. Quote Link to post Share on other sites
Rickta59 589 Posted August 23, 2012 Share Posted August 23, 2012 Glad you got it working. Version 0101e006 was feature incomplete. Version 101E008 is much better. Hopefully each new version will be better than the last. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.