Hello,
You can refer to the following example to control the LED.
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))
from uarm.wrapper import SwiftAPI
"""
pressure test: set mode
"""
swift = SwiftAPI(filters={'hwid': 'USB VID:PID=2341:0042'}, cmd_pend_size=2)
swift.waiting_ready()
print(swift.get_device_info())
mode = swift.get_mode()
print('mode:', mode)
swift.set_digital_direction(pin=35,value=1)
swift.set_digital_output(pin=35,value=1)