From 9cbbbb1c3eb2baf2c8abc6f858a32df7d0b65896 Mon Sep 17 00:00:00 2001 From: TekuConcept Date: Thu, 23 Mar 2017 23:55:03 +0000 Subject: [PATCH] PinMap Uses Enums Instead of Definitions --- ArduinoController/PinMap.h | 45 +++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/ArduinoController/PinMap.h b/ArduinoController/PinMap.h index 49ef4fa..1e6d4e4 100644 --- a/ArduinoController/PinMap.h +++ b/ArduinoController/PinMap.h @@ -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 \ No newline at end of file