Jump to content

What is the process of porting library from arduino to Energia?

Recommended Posts

Normally, a library working on Arduino should work on Energia, as both are based on the Wiring framework.

This requires the library uses high-level libraries for the peripherals, like Wire for I²C, SPI for SPI, Serial for UART. Those high-level libraries act as hardware abstraction layers.

The only exception comes from MCU-specific code, like dealing with registers or features specific to a MCU. For example, the Arduino Uno uses n AVR MCU while LaunchPads run on MSP430 and ARM Cortex-M MCUs.

In such a case, developing the library from scratch is often the fastest and most secure option.

For SD card and displays, there are many libraries already available for Energia. Just perform a search on this forum.

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