flamestatus()

Function Definition: flamestatus(pin = "D3")

Parameters

NameTypeDescriptionExpected ValuesDefault Value
pinstringThe pin of Quarky or the Expansion board where the relay is connected."D1", "D2", "D3", "A1", "A2", "S1", "S2""D3"

Description

The function reports the state of the Flame sensor connected to the selected pin. The function returns 1 when it is HIGH (or 3.3V) or 0 when it is LOW (or 0V).

There are lots of pins to which the sensor can be connected:

  1. Digital Pin: D1, D2 or D3
  2. Analog Pins: A1 and A2
  3. Servo Pins: S1 or S2

Example

There are no examples documented for this article.
Table of Contents