-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Closed
Labels
Component: DocumentationRelated to Arduino's documentation contentRelated to Arduino's documentation contentType: Bug
Description
In "Play melody" page there are two code examples for producing tones on a passive piezo buzzer.
However, in the 1st example the user is instructed to use a "PWM pin" of the Arduino for producing the tone, which is pretty restricting. By going through the code I see that the tone is produced in software by turning that pin HIGH and LOW at predetermined time intervals; this can be done with a "non-PWM" pin, and to my opinion, more correctly so. After all, the used pin isn't used as a PWM out.
Correct me if I'm wrong.
Metadata
Metadata
Assignees
Labels
Component: DocumentationRelated to Arduino's documentation contentRelated to Arduino's documentation contentType: Bug