User Tools

Site Tools

한국어

logicpython:cubloc_api:pwm

Differences

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

Link to this comparison view

Next revision
Previous revision
logicpython:cubloc_api:pwm [2026/04/10 02:06] – created - external edit 127.0.0.1logicpython:cubloc_api:pwm [2026/05/15 05:31] (current) – [Parameters] mfranklin
Line 8: Line 8:
 from cubloc import Pwm from cubloc import Pwm
  
-Pwm(channel: int, duty: int, period: int)+PWM(pin: int, duty: int, period: int)
 </code> </code>
  
 ===== Parameters ===== ===== Parameters =====
  
-  * **channel**: PWM ''channel'' number. This hardware supports channels 0 through 9+  * **pin**: GPIO pin number. 
-  * **duty**: ''Duty'' count, where 0 <= ''duty'' < ''period''.+  * **duty**: ''duty'' count, where 0 <html>&lt;=</html> ''duty'' < ''period''.
   * **period**: PWM ''period'' count (1 to 65535).   * **period**: PWM ''period'' count (1 to 65535).
  
Line 25: Line 25:
  
 <code python> <code python>
-from cubloc import Pwm+from cubloc import PWM
  
 # Example usage # Example usage
-Pwm(0, 1, 1)+PWM(0, 1, 1)
 </code> </code>
  
 ===== Related APIs ===== ===== Related APIs =====
  
-  * [[logicpython:cubloc_api:count|Count]] +  * [[logicpython:cubloc_api:pwmoff|PWMOff]]
-  * [[logicpython:cubloc_api:countreset|CountReset]] +
-  * [[logicpython:cubloc_api:freqout|FreqOut]] +
-  * [[logicpython:cubloc_api:pwmoff|PwmOff]] +
-  * [[logicpython:cubloc_api:setcount|SetCount]]+
  
logicpython/cubloc_api/pwm.1775786799.txt.gz · Last modified: by 127.0.0.1