Jump to content
43oh

How Do I Add Libraries To Energia?


Recommended Posts

Hello,

 

I am using the MSP-EXP430G2. I am trying to import the EEPROM library. I followed Rei Vilo's instructions on importing libraries; I created a Libraries folder inside the Energia folder and added an EEPROM folder inside of that. I then placed the EEPROM.h and EEPROM.cpp files inside that library. Yet I still have errors. Any tips? This is the error that I am getting:

AppData\Local\Temp\build3798876326472216361.tmp\blinds.cpp.o]
blinds.ino:2:22: fatal error: EEPROM.h: No such file or directory
compilation terminated.
Link to post
Share on other sites
  • 1 year later...
  • 2 weeks later...

Hi @@serdarq

 

I presume you are trying to run an example that came with the library you are trying to install.  Try this....

  • change  #include <Adafruit_MAX31855.h> to  #include "Adafruit_MAX31855.h"
  • Using Sketch -> Add File... in the menu bar, add Adafruit_MAX31855.h.  It should be in the folder just above the example.
  • There is probably an Adafruit_MAX31855.cpp or other such files also.  Add them if necessary too.

 

 

 

Link to post
Share on other sites

@@Fmilburn,

 

Thank you for ur great help. Now it compiled with no error, guess just i need to adapt arduino library for my tiva lpad.

 

By the way I came accross  one of ur post (the link is below) which says energia doesnt support Tiva series for multitasking. If that still continue, then I cant set my project which is measuring the room temperatre with adafruit and send it to the nokia 5110 lcd screen ?

 

link: http://forum.43oh.com/topic/9373-energia-tm4c1294-multitasking/?p=71020

Link to post
Share on other sites

No, that is not multitasking. It is sequential, i.e. doing a series of things one after the other in the order you have described. One task after the other so to speak. Less than 1% of the examples you are likeky to encounter written in the Energia or Arduino environment will use a RTOS. You can find lots of references on this if interested. For those with a computing science background, please excuse my loose language.

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...