obniz Parts Library

USB

GitHub
USB
Usable Devices :
obniz_board

USB

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

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();

Supported from: obniz.js 3.5.0