Skip to content

tone(pin, freq, duration) #19

Closed
Closed
@microwattbott

Description

@microwattbott

While testing an early beta version of piezo_music.py,
I struggled to understand that freq had to be an integer.
The program's float value is not going to make the tone() function work.
@tannewt suggested that we try to "fix tone to either handle it or produce a friendly error message."

RE: \Metro Experimenter Guide\METROX-Examples-and-Project-Sketches-master\circuitpython\CIRC06\piezo_music.py

Metadata

Metadata

Assignees

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