Skip to content

Commit

Permalink
PinMap Uses Enums Instead of Definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
TekuConcept committed Mar 23, 2017
1 parent e2badd0 commit 9cbbbb1
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions ArduinoController/PinMap.h
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

0 comments on commit 9cbbbb1

Please sign in to comment.