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

    How to change cpu frequency

    Scheduled Pinned Locked Moved FAQS
    3 Posts 2 Posters 9.8k Views 2 Watching
    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.
    • P Offline
      PépéMax
      last edited by

      Hi, how change cpu frequency on the M5Stack.
      I use platformio
      Thanks

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        Calin @PépéMax
        last edited by

        @pépémax 在 How to change cpu frequency 中说:

        Hi, how change cpu frequency on the M5Stack.
        I use platformio
        Thanks

        on platformio.ini use

        board_build.f_cpu = 240000000L

        to set the CPU speed to 240Mhz

        1 Reply Last reply Reply Quote 0
        • P Offline
          PépéMax
          last edited by

          @Calin
          Thanks but it's not working

          board_build.f_cpu = 200000000L
          

          but when I use the function :

          //before Setup()
          int cpuSpeed = ESP.getCpuFreqMHz();
          //In loop()
          Serial.println(cpuSpeed);
          

          In my serial monitor it display 240

          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