Jump to content
43oh

TWI/I2C on Energia 0101E0008


Recommended Posts

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites
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

Link to post
Share on other sites

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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...