Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README-ja.md
README.md
image.jpg
index.d.ts
index.js

README.md

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();
You can’t perform that action at this time.