Skip to content

Commit d4a13ae

Browse files
committed
add build env for LPL and JeeLib classic RF formats
1 parent 36bb01b commit d4a13ae

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

firmware/emonth2.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ const char *firmware_version = {"4.1.2\n\r"};
7979
#define RFM69_JEELIB_NATIVE 2
8080
#define RFM69_LOW_POWER_LABS 3
8181

82-
#define RadioFormat RFM69_LOW_POWER_LABS
82+
// Set in platformio.ini
83+
//#define RadioFormat RFM69_LOW_POWER_LABS
8384

8485
bool flash_led = false; // true = Flash LED after each sample (increases battery drain)
8586

firmware/platformio.ini

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[platformio]
2-
default_envs = default
2+
default_envs = lpl
33
src_dir = .
44
#lib_dir = ../libraries
55

6-
[env:default]
6+
[common]
77
platform = atmelavr
88
framework = arduino
99
board = uno
@@ -17,5 +17,26 @@ lib_deps =
1717
OneWire
1818
DallasTemperature
1919
SI7021
20-
#build_flags = '-DRFM69_LPL_AES_ENCRYPTION_KEY="my-encrypted-key"'
20+
21+
22+
# NEW Low Power Labs encrypted RF format (RFM69SPI compatiable)
23+
[env:lpl]
24+
platform = ${common.platform}
25+
framework = ${common.framework}
26+
board = ${common.board}
27+
monitor_speed = ${common.monitor_speed}
28+
lib_deps = ${common.lib_deps}
29+
build_flags =
30+
-D RadioFormat=RFM69_LOW_POWER_LABS
31+
#-D RFM69_LPL_AES_ENCRYPTION_KEY="my-encrypted-key"
32+
33+
# OLD JeeLive Classic RS format (RFM69Pi compatiable)
34+
[env:jeelib_classic]
35+
platform = ${common.platform}
36+
framework = ${common.framework}
37+
board = ${common.board}
38+
monitor_speed = ${common.monitor_speed}
39+
lib_deps = ${common.lib_deps}
40+
build_flags =
41+
-D RadioFormat=RFM69_JEELIB_CLASSIC
2142

0 commit comments

Comments
 (0)