IO

Default Behavior.

In obnizOS, the IO control is reset in the following cases

  • After starting up obnizOS
  • offline
  • When the client is disconnected (when reset_obniz_on_ws_disconnection: false is not set)

Controlling IO.

Allows you to occupy IO privileges without being controlled by obnizOS, and can be intentionally released.
You can also release it intentionally.

The following functions occupy IO automatically.

  • pinMode
  • wire.begin
  • analogRead

If it is not occupied, it may not be able to be controlled by the plug-in because IO is reset at the default behavior as described above.

Occupy.

obniz.pinReserve(io)

Release.

obniz.pinFree(io)

Peripheral operations.

We do not support it because it is currently undefined.
We will try to support it in future updates.