Merged
Conversation
Makes changing environments/platforms a breeze, no more (un-)commenting: Simply use the "Switch PlatformIO Project Environment" control in VSCode.
Owner
|
Awesome! Thanks :) |
hgrosic
pushed a commit
to hgrosic/Moppy2
that referenced
this pull request
Dec 29, 2022
* Make use of PlatformIO default_envs option Makes changing environments/platforms a breeze, no more (un-)commenting: Simply use the "Switch PlatformIO Project Environment" control in VSCode. * Updated README.md to mention ESP32
samphonic
pushed a commit
that referenced
this pull request
Jul 16, 2024
* Make use of PlatformIO default_envs option Makes changing environments/platforms a breeze, no more (un-)commenting: Simply use the "Switch PlatformIO Project Environment" control in VSCode. * Updated README.md to mention ESP32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi @Sammy1Am,
I once again have a little pull request. When you mentioned yesterday that you like that the default setting is still Arduino Uno, I thought "There must be a way to do this without having to comment out lines all the time.".
PlatformIO has a

default_envsoption, which seems to be really useful for this. It's still set to use Uno environment by default, but one can now simply use the PlatformIO: Switch Project Environment command of the PlatformIO IDE for changing the build environment:There is also an extra button in the bottom toolbar for this:
