Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P1P2Monitor: Added platformio configuration for the P1P2Monitor #125

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jarosolanic
Copy link

@jarosolanic jarosolanic commented Aug 19, 2024

Hi @Arnold-n

I have created platformio configuration for the Monitor. This allows you to use VSCode for development which is much mode comfortable.

You can display error and warnings:
image

You can define build profiles. Which means that you can setup Arduino BSP and libraries as you wish in very easy way. Such definitions allows you to define different versions of libraries for each version as the configuration is stored together with sources.
image

And probably also debug code (I have not tried it yet) - https://www.youtube.com/watch?v=T7OGXvEXY9Y

Another possible advantage is to use Copilot for code refactoring, improvements and writing of unit tests.

I have created configurations for both the Monitor and the Bridge.

Bridge build:

CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html
PLATFORM: Espressif 8266 (4.2.1) > Espressif ESP8266 ESP-12E
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:

  • framework-arduinoespressif8266 @ 3.0.2
  • tool-esptool @ 1.413.0 (4.13)
  • tool-esptoolpy @ 1.30000.201119 (3.0.0)
  • toolchain-xtensa @ 2.100300.220621 (10.3.0)
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 41 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- ESP AsyncTCP @ 2.0.1
    |-- ArduinoJson @ 6.11.5
    |-- WiFiManager @ 2.0.17
    |-- AsyncMqttClient @ 0.9.0
    |-- ESP Telnet @ 2.0.0+sha.90f9546
    |-- lwIP_w5500 @ 1
    |-- ArduinoOTA @ 1.0
    |-- DNSServer @ 1.1.1
    |-- EEPROM @ 1.0
    |-- ESP8266AVRISP @ 1.0
    |-- ESP8266HTTPClient @ 1.2
    |-- ESP8266mDNS @ 1.2
    |-- ESP8266WebServer @ 1.0
    |-- ESP8266WiFi @ 1.0
    |-- SPI @ 1.0

@jarosolanic
Copy link
Author

jarosolanic commented Aug 20, 2024

I have changed sketch extension from INO to CPP because INO files have limited support in platformio. I was not able to see list of issues (errors/warnings) detected during compilation.

@jarosolanic jarosolanic force-pushed the platformio branch 2 times, most recently from e9d3f11 to e4f672e Compare August 30, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant