Servo X1

![]() | ![]() | ![]() | ![]() |
Single Servo Motor Module
- Overview
- Drivers
- Samples
- Projects
Single Servo Motor Module
Key features • Built-in single positional servo | Resources |
Function | Description |
---|---|
GetPin() | Return pin connect to servo. |
DVer() | This driver version. |
The Code!
Modules ship with this script preloaded. Use Console to reload or modify the drivers. Additionally, some languages, such as Python, include DUELink.Engine.Record()
for recording scripts directly from the host.
tip
Servo X1 module uses Servo Motors API directly. No other drivers needed.
##### Driver Code Starts Here ###
fn GetPin()
return 1
fend
fn DVer()
return 0.1
fend
##### User Code Starts Here #####
- Script
- Python
- JavaScript
Use Console to modify the default driver by adding this sample.
# Append this code at the bottom of the script, right after the driver.
# You MUST keep the driver code!!
dim b1[8] = [0, 45, 90, 135, 180, 135, 90, 45] # degree
_i = 0
while 1
servost(GetPin(), b1[_i])
_i = (_i + 1) % 8
Wait(1000)
wend
from DUELink.DUELinkController import DUELinkController
import time
availablePort = DUELinkController.GetConnectionPort()
duelink = DUELinkController(availablePort)
//code
Coming soon!
Ordering Info
Description | Part Number | Price |
---|---|---|
Servo X1 | GDL-ACSERVOX1-A | $00.00 |