this patch prepares the code base to support three board variants.
Heltec WiFi Kit 32
Heltec WiFi LoRa 32
Heltec WiFi LoRa 32 (V2)
It also removes the HARDWARE_LEVEL preprocessor definition and replaces the respective configuration for HARDWARE_LEVEL == 1 by a constant HARDWARE_LAYOUT_LEGACY.
This will make bringing in the improvements from #15 by @SBajonczak easier as we will not have to introduce either HARDWARE_LEVEL == 3 or invent any other custom #define constants for mapping different boards.
With kind regards,
Andreas.
P.S.: This patch is based on #20, so this PR should be integrated first in order to reduce diff noise.
Hi @ClemensGruber, @andreash-esp and @SBajonczak,
this patch prepares the code base to support three board variants.
It also removes the
HARDWARE_LEVEL
preprocessor definition and replaces the respective configuration forHARDWARE_LEVEL == 1
by a constantHARDWARE_LAYOUT_LEGACY
.This will make bringing in the improvements from #15 by @SBajonczak easier as we will not have to introduce either
HARDWARE_LEVEL == 3
or invent any other custom#define
constants for mapping different boards.With kind regards, Andreas.
P.S.: This patch is based on #20, so this PR should be integrated first in order to reduce diff noise.