LED R16

![]() | ![]() | ![]() | ![]() |
16 LED Ring Module
- Overview
- Drivers
- Samples
- Projects
LED R16
Key features • 16 LED Ring | Resources |
Function | Description |
---|---|
SetLed(l, v) | Set Led, l: led id from 1..16, v: value 0=off, 1=on |
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.
##### Driver Code Starts Here ###
fn SetLed(l, v)
if l > 16
return
end
dwrite(l,v)
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!!
_i = 1
while 1
if _i = 1
SetLed(16, 0)
else
SetLed(_i-1, 0)
end
SetLed(_i, 1)
Wait(100)
_i = (_i + 1)
if (_i>16)
_i = 1
end
wend
from DUELink.DUELinkController import DUELinkController
import time
availablePort = DUELinkController.GetConnectionPort()
duelink = DUELinkController(availablePort)
//code
Coming soon!
Ordering Info
Description | Part Number | Price |
---|---|---|
LED R16 | GDL-LLEDR16-B | $00.00 |