Skip to content

Tiny snake game speaker.freq(0) causing ValueError #11

@PaulskPt

Description

@PaulskPt

Today soldered my new TinyPICO. Flashed MicroPython v1.18 of 2022-01-17.
I tried the tiny-snake example.
In all lines containing the command speaker.freq(0) the error: ValueError: frequency must be from 1Hz to 40MHz occurred.
Changing all the occurrances into speaker.freq(1) solved it.
See functions: play_boot_music(), play_death() and play_sound()

Metadata

Metadata

Assignees

No one assigned

    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