From 814b4577c8077caee638c1ed07bd0dee32b44d65 Mon Sep 17 00:00:00 2001 From: Stefan Naewe Date: Sat, 15 Jul 2017 13:56:01 +0200 Subject: [PATCH] use different ports when not compiled for ATtiny Ports 5,6,10,11 are better suited for the UNO, otherwise uploading will fail (Ports 0,1 are RX, TX!) Signed-off-by: Stefan Naewe --- copter_light.ino | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/copter_light.ino b/copter_light.ino index 4927a40..e8fc456 100644 --- a/copter_light.ino +++ b/copter_light.ino @@ -1,7 +1,15 @@ + +#ifdef ARDUINO_attiny static const byte NW_pin = 3; static const byte NE_pin = 4; static const byte SE_pin = 1; static const byte SW_pin = 0; +#else +static const byte NW_pin = 5; +static const byte NE_pin = 6; +static const byte SE_pin = 10; +static const byte SW_pin = 11; +#endif void setup() { -- 2.11.4.GIT