From f3a56d229e2c3d333d53b9e31d5ca49afc3a11fe Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 24 Oct 2019 07:32:22 +0200 Subject: Pull in some Arduino code so that libraries are easier to use --- sw/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw/main.cpp') diff --git a/sw/main.cpp b/sw/main.cpp index 712adc0..e849dea 100644 --- a/sw/main.cpp +++ b/sw/main.cpp @@ -33,6 +33,8 @@ #include #include +#include "SPI.h" + extern "C" { #include "uart.h" } @@ -210,6 +212,8 @@ int main() DDRC = PINC_OUTPUTS; DDRD = PIND_OUTPUTS; + SPI.begin(); + // Warning: Bi-stable relays are still in unknown state! /* Setup UART */ -- cgit v1.2.3