Skip to content

Commit

Permalink
modified pin mapping HW design change, Analog and PWM needs to be tes…
Browse files Browse the repository at this point in the history
…ted!
  • Loading branch information
Xplorer001 committed Sep 24, 2016
1 parent 1143154 commit e123d3b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions ExploreM3/cores/ExploreM3/board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ const uint8_t PIN_MAP[BOARD_MAX_GPIO_PINS] = {
P2_0 , /* 29 PWM_1 */
P2_12, /* 30 */
P2_13, /* 31 */
P0_23, /* A0 */
P0_24, /* A1 */
P0_25, /* A2 */
P0_26, /* A3 */
P1_30, /* A4 */
P1_31, /* A5 */
P1_9, /* 32 */
P1_31, /* 33 *//* A4 */
P0_26, /* 34 *//* A3 */
P0_25, /* 35 *//* A2 */
P0_24, /* 36 *//* A1 */
P0_23, /* 37 *//* A0 */
P1_0 , /* RGB_RED */
P1_1 , /* RGB_GREEN */
P1_4 /* RGB_BLUE */
Expand Down
14 changes: 7 additions & 7 deletions ExploreM3/cores/ExploreM3/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ extern const uint8_t PIN_MAP[BOARD_MAX_GPIO_PINS];
/************************************
ADC pins
************************************/
static unsigned const int A0 = 32;
static unsigned const int A1 = 33;
static unsigned const int A2 = 34;
static unsigned const int A3 = 35;
static unsigned const int A4 = 36;
static unsigned const int A5 = 37;
static unsigned const int A0 = 37;
static unsigned const int A1 = 36;
static unsigned const int A2 = 35;
static unsigned const int A3 = 34;
static unsigned const int A4 = 33;
//static unsigned const int A5 = 37;

#define ANALOG_ZERO A0
#define ANALOG_MAX A5
#define ANALOG_MAX A4
/**********End of ADC pins********/


Expand Down

0 comments on commit e123d3b

Please sign in to comment.