Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Only one PWM timer?

    Scheduled Pinned Locked Moved MicroPython
    4 Posts 3 Posters 1.4k Views 4 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.
    • B Offline
      Baruch1966
      last edited by Baruch1966

      from machine import PWM
      pwm0 = PWM(0, frequency=1)
      pwm1 = PWM(1, frequency=50000)

      #two LEDs installed @ P3 and P12
      blue = pwm0.channel(0, pin='P3', duty_cycle=0.5)
      white = pwm1.channel(1, pin='P12', duty_cycle=0.5)

      Blue led blinks per second, the white led once per 4 second. Specifications state 4 timers. Tried all channels.

      1 Reply Last reply Reply Quote 0
      • D Offline
        daniel
        last edited by

        Thanks for the report. We'll look into that. Would you be able to report it here:

        https://github.com/pycom/pycom-micropython/issues

        Thanks again.

        Cheers,
        Daniel

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          Baruch1966 @daniel
          last edited by

          @daniel said in Only one PWM timer?:

          Would you be able to report it here:

          https://github.com/pycom/pycom-micropython/issues

          Nope, no Github account!

          1 Reply Last reply Reply Quote 0
          • sorenS Offline
            soren
            last edited by

            has this been fixed by now?

            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
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom