Pinmap

The HelvePic32 uses the same bootloader as the ChipKit DP32 and for the use of the board it is best to use the DP32 as board selection for the HelvePic32. There is a HelvePic32 board definition available as well but this is under test. All works fine with the DP32 board selection, I have this on the low priority list.

The DP32 uses a pinmapping that is not convenient for the HelvePic32. I therefore define a pin array to map the DP32 pin numbers to the pins of the HelvePic32, taking into account the two sides of the HelvePic32:

const uint8_t LEFT=0;
const uint8_t RIGHT=1;
// pins of verison 1.0 using DP32 board definition
uint8_t nP[2][8] = {{0,17, 9,10,11,12,13,14},{18,17, 1, 2, 3, 6, 7, 8}};

The definition of the both side is option but makes the handling of the code more easier. The user LED is connected to the second pin on the right side and can be used via

nP[RIGHT][2]

This definition can be included in the code by using the library for the HelvePic32:

#include <HelvePic32.h>