Hey,
Sorry if this has been discussed before, but I didn't find anything regarding it. Is it possible to override one or more of the so-called "core" files (under hardware\teensy\avr\cores\teensy3 for example), specific to one project... or is this a feature that could be added/would be wanted?. I understand that Arduino is supposed to be easy for novices, so a lot of that stuff gets hidden for simple projects... but I find that I'm modifying several of those files for every project, which to me feels really messy (modifying my "stock" core files), and seems cumbersome when sharing projects with others (especially if they've already modified those files too).
I'm used to IDEs where I add files that I want to use specifically for a project, vs. using only a standard set... I get that the Arduino IDE doesn't really do that, but what I'm thinking of is a way to build a tree local to the project, which would be compiled as if it were in the Arduino directory (either an additional file if it doesn't already exist, or in place of an existing file if it does exist). So, if I had a directory in the folder with my sketch called hardware\teensy\avr\cores\teensy3 with two files usb_joystick.c and usb_gamepad.c ... usb_joystick.c would be compiled instead of the one under the Arduino directory, and usb_gamepad.c would be compiled as if it were in that directory as well (even though one doesn't already exist). But, if I closed that sketch and opened up the simple joystick demo, it'd work as it did originally, as the original files are still intact.
Any thoughts? Am I doing something wrong by always having to change those files? Am I the only one that would find this useful? Can it already be done?
Thanks,
Pat
Sorry if this has been discussed before, but I didn't find anything regarding it. Is it possible to override one or more of the so-called "core" files (under hardware\teensy\avr\cores\teensy3 for example), specific to one project... or is this a feature that could be added/would be wanted?. I understand that Arduino is supposed to be easy for novices, so a lot of that stuff gets hidden for simple projects... but I find that I'm modifying several of those files for every project, which to me feels really messy (modifying my "stock" core files), and seems cumbersome when sharing projects with others (especially if they've already modified those files too).
I'm used to IDEs where I add files that I want to use specifically for a project, vs. using only a standard set... I get that the Arduino IDE doesn't really do that, but what I'm thinking of is a way to build a tree local to the project, which would be compiled as if it were in the Arduino directory (either an additional file if it doesn't already exist, or in place of an existing file if it does exist). So, if I had a directory in the folder with my sketch called hardware\teensy\avr\cores\teensy3 with two files usb_joystick.c and usb_gamepad.c ... usb_joystick.c would be compiled instead of the one under the Arduino directory, and usb_gamepad.c would be compiled as if it were in that directory as well (even though one doesn't already exist). But, if I closed that sketch and opened up the simple joystick demo, it'd work as it did originally, as the original files are still intact.
Any thoughts? Am I doing something wrong by always having to change those files? Am I the only one that would find this useful? Can it already be done?
Thanks,
Pat