Skip to content

Waveform Generator: Prescaler out of range #213

@marcnause

Description

@marcnause

I triggered the following error:

ValueError: Prescaler out of range. This should not happen. Please report this bug, including steps to trigger it, to https://github.com/fossasia/pslab-python/issues.

Steps to reproduce:

from pslab import ScienceLab
psl = ScienceLab()
psl.pwm_generator.generate(["SQ1"], 3, 0.5)

The error occurs for frequencies smaller than 3.81472637 Hz.

Metadata

Metadata

Assignees

No one assigned

    Labels

    firmwareIssues that require changes to the PSLab's firmware

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions