Goal: Use my “franks_env.ini” file to build an image using Liligo-rtl_433 and add support for a BME280 sensor. I have a lilygo LORA32 915 flashed up and receiving data from my weather station just fine. My first step was to create the franks_env.ini so I could experiment in building my custom flash. I can’t seem to get any settings from franks_env.ini to load into my flash while compiling. If I add a random line like just the word “test” I get errors, so I figure the compiler is at least seeing the file. Below is my file which I started by just copying the lilygo-rtl_433 config from the environments.ini. Most of the lines can and will be removed once I better understand what I am doing wrong.
Kinda stuck here right now so any suggestions are most welcome!
As far as that “extends” command… I am not entirely sure what that does anyway. Don’t seem to matter if I remove it. Now if I go into the environments.ini and make a basic change there, that will be written to my board… I just can’t seem to get the complier to follow the directions in franks_env.ini. I assume I will need that to add and configure BME280 support?
Removed the extends command. same result. I keep looking for the gateway name on my board display to change based off of:
but it’s not updating. That line in franks_env.ini should over right the default stored in the environments.ini correct?
Instead of trying with the default_envs or bottom build and upload options, which all require commenting or uncommenting different default_envs, can you see the PlatformIO icon on the left side - the alien head icon?
Select it and make sure that PROJECT TASKS is expanded, so that you should then see all defined environments, from the default environments.ini, and at the bottom your own defined lilygo-rtl-FG.
Can you see it, and when expanding lilygo-rtl-FG, under General, there should be the Build and Upload options just for this particular one environment.
Do take out the [default_envs = lilygo-rtl-FG]
however from your environment though. @nikito7 suggestion meant that you should add this to the top of your portable config file, not within the environment itself. I do find the PROJECT TASKS way of building and uploading specific environments a lot easier and straight forward though
Could you also format any environment you are posting with the Preformatted Text option at the top of the text input field. Just makes it a lot easier for everyone else to read through them.
By: uncommenting: ;default_envs = lilygo-rtl_433 in the platform.ini
uncommenting: //#define ZsensorBME280 “BME280” in the user_cinfig.h
updateing: int BME280_i2c_addr = 0x76; in the config_BME280.h
I can manualy compile and flash the lilygo T3 v 1.6.1 board, it connects and is sending the 2 seperate MQTT topics/data to my broker. Nice!
I restored all the settings above to default and started over making franks_env.ini a copy of the of the lilygo-rtl_433 section in the environments.ini
Still cant see to get platormio to use franks_env.ini to customize a flash.