Skip to content

Commit 2b3bf8b

Browse files
author
JP
committed
Major changes for V11 and V12 board. See README
1 parent d774b00 commit 2b3bf8b

File tree

10 files changed

+3398
-235
lines changed

10 files changed

+3398
-235
lines changed

Ninja/Ninja.h

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,35 @@
11
#ifndef NINJA_H
22
#define NINJA_H
33

4+
// This part defines which version to use when compile
5+
// Only one define is allowed.
6+
7+
//#define V11 1
8+
#define V12 1
9+
#define VERSION_NO "038"
10+
11+
#if defined(V12) && defined(V11)
12+
#error Please select only a version by setting either V11 or V12.
13+
#endif
14+
15+
#ifdef V11
416
#define TMP102_I2C_ADDRESS 0x48
17+
#endif
518

6-
// RGB LED PIN
19+
#ifdef V11
720
#define RED_LED_PIN 7
821
#define GREEN_LED_PIN 8
922
#define BLUE_LED_PIN 9
23+
#define RX433_INT 1
24+
#endif
25+
26+
#ifdef V12
27+
#define RED_LED_PIN 10
28+
#define GREEN_LED_PIN 11
29+
#define BLUE_LED_PIN 9
30+
#define RX433_INT 0
31+
#define TX433_PIN 4
32+
#endif
1033

1134
// Analog PIN Port 1
1235
#define ADC_PIN_P1_1 A0

0 commit comments

Comments
 (0)