Skip to content

Commit

Permalink
add build env for LPL and JeeLib classic RF formats
Browse files Browse the repository at this point in the history
  • Loading branch information
glynhudson committed Jun 1, 2023
1 parent 36bb01b commit d4a13ae
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
3 changes: 2 additions & 1 deletion firmware/emonth2.ino
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ const char *firmware_version = {"4.1.2\n\r"};
#define RFM69_JEELIB_NATIVE 2
#define RFM69_LOW_POWER_LABS 3

#define RadioFormat RFM69_LOW_POWER_LABS
// Set in platformio.ini
//#define RadioFormat RFM69_LOW_POWER_LABS

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

Expand Down
27 changes: 24 additions & 3 deletions firmware/platformio.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[platformio]
default_envs = default
default_envs = lpl
src_dir = .
#lib_dir = ../libraries

[env:default]
[common]
platform = atmelavr
framework = arduino
board = uno
Expand All @@ -17,5 +17,26 @@ lib_deps =
OneWire
DallasTemperature
SI7021
#build_flags = '-DRFM69_LPL_AES_ENCRYPTION_KEY="my-encrypted-key"'


# NEW Low Power Labs encrypted RF format (RFM69SPI compatiable)
[env:lpl]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
monitor_speed = ${common.monitor_speed}
lib_deps = ${common.lib_deps}
build_flags =
-D RadioFormat=RFM69_LOW_POWER_LABS
#-D RFM69_LPL_AES_ENCRYPTION_KEY="my-encrypted-key"

# OLD JeeLive Classic RS format (RFM69Pi compatiable)
[env:jeelib_classic]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
monitor_speed = ${common.monitor_speed}
lib_deps = ${common.lib_deps}
build_flags =
-D RadioFormat=RFM69_JEELIB_CLASSIC

0 comments on commit d4a13ae

Please sign in to comment.