1.0.8 • Published 4 years ago

k8055n v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Control your K8055(N) from your node.js application running on Windows. Non-offical helper package.

Preparation in Windows and Node before installing this package

Because this package works with native DLLs and needs to compile some things on installation, your system needs to be prepared:

  1. In order for this to work, you have to have the USB hardware VELLEMAN K8055(N), bought, soldered and connected to your windows PC and USB drivers automatically/manually installed.

  2. Then, because the DLL lib in this project is 32 bit Windows DLL, you need to have installed or install now node.js 32bit version (sorry, 64 bit wont work). But cheer, even on an 64bit windows system it works if you have node.js 32bit (my test setup). And very important while node.js installs: Mark the checkbox that says 'install also node.js extra stuff that enables you to do native stuff with node.js' or how its written.

Installlation of this package and usage

These steps are somewhat standard and I show you how to use the K8055(N) in code.

  1. Do

    npm install k8055n

    in the project folder and cross fingers that the install process with native compiling and all will succeed. Takes a little while, some warnings will be shown perhaps but as long as no errors pop up you can ignore the warnings.

  2. Optional: Once its done, you can try to go into the package folder under node_moudles and e.g. 'npm start set' or 'npm start unset' to see your K8055(N) lights go on and out. K8055 or K8055N work both with this software. I mean I tried with K8055 but the DLL is for N version, so N should work better than non-'N' right.

Example usage in your code:

const k8055n = require('k8055n');
k8055n.OpenDevice(3);
k8055n.WriteAllDigital(3);
k8055n.CloseDevice();
1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago