From 41723c6d3ebefc22d31546fd5946b6eb3c58814d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Tue, 10 May 2016 22:00:46 +0200 Subject: [PATCH] used defines instead of integers --- .../Dataelektronikk/Examples/Seven segments.ino | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/School/vg1/Dataelektronikk/Examples/Seven segments.ino b/School/vg1/Dataelektronikk/Examples/Seven segments.ino index 195a59a..3f4a733 100644 --- a/School/vg1/Dataelektronikk/Examples/Seven segments.ino +++ b/School/vg1/Dataelektronikk/Examples/Seven segments.ino @@ -1,13 +1,13 @@ // An example of how you could make a 7 segment display, display different numbers -static int A = 13; -static int B = 11; -static int C = 8; -static int D = 9; -static int E = 7; -static int F = 12; -static int G = 10; -static int DP = 6; +#define A 13 +#define B 11 +#define C 8 +#define D 9 +#define E 7 +#define F 12 +#define G 10 +#define DP 6 void setNumber(int n);