

When hosted parts library is not included officially in obniz.js, you need to import it code and register to obniz.js. [PartsRegistrate()](https://obniz.github.io/obniz/obnizjs/classes/obnizcore.obniz.html#partsregistrate) function will do registration.

Below is a example of registering MYLED class to Obniz parts library.  
After that, call wired() to use it.

```javascript
// Javascript Example

Obniz.PartsRegistrate(MYLED);
var led = obniz.wired("MYLED", { anode:0, cathode:1 } );
led.onesec();

```
