chipKIT® Development Platform

Inspired by Arduino™

Is there way to use Arduino functions/libraries in MPLAB

Created Sat, 21 Apr 2012 03:19:23 +0000 by dsmIA50310


dsmIA50310

Sat, 21 Apr 2012 03:19:23 +0000

Hi My searching has not turned up an answer to the needed modifications. Is there any documentation on the steps needed to use the mpide Arduino libraries or functions in a C development tool like MPLAB. Do I just need to include all the .c, .ccp, .h files from the PIC32\Libraries in the mpide folder and then I can use something like digitalWrite(X,Y) in MPLAB if I want? The Arduino files are C stuff but there has to be more to being able to use them then just include the files. Thanks


Ryan K

Thu, 26 Apr 2012 23:41:48 +0000

Hello,

You are not going to be able to use the cpp abstraction files in MPLAB. You are going to be able to call anything in the respective library "utility" folders, "*.c" files and the core that do not depend on an class since classes aren't available in C. You'll be able to recreate most of the functionality in MPIDE but I would suggest that you read up on the reference manual for the PIC32MX and learn how to use the PICs without the abstraction if you are going to be programming in MPLAB.

http://ww1.microchip.com/downloads/en/DeviceDoc/PIC32MX_Datasheet_v2_61143B.pdf

Best Regards, Ryan K Digilent