Skip to content

Commit df9a758

Browse files
committed
Addded different comments to show the mapping of PB6 and PB7.
To use the additional pins, PB6 and PB7, on the ATmega328 we have to add some maps to the pins_arduino.h file. This allows Arduino to identify PB6 and digital pin 22, and PB7 as digital pin 23.
1 parent 0fb6c1e commit df9a758

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

firmware/hardware/Serial7Seg/variants/standard/pins_arduino.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
Boston, MA 02111-1307 USA
2121
2222
$Id: wiring.h 249 2007-02-03 16:52:51Z mellis $
23+
24+
11-4-2012: Added pin definitions for PB6 and PB7 (oscillator pins)
25+
to map to D22 and D23.
2326
*/
2427

2528
#ifndef Pins_Arduino_h
@@ -150,10 +153,8 @@ const uint8_t PROGMEM digital_pin_to_port_PGM[] = {
150153
PC,
151154
PC,
152155
PC,
153-
PC,
154-
PC,
155-
PB, /* 20 PB6 */
156-
PB, // PB7
156+
PB, //Add PB6 as D22
157+
PB, //Add PB7 as D23
157158
};
158159

159160
const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[] = {
@@ -177,10 +178,8 @@ const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[] = {
177178
_BV(3),
178179
_BV(4),
179180
_BV(5),
180-
_BV(6),
181-
_BV(7),
182-
_BV(6), // PB6
183-
_BV(7), // PB7
181+
_BV(6), //Add PB6 as D22
182+
_BV(7), //Add PB7 as D23
184183
};
185184

186185
const uint8_t PROGMEM digital_pin_to_timer_PGM[] = {
@@ -222,7 +221,8 @@ const uint8_t PROGMEM digital_pin_to_timer_PGM[] = {
222221
NOT_ON_TIMER,
223222
NOT_ON_TIMER,
224223
NOT_ON_TIMER,
225-
NOT_ON_TIMER,
224+
NOT_ON_TIMER, //Adding PB6 as D22
225+
NOT_ON_TIMER, //Adding PB7 as D23
226226
};
227227

228228
#endif

0 commit comments

Comments
 (0)