From f62f6ad71a45cad2fddda53d49d31ea0aa233a0c Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 2 Jun 2016 00:14:25 -0500 Subject: [PATCH] Got my port directions all bass-ackwards for some stupid reason --- avr/send.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/avr/send.c b/avr/send.c index d89e224..86311cc 100644 --- a/avr/send.c +++ b/avr/send.c @@ -37,14 +37,14 @@ static volatile uint16_t i = 0, static void spi_start() { /* - * Configure MISO as output + * Configure MISO as input */ - DDRB |= (1 << DDB4); + DDRB &= ~(1 << DDB4); /* - * Configure MOSI as input + * Configure MOSI as output */ - DDRB &= ~(1 << DDB3); + DDRB |= (1 << DDB3); /* * Configure SCK pin as output