Skip to content

Commit

Permalink
Setup PIO Env
Browse files Browse the repository at this point in the history
.


.
  • Loading branch information
fiveangle committed Jan 2, 2022
1 parent 9f3ded1 commit 81f0a55
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#
# OpenLRSng
# PlatformIO Configuration File
#
# For detailed documentation with EXAMPLES:
Expand All @@ -20,7 +19,7 @@ src_dir = RFPowerMeter
build_dir = .pioenvs
lib_dir = .piolib
libdeps_dir = .piolibdeps
env_default = BOARD_TYPE_0
default_envs = RFPowerMeterHW1.0

[common]
lib_deps =
Expand All @@ -44,28 +43,15 @@ build_flags = -fmax-errors=5 -Wno-error=sign-compare
#################################

#
# BOARD_TYPE_0
# ATmega328 16MHz (usually running at 3.3v, which is technically outside of specification)
#
[env:BOARD_TYPE_0]
platform = atmelavr
framework = arduino
board = pro16MHzatmega328
build_flags = ${common.build_flags}
board_f_cpu = 16000000L
lib_deps = ${common.lib_deps}
src_filter = ${common.default_src_filter}

# RFPowerMeterHW1.0
# Sparkfun ProMicro (ATmega32u4 based 16MHz arduino based with built-in USB-to-serial)
# https://docs.platformio.org/en/latest/boards/atmelavr/sparkfun_promicro16.html
# Note: Sparkfun libraries build approximately 5kb larger with no observable difference

#
# BOARD_TYPE_1
# ATmega32u4 16MHz with integrated USB-to-Serial
#
[env:BOARD_TYPE_1]
[env:RFPowerMeterHW1.0]
platform = atmelavr
framework = arduino
board = leonardo
board = sparkfun_promicro16
build_flags = ${common.build_flags}
board_f_cpu = 16000000L
lib_deps = ${common.lib_deps}
src_filter = ${common.default_src_filter}
src_filter = ${common.default_src_filter}

0 comments on commit 81f0a55

Please sign in to comment.