Skip to content

Update simpleio.tone to match 3.x audioio api #35

Closed
@kattni

Description

@kattni

simpleio.tone is using a previous audioio API. We need to update it to check the version number, use the 3.x+ audioio API, and if it finds 2.x, to use the previous API. See https://github.com/adafruit/Adafruit_CircuitPython_CircuitPlayground/blob/master/adafruit_circuitplayground/express.py#L622 for an example of using version numbers to utilise multiple APIs in a single funciton.

The issue is here: https://github.com/adafruit/Adafruit_CircuitPython_SimpleIO/blob/master/simpleio.py#L57

This will need to be tested by using simpleio.tone to produce a tone using a non-PWM pin.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions