Table of Contents

readdigitalinput()

Function Definition: readdigitalinput(pin)

Parameters

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

Description

The function reads the digital value of the sensors connected to the specified pin. The function returns True or False.

Pins available:

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

Example

There are no examples documented for this article.