Skip to content

analogWrite is not compliant with standard Arduino API #2895

Closed
@Makuna

Description

@Makuna

The standard Arduino API analogWrite() takes a value from 0-254. The Esp Arduino version defaults to a 10 bit value. This makes code incompatible between all other Hardware and leads to confusion on the part of users.

analogWrite() should be modified to default to 8bit and the standard analogWriteResolution() should be implemented to set the resolution to 10bit (and/or what ever else it can support).

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for feedbackWaiting on additional info. If it's not received, the issue may be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions