pull Class リファレンス
pull API リファレンス

Usage of internal pull-up pull-down

Internal pull-up-down can be used with output/input and other peripherals. io.pull() function will enable/disable it.

// Javascript Example


List of pull-up pull-down

Available type depend on device.

Below is example of obniz Board series. See more on each device detail page.

// Javascript Example

obniz.io0.pull(null); // => no pull-up down. float
obniz.io0.pull("5v"); // => pull-up to 5v
obniz.io0.pull("3v"); // => pull-up to 3.3v
obniz.io0.pull("0v"); // => pull-down