Skip to content

analogWriteSetup doesn't work inside setup #88

Open
@faustinoaq

Description

@faustinoaq

Hi @me-no-dev thank you for this project!

I have an issue with analogWriteSetup:

#define PIN 18

void setup() {
  analogWriteSetup(250, 1024); // 250Hz and 1024 steps
}

void loop() {
  analogWrite(PIN, 260); // testing 260 steps
}

PIN 18 should output around 450mV but it outputs only 20mV

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions