-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PinMap Uses Enums Instead of Definitions
- Loading branch information
1 parent
e2badd0
commit 9cbbbb1
Showing
1 changed file
with
22 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
#ifndef PIN_MAP_H | ||
#define PIN_MAP_H | ||
|
||
#define KILLSWITCH_PIN 50 | ||
|
||
#define LED_STAT_PIN 22 | ||
#define LED_CTRL_PIN 52 | ||
|
||
#define LIGHTS_PIN 45 | ||
|
||
#define MOVE_PIN 13 | ||
#define STRAFE_PIN 12 | ||
#define DIVE_PIN 11 | ||
|
||
#define YAW_PIN 9 | ||
#define PITCH_PIN 8 | ||
#define ROLL_PIN 7 | ||
|
||
#define ESC_S1_PIN 36 | ||
#define ESC_S2_PIN 39 | ||
#define ESC_S3_PIN 41 | ||
#define ESC_S4_PIN 47 | ||
#define ESC_S5_PIN 49 | ||
#define ESC_S6_PIN 53 | ||
|
||
#define VOLT_PIN 10 | ||
enum GPIO { | ||
KILLSWITCH_PIN = 50, | ||
LED_STAT_PIN = 22, | ||
LED_CTRL_PIN = 52, | ||
LIGHTS_PIN = 45, | ||
ESC_S1_PIN = 36, | ||
ESC_S2_PIN = 39, | ||
ESC_S3_PIN = 41, | ||
ESC_S4_PIN = 47, | ||
ESC_S5_PIN = 49, | ||
ESC_S6_PIN = 53, | ||
VOLT_PIN = 10, | ||
} | ||
|
||
enum PWM { | ||
MOVE_PIN = 13, | ||
STRAFE_PIN = 12, | ||
DIVE_PIN = 11, | ||
YAW_PIN = 9, | ||
PITCH_PIN = 8, | ||
ROLL_PIN = 7, | ||
} | ||
|
||
#endif |