Skip to content

Commit

Permalink
Pins definitions are now #defines
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauszus committed Dec 15, 2013
1 parent 21ffa77 commit bd018cb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
28 changes: 14 additions & 14 deletions avr/variants/sanguino/pins_arduino.h
Expand Up @@ -34,24 +34,24 @@

#include <avr/pgmspace.h>

const static uint8_t SS = 4;
const static uint8_t MOSI = 5;
const static uint8_t MISO = 6;
const static uint8_t SCK = 7;
#define SS 4
#define MOSI 5
#define MISO 6
#define SCK 7

static const uint8_t SDA = 17;
static const uint8_t SCL = 16;
#define SDA 17
#define SCL 16

#define LED_BUILTIN 0

static const uint8_t A0 = 31;
static const uint8_t A1 = 30;
static const uint8_t A2 = 29;
static const uint8_t A3 = 28;
static const uint8_t A4 = 27;
static const uint8_t A5 = 26;
static const uint8_t A6 = 25;
static const uint8_t A7 = 24;
#define A0 31
#define A1 30
#define A2 29
#define A3 28
#define A4 27
#define A5 26
#define A6 25
#define A7 24

// ATMEL ATMEGA644/ATMEGA1284 / SANGUINO
//
Expand Down
28 changes: 14 additions & 14 deletions variants/sanguino/pins_arduino.h
Expand Up @@ -34,24 +34,24 @@

#include <avr/pgmspace.h>

const static uint8_t SS = 4;
const static uint8_t MOSI = 5;
const static uint8_t MISO = 6;
const static uint8_t SCK = 7;
#define SS 4
#define MOSI 5
#define MISO 6
#define SCK 7

static const uint8_t SDA = 17;
static const uint8_t SCL = 16;
#define SDA 17
#define SCL 16

#define LED_BUILTIN 0

static const uint8_t A0 = 31;
static const uint8_t A1 = 30;
static const uint8_t A2 = 29;
static const uint8_t A3 = 28;
static const uint8_t A4 = 27;
static const uint8_t A5 = 26;
static const uint8_t A6 = 25;
static const uint8_t A7 = 24;
#define A0 31
#define A1 30
#define A2 29
#define A3 28
#define A4 27
#define A5 26
#define A6 25
#define A7 24

// ATMEL ATMEGA644/ATMEGA1284 / SANGUINO
//
Expand Down

0 comments on commit bd018cb

Please sign in to comment.