Open jo-ei opened 1 month ago
build_flags = -DWireless_Stick_V3=1 -DREGION_EU868=1 -DHELTEC_WIRELESS_STICK_LITE=1
You defined the used board three times. Try this instead:
build_flags = -DREGION_EU868=1
Thanks for the tip, unfortunately the error remains 100% the same.
According to the documentation "5. Stick or Stick Lite?" I have to set the value HELTEC_WIRELESS_STICK_LITE.
I'm currently just not sure if -DREGION_EU868=1 works for the frequency selection
To my knowledge, that region definition only does something if you use the stack that Heltec included with its library. As we use RadioLib, it does nothing.
Of course, you could just comment out the duplicate definitions in the heltec_unofficial.h file. The defined values are the same as the pins_arduino.h file where the original/duplicates are found. I don't believe there is a way to use defines to avoid this conflict in .ini or environments to avoid this.
Your next conflict will be when you try including heltec_unofficial.h in multiple .cpp files.
That will require a different refactoring of this include into separate declarations and definitions.
(Burdensome with updates, but works for me.)
As for having everything in the .h file:
I gave that some thought actually, but simply could not come up with a scenario where you'd need/want to include this library twice, ever. There are advantages to doing it this way, the main one being that I can make the code behave differently based on #define
statements before the #include
. That doesn't work if the library is a separate compilation unit.
How would you then turn off compilation of the display driver, or tell loop()
to do button power-off? Modify a config.h in library dir? (harder to explain, can't contain it in examples, possibly overwritten on upgrades)
As for the definitions. I put them in there so that things still worked when playing with generic ESP32 board definitions while experimenting with my own board definitions, a direction I have since abandoned because it was a much larger can of worms than I thought. It's on my list to make things work with platformio, just have been busy with other things.
Hi, i like to use it on my Ubuntu with Visual Studio Code with platform.io.
here is my platformio.ini config
i got the following error:
Same by the other: MOSI, MISO, SCK, RST_OLED, BUSY_LoRa, .......
Can somebody help me to get this fixed?
Thanks