PiStorms  4.015
PiStorms Library Reference by mindsensors.com
 All Classes Namespaces Files Functions Variables
GroveDevices.Grove_Flame_Sensor Class Reference

This class supports the Grove Flame Sensor v1.1. More...

Inheritance diagram for GroveDevices.Grove_Flame_Sensor:
PiStorms_GRX.GrovePort

Public Member Functions

def __init__
 
def fireDetected
 @ return True if infrared light is found in a line straight in front of the sensor (looks like a black LED), False otherwise
 
- Public Member Functions inherited from PiStorms_GRX.GrovePort
def __init__
 

Additional Inherited Members

- Public Attributes inherited from PiStorms_GRX.GrovePort
 comm
 
 readValue
 
 writeValue
 

Detailed Description

This class supports the Grove Flame Sensor v1.1.

This sensor can detect fire in front of it and is essential in a fire-fighting robot game. It can also detect "other light sources of the wavelength in the range of 760nm - 1100 nm."

Documentation: http://wiki.seeed.cc/Grove-Flame_Sensor/

1 import GroveDevices
2 # initialize a flame sensor connected to Bank A digital 1
4 if (f.fireDetected()):
5  print("Fire! Fire!!")

The documentation for this class was generated from the following file: