islandgeek 0 Posted January 10, 2013 Share Posted January 10, 2013 I'm on osx with energia, and I just got my 430BOOST-SENSE1 cap touch board. 1) What does it take to start programming it with energia? (How does one add the libraries & examples from slac489 or slac490) 2) I got the demo working with the M430G2452 IC that came with the board, but eager to try energia I uploaded the blink example to the IC. While the middle LED blinks now, where/how can I get back the original demo to the chip when needed? 3) As a newbie hobbyist, should I be using something other then energia? Thanks in advance, I look forward to learning and experimenting! Quote Link to post Share on other sites
energia 485 Posted January 10, 2013 Share Posted January 10, 2013 CapSense library is posted here: http://forum.43oh.com/topic/3158-capacitive-touch-library/ All examples are written to work with the 430-BOOST-SENSE1 BoosterPack. There are a bunch of other libraries here: http://forum.43oh.com/forum/30-energia-libraries/ that you might find usefulle. And to answer 3). Energia is totally the right place to start as a newbie hobbyist. As you learn, you will find that Energia is not limited to the Wiring/Arduino API but also allows you go down to assembly level if you like. If you decide to start working with Energia and have questions then the Energia specific forum is here: http://forum.43oh.com/forum/28-energia/ Good luck and let us know how it goes with the CapSens library CapSense library. Quote Link to post Share on other sites
islandgeek 0 Posted January 10, 2013 Author Share Posted January 10, 2013 CapSense library is posted here: http://forum.43oh.com/topic/3158-capacitive-touch-library/ All examples are written to work with the 430-BOOST-SENSE1 BoosterPack. Thanks for the prompt reply! There was no INSTALL/README, so I did the following just by making assumptions on where things should go: sudo cp /Users/islandgeek/Downloads/CapTouch\ 2/CapTouch.cpp Java/hardware/msp430/libraries/ sudo cp /Users/islandgeek/Downloads/CapTouch\ 2/CapTouch.h Java/hardware/tools/msp430/msp430/include/ sudo cp -r /Users/islandgeek/Downloads/CapTouch\ 2/examples/ Java/examples I see the examples in energia now. However when I try to upload CapTouchButton (the first example) to the msp430: CapTouchButton.cpp.o: In function `loop': CapTouchButton.cpp:37: undefined reference to `CapTouch::isTouched()' CapTouchButton.cpp:38: undefined reference to `CapTouch::isTouched()' CapTouchButton.cpp:39: undefined reference to `CapTouch::isTouched()' CapTouchButton.cpp:40: undefined reference to `CapTouch::isTouched()' CapTouchButton.cpp.o: In function `__static_initialization_and_destruction_0': CapTouchButton.cpp:25: undefined reference to `CapTouch::CapTouch(unsigned char, unsigned char)' CapTouchButton.cpp:26: undefined reference to `CapTouch::CapTouch(unsigned char, unsigned char)' CapTouchButton.cpp:27: undefined reference to `CapTouch::CapTouch(unsigned char, unsigned char)' CapTouchButton.cpp:28: undefined reference to `CapTouch::CapTouch(unsigned char, unsigned char)' collect2: ld returned 1 exit status Quote Link to post Share on other sites
energia 485 Posted January 10, 2013 Share Posted January 10, 2013 That's not the right place to install it in. See instructions under "How to Install a Library" on this page http://arduino.cc/en/Guide/Libraries. In your case what you want to end up with is: Documents -> Energia -> libraries -> CapTouch Energia directory is your Sketch folder and not the Energia installation directory. If the directory libraries does not exist then create it. Also, remove all the files from your previous attempt since they might cause a conflict. Robert Quote Link to post Share on other sites
islandgeek 0 Posted January 10, 2013 Author Share Posted January 10, 2013 Thanks for your patience, it is working great now! Quote Link to post Share on other sites
energia 485 Posted January 11, 2013 Share Posted January 11, 2013 Awesome. Let us know what you end up using it for. Always interested in what projects Energia is used in. 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.