Skip to content

Commit

Permalink
Fix incorrect HW SPI pins for ATmega329P/ATmega3290P.
Browse files Browse the repository at this point in the history
  • Loading branch information
CruzR committed Sep 12, 2016
1 parent f552826 commit 2d29dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csrc/u8g_com_atmega_hw_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@


/* Some AVR models assign the hardware SPI to different pins. */
#if defined(__AVR_ATmega128__)
#if defined(__AVR_ATmega128__) || defined(__AVR_ATmega329P__) || defined(__AVR_ATmega3290P__)
#define U8G_ATMEGA_HW_SPI_MOSI_PIN (_BV(2))
#define U8G_ATMEGA_HW_SPI_SCK_PIN (_BV(1))
#define U8G_ATMEGA_HW_SPI_SLAVE_SELECT_PIN (_BV(0))
Expand Down

0 comments on commit 2d29dda

Please sign in to comment.