From 1ca54ac8fd29a1d1e879c950846e4b141b9ac61d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Mon, 6 Jun 2016 16:03:49 +0200 Subject: [PATCH] group TRIG and ECHO in the configuration part of the C file --- main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 6ee97fd..7b3c968 100644 --- a/main.c +++ b/main.c @@ -14,14 +14,17 @@ // --- Pin assignments --- +// RGB data #define WS_PIN 7 +// Sonars #define TRIG1_PIN 3 -#define TRIG2_PIN 9 -#define TRIG3_PIN 11 - #define ECHO1_PIN 2 + +#define TRIG2_PIN 9 #define ECHO2_PIN 8 + +#define TRIG3_PIN 11 #define ECHO3_PIN 10