Document

obniz Hardware and cloud specifications.

USB

Simply, Supplying power to usb accesorries.
Control USB light, etc with your obniz.

wired(obniz, {vcc, gnd})

// Javascript Example
var usb = obniz.wired("USB" , {gnd:0, vcc:3} );
usb.on();

on()

Start supplying power to usb.

// Javascript Example
var usb = obniz.wired("USB" , {gnd:0, vcc:3} );
usb.on();

off()

Stop supplying power to usb.

// Javascript Example
var usb = obniz.wired("USB" , {gnd:0, vcc:3} );
usb.on();
await obniz.wait(1000);
usb.off();