🤖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

    FAQS
    2
    3
    8.5k
    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
      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
        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
          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
          • First post
            Last post