On windows, just use the following commands in an admin cmd prompt to set the environment variables:
setx COUNTRY EU865 /M
setx APP_VERSION 0.9.6 /M
setx HW_VERSION 1.0-%COUNTRY% /M
after that restart VS Code to make sure it recognises the new env variables.
You can check the env vars in a new (non admin) cmd prompt window with:
echo %COUNTRY%
echo %APP_VERSION%
echo %HW_VERSION%
Only #define HW_VERSION_EU865
did work for my, but the radio properties in the app were set to Connected to radio (tbeam unset/unset)
and blank/nothing
on the screen.
But I think the easiest way is to edit platformio.ini
:
-DHW_VERSION_EU865 //mandatory
-DAPP_VERSION=0.9.6 //just for LCD and app info
-DHW_VERSION=1.0-EU865 //just for app info