User Tools

Site Tools

한국어

logicpython:cubloc_api:freqout

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

logicpython:cubloc_api:freqout [2026/04/10 02:06] – created - external edit 127.0.0.1logicpython:cubloc_api:freqout [2026/04/10 03:01] (current) – removed mfranklin
Line 1: Line 1:
-====== FreqOut ====== 
- 
-''Output'' a square-wave frequency on the specified PWM ''channel''. 
- 
-===== Syntax ===== 
- 
-<code python> 
-from cubloc import FreqOut 
- 
-FreqOut(channel: int, freqValue: int) 
-</code> 
- 
-===== Parameters ===== 
- 
-  * **channel**: PWM ''channel'' number. This hardware supports channels 0 through 9. 
-  * **freqValue**: Frequency divider value (1 to 65535). 
- 
-===== Exceptions ===== 
- 
-  * [[https://docs.micropython.org/en/latest/library/builtins.html#TypeError|TypeError]]: An argument is not an integer. 
-  * [[https://docs.micropython.org/en/latest/library/builtins.html#ValueError|ValueError]]: ''channel'' or ''freqValue'' is out of range. 
- 
-===== Example ===== 
- 
-<code python> 
-from cubloc import FreqOut 
- 
-# Example usage 
-FreqOut(0, 1) 
-</code> 
- 
-===== Related APIs ===== 
- 
-  * [[logicpython:cubloc_api:count|Count]] 
-  * [[logicpython:cubloc_api:countreset|CountReset]] 
-  * [[logicpython:cubloc_api:pwm|Pwm]] 
-  * [[logicpython:cubloc_api:pwmoff|PwmOff]] 
-  * [[logicpython:cubloc_api:setcount|SetCount]] 
  
logicpython/cubloc_api/freqout.1775786798.txt.gz · Last modified: by 127.0.0.1