The function sets the analog state of the specified pin to the specified value between 0 to 255.
setanalogoutput()
Function Definition: setanalogoutput(servo port = 1, PWM = 50)
- Python Library: Quarky Expansion Board
- Library Import: quarkyexpansion = Expansion()
- Mode: Stage Mode, Upload Mode
Parameters
Name | Type | Description | Expected Values | Default Value |
---|---|---|---|---|
servo port | int | The servo port that needs to be controlled. | 1 to 8 | 1 |
PWM | int | The PWM output that is needed. | 0 to 255 | 50 |
Description
Example
There are no examples documented for this article.