Dynamic population of arduino code based on dropdown selections

Arduino Uno - Ethernet W5100

When selecting a Digital Motion sensor, regardless of what you choose in the dropdown boxes, the automatically generated code accommodates for Virtual Pin 1.

In the screenshot below - I selected Virtual Pin 0, and the code still used virtual pin 1.
Yes - this is easy enough to change, but why not have the code update according to your selection, or automatically select virtual pin 1 for you ??

I would say that it would be nice if the drop-down boxes were automatically populated with the most common settings for that sensor… but that is just my opinion.

Hi Scott!

Totally makes sense. We’re planning to dynamically create the sketch files based off user selection. This would include the ethernet shield that is being used, virtual pins, and even ability to combine sketch files from multiple sensors.

-B