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.
- Scratch Based Default Extensions
- Artificial Intelligence
- Innovative Extensions
- Machine Learning Environment
- Quarky
- Quarky Intellio I2C Communication
- Quarky Advance Sensors Extension
- Quarky Connect
- Display (Quarky)
- Quarky (Main)
- Robot (Quarky)
- Sensors (Quarky)
- Speaker (Quarky)
- Quarky Ultimate Robots
- Quarky Expansion Board
- Mars Rover
- Humanoid (Quarky)
- Quadruped (Quarky)
- IoT House (Quarky)
- Quarky Mecanum
- Quarky Robotic Arm
- Dabble
- Quarky Advance Line Following
