Giter Site home page Giter Site logo

User definable starting template about arduino HOT 5 CLOSED

eried avatar eried commented on August 29, 2024
User definable starting template

from arduino.

Comments (5)

eried avatar eried commented on August 29, 2024

Any suggestion for the path? I was thinking on using a example file, like 0. Startup sketches / Default.ino ....

from arduino.

Sembazuru avatar Sembazuru commented on August 29, 2024

Well, I'm not sure if it should be just a simple .ino file that it loads from somewhere, or a full sketch folder that it loads from somewhere. (Using a full sketch folder allows loading multiple tabs as the default starting point for advanced users.) As far as locations, I can think of two valid possibilities: Either in the configured sketch folder, or in the preferences folder (i.e. where idesettings_v104.txt resides). Hiding it in the preferences folder could be taken as more annoying to update. But, really, how often would one want to change this? It should be an intentional action to update it, instead of accidental as might happen in the sketches folder.

from arduino.

eried avatar eried commented on August 29, 2024

Yes I know, I was thinking just to not break the current directory schema a lot, or just to place the template where it makes sense. Right now the template is the same of one of the arduino samples, so it makes sense to have a "live" example that can be modified. But it might be a bit confusing

from arduino.

Sembazuru avatar Sembazuru commented on August 29, 2024

I agree that having it a "live" example might be a bit confusing. That is why I was suggesting the preferences path. It's out of the way, but still an existing path that the IDE knows about. Stretching the scope of a preferences setting to include the default sketch doesn't seem to me that far of a stretch. I will, however, stand by not having it in the distribution path, for the same reasons that one shouldn't install user/3d-party libraries in the distribution path...

Almost seems to be a question of what type of support you want to provide to this. Help pointing people to the correct location for changing the default sketch in the preference folder, or helping people who break this by some how fudging up the default in the sketch folder. Choice of evils. ;-)

I wonder if the forum thread would be a good place to get multiple points of view (or if that would just muddy the already murky waters)...

from arduino.

eried avatar eried commented on August 29, 2024

I added this as a new "Example" fc526ac

If is not present, it loads the default one :)

from arduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.