I found it strange that if you set a pin high and the deploy another project that does not change the state of that pin, that pin remains high. I do not recall observing this behavior before. It could potentially lead to some unexpected behavior/results.
To replicate it on Cobra II:
- Create two empty Gadgeteer projects simultaneously.
- In one project add the following line:
3. Deploy that project and stop debugging. 4. Deploy the second empty Gadgeteer project. LED will be still on and I expect it to be either off or weakly pulled-up high. The same happens if you use for example LED on Button module or if you use bare NETMF. So, is it a bug or "an expected behavior"?