Use Project on different device / how to switch hardware
-
Hi!
I have a Beginner-Question:
How can I change the underlying hardware of a project?
I have created a prject for a AtomS3R and now I want to use it on a Dinmeter.
I did not find a way to "switch" the hardware or do a "save as" on different hardware.Thanks!
-
@Rusticus42 Hi,
You didn't find because there is no formal way to do that.
This is in order to protect your hardware from conflicts.
If you switch hardware and stay with the previous code, pin allocations, I2C addresses etc. will probably be wrong and will have conflicts that might cause damage.
What you can do if you feel responsible enough is to export your project to a file on your hard disk, open it in a text editor and change the "type" parameter to your new hardware type (keep the name in lower caps).

In this example it is tab5. If you change for example to Core2, replace the "tab5" by "core2", then save the file and import it from the Uiflow2 ide.
Again, you should go thoroughly over your code before running the code and fix all hardware related commands.
Do this at your own risk!