Skip to content

Commit

Permalink
Alternate wiring support
Browse files Browse the repository at this point in the history
Alternate wiring for SparkFun Pro Micro
  • Loading branch information
MrBlinky committed Feb 3, 2018
1 parent 972fe81 commit 73a493c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ArduboyTones.h
Expand Up @@ -125,10 +125,17 @@ THE SOFTWARE.
#define TONE_PIN_DDR DDRC
#define TONE_PIN PORTC6
#define TONE_PIN_MASK _BV(TONE_PIN)
#ifndef AB_ALTERNATE_WIRING
// Arduboy speaker pin 2 = Arduino pin 13 = ATmega32u4 PC7
#define TONE_PIN2_PORT PORTC
#define TONE_PIN2_DDR DDRC
#define TONE_PIN2 PORTC7
#else
// Arduboy speaker pin 2 = Pro Micro pin 6 = ATmega32u4 PD7
#define TONE_PIN2_PORT PORTD
#define TONE_PIN2_DDR DDRD
#define TONE_PIN2 PORTD7
#endif
#define TONE_PIN2_MASK _BV(TONE_PIN2)
#else
// DevKit speaker pin 1 = Arduino pin A2 = ATmega32u4 PF5
Expand Down

0 comments on commit 73a493c

Please sign in to comment.