PartsLibrary

PartsLibrary is obniz.js included electrical parts software components. By using it, You can use sensors and motors without learning electrical parts. Just use prepared functions and vars.

You can find parts in library

Parts Library

How to use

Use wired() to instantiate a parts class. For example, LED is below.

// Javascript Example

var led = obniz.wired("LED", {anode:0, cathode:1});
led.on();

Code in library

Every parts code are on Github. You can see TypeScript / JavaScript code.

Below is LED example.

Articles