Skip to content

Commit

Permalink
Update pin definitions in pin_defs.h according to SRA Board 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperChamp234 committed Jan 29, 2024
1 parent f3d8d11 commit 9f63a7b
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions include/pin_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,34 +57,36 @@

//////// bar graph //////////
#define BG_LED_1 12
#define BG_LED_2 33
#define BG_LED_2 13
#define BG_LED_3 25
#define BG_LED_4 26
#define BG_LED_5 27
#define BG_LED_6 14
#define BG_LED_7 13
#define BG_LED_8 23
#define BG_LED_5 15
#define BG_LED_6 5
#define BG_LED_7 18
#define BG_LED_8 19
/////////////////////////////

////////// switches //////////
#define SWITCH_1 4
#define SWITCH_2 2
#define SWITCH_3 17
#define SWITCH_4 16
#define SWITCH_3 27
#define SWITCH_4 14
/////////////////////////////

/////////// lsa /////////////
#define LSA_A0 34
#define LSA_A0 32
#define LSA_A1 35
#define LSA_A2 36
#define LSA_A2 34
#define LSA_A3 39
#define LSA_A4 32
#define LSA_A4 36
//******* battery ********//
#define BATTERY 33
/////////////////////////////

/////// motor driver ////////
//****** normal mode ******//
#define MDA_NORMAL_IN_1 12 //MCPWM_UNIT_1 MCPWM0A
#define MDA_NORMAL_IN_2 33 //MCPWM_UNIT_1 MCPWM0B
#define MDA_NORMAL_IN_2 13 //MCPWM_UNIT_1 MCPWM0B
#define MDA_NORMAL_IN_3 25 //MCPWM_UNIT_1 MCPWM1A
#define MDA_NORMAL_IN_4 26 //MCPWM_UNIT_1 MCPWM1B

Expand Down

0 comments on commit 9f63a7b

Please sign in to comment.