User Tools

Site Tools

한국어

logicpython:cubloc_api:freqout

This is an old revision of the document!


FreqOut

Output a square-wave frequency on the specified PWM channel.

Syntax

from cubloc import FreqOut
 
FreqOut(channel: int, freqValue: int)

Parameters

  • channel: PWM channel number. This hardware supports channels 0 through 9.
  • freqValue: Frequency divider value (1 to 65535).

Exceptions

Example

from cubloc import FreqOut
 
# Example usage
FreqOut(0, 1)
logicpython/cubloc_api/freqout.1775786798.txt.gz · Last modified: by 127.0.0.1