Hello, I'm just wondering how to modify the default template sketch that comes up every time you create a new file using Arduino software.
Thanks!
Hello, I'm just wondering how to modify the default template sketch that comes up every time you create a new file using Arduino software.
Thanks!
Look in the Arduino program folder. There is a subfolder called examples and below that 01.Basics. There is a sketch in there called BareMinimum. That's the one to edit.
(Tested in IDE v1.6.5).
Thanks, I found the file. However, when I try to edit it it says that it is read only. Is this something I can overcome with administrator privileges, or is there another way around it?
I'm using Windows 8 but I use the zip file download of the IDE rather than the Windows installer. So I don't think I had to do anything about privileges.
If you have admin privileges, I don't think editing the file will cause any problems.
You cannot edit it with the Arduino IDE and save it
you should use notepad++ or so for that
Okay, thanks!
Actually, you can save it somewhere else and then rename it and replace the original sketch.
I recommend using notepad++ to edit this file. You just edit the file in notepad++ as usual and during save it offers you to switch into the admin mode this "switch to admin mode" feature works pretty well and saves the file without any additional actions