Skip to content

Commit 88c9b9b

Browse files
committed
Revert "Pins definitions are now #defines"
This reverts commit c926f82.
1 parent 2ab09be commit 88c9b9b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Firmware/hardware/Balanduino/avr/variants/standard/pins_arduino.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,22 @@
3333

3434
#include <avr/pgmspace.h>
3535

36-
#define SS 6
37-
#define MOSI 27
38-
#define MISO 28
39-
#define SCK 29
36+
const static uint8_t SS = 6;
37+
const static uint8_t MOSI = 27;
38+
const static uint8_t MISO = 28;
39+
const static uint8_t SCK = 29;
4040

4141
#define LED_BUILTIN 6
4242

43-
#define A0 7
44-
#define A1 8
45-
#define A2 9
46-
#define A3 10
47-
#define A4 11
48-
#define VBAT 12 // Not broken out - used for battery voltage measurement
43+
static const uint8_t A0 = 7;
44+
static const uint8_t A1 = 8;
45+
static const uint8_t A2 = 9;
46+
static const uint8_t A3 = 10;
47+
static const uint8_t A4 = 11;
48+
static const uint8_t VBAT = 12; // Not broken out - used for battery voltage measurement
4949

50-
#define SDA 13
51-
#define SCL 14
50+
static const uint8_t SDA = 13;
51+
static const uint8_t SCL = 14;
5252

5353
// ATMEL ATMEGA1284P / Balanduino
5454
//

0 commit comments

Comments
 (0)