Delcom Products
Search the Delcom Website Search the Delcom Website Search the Delcom Website Search the Delcom Website
Home ->Products ->Product Details
 Products Details  
Item#: 890611
Name: Delcom Node js example
LeadTime: InStock

Click on Image for larger view
 Description:
Delcom Node JS - A simple NodeJS example using the node-hid package to read and write the Delcom USB Device. Works with all Delcom HID device (Generations 2,3+). Tested on Ubuntu and Raspberry Pi
Verion 1.0

Download Delcom.js

// Sample test code
delcom = require("./Delcom.js");
console.log("Starting.....");
delcom.GetInfo(1);
delcom.LedCtrl(delcom.GreenLED, delcom.ModeOff);
delcom.LedCtrl(delcom.RedLED, delcom.ModeOff);
delcom.LedCtrl(delcom.YellowLED, delcom.ModeOff);

delcom.LedCtrl(delcom.YellowLED, delcom.ModeFlash);

//delcom.WrPorts(0, 0);

var ports = delcom.RdPorts();
console.log("P0="+ports[0], " P1="+ports[1], " P2="+ports[2]);
console.log("All done.....");


Works with all G2 and newer products.

Note(4) Linux Kernel Issue in v4.8+
DATASHEET
USB HID G2 Datasheet USB HID G2 Datasheet. Datasheet for all the Delcom USB HID products.
WEBPAGE
900000 Delcom GEN2 USB HID Examples and Documentation
Delcom Products Inc. | Copyright 2002-2025 | All Rights Reserved. | Terms & Conditions
sales@delcomproducts.com +1 914.934.5170
45 Backus Ave, Danbury CT 06810 USA