🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Use Project on different device / how to switch hardware

    Scheduled Pinned Locked Moved UiFlow 2.0
    2 Posts 2 Posters 635 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      Rusticus42
      last edited by

      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!

      B 1 Reply Last reply Reply Quote 0
      • B Offline
        BR123456 @Rusticus42
        last edited by

        @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).
        b35f2ded-e0e7-46b2-823c-21ce8b9a34c9-image.png

        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!

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post