hemangjoshi37a 0 Posted July 7, 2017 Share Posted July 7, 2017 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. Quote Link to post Share on other sites
Rei Vilo 695 Posted July 8, 2017 Share Posted July 8, 2017 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. 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.