Skip to content

PWM.Configure produces a nil pointer dereference #1038

@imle

Description

@imle

Device: arduino-nano33

The code in src/examples/pwm/pwm.go produces the following error:

panic: runtime error: nil pointer dereference

it looks like the PWM.getTimer method is returning nil from src/machine/machine_atsamd21.go:1196 which doesn't seem to have a matching set of Pin numbers to the src/machine/board_arduino_nano33.go:13 file.

Are these numbers supposed to match the pins described as having PWM?

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation neededenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions