Jump to content

libraries of analog devices in energia and some errors regarding linduino.h file

Recommended Posts

It looks like that this library was written on Arduino only and with some special focus on features provided there.

So to get it working in a first step you can:

add this line into UserInterface.cpp:
#include <atof.h>

This will solve your initial error. The C-Compiler in Arduino does automatically include the atof which is nice for the user but makes issues when porting.

Next you may run into an issue that the header file util/delay.h can not be found. Delay is part of Arduino and Energia so does not need to be included. To solve this just add an folder util and and empty file delay.h into the LTSketchbook\libraries\Linduino\ folder.

Now it gets complicated: this library uses some hardware driver for I2C and SPI - note sure why (did not dig deeper into the lib and hardware) but maybe they want to use a second SPI and I2C. This are hardware specific driver and you need to port them or replace them.

As template and examples you might use the existing SPI and I2C(Wire) drivers.


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.

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