Sign in to follow this  
Followers 0
hemangjoshi37a

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

2 posts in this topic

Please guide me how to port a library for energia or create one myself. I want to create library for SD card and Adafruit GFX. I will share it  on Github and in this forum afterwards.

Thank you.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0