Table of Contents

setdigitaloutput()

Function Definition: setdigitaloutput(pin, state)

Parameters

NameTypeDescriptionExpected ValuesDefault Value
pinstringThe specific pin of which the value need to be set."D1", "D2", "D3", "A1", or "A2"
statestringThe state of the pin."HIGH", or "LOW"

Description

The function sets the digital state of the specified pin to HIGH or LOW / 0V or 3.3V.

Pins available:

  1. D1
  2. D2
  3. D3
  4. A1
  5. A2

Example

There are no examples documented for this article.