Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Unable to use PWM1A and PWM1B at the same time #101

@raunaqbhirangi

Description

@raunaqbhirangi

I'm trying to use both PWM1A and PWM1B. I am not changing the frequency.
I just use

analogWrite(PWM1A,200,RES_8BIT)
analogWrite(PWM1B,200,RES_8BIT)

I am able to digitalWrite to both pins when I use them as GPIO1_18 and GPIO1_19. But the analogWrite doesn't work for one of them.
When I run my code for the first time on startup, whichever pin, 1A or 1B is used with analogWrite first, works with PWM for that session and the other one simply won't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions