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

This class supports the Grove Sound Sensor v1.6. More...

Inheritance diagram for GroveDevices.Grove_Sound_Sensor:
PiStorms_GRX.GrovePort

Public Member Functions

def __init__
 
def soundIntensity
 
- 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 Sound Sensor v1.6.

This sensor uses a basic microphone to detect sound intensity.

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

1 import GroveDevices
2 # initialize a sound sensor connected to Bank A analog 1
4 if (s.soundIntensity() < 3200):
5  print("I heard a clap!")

Member Function Documentation

def GroveDevices.Grove_Sound_Sensor.soundIntensity (   self)
Returns
A number corresponding with the current detected sound intensity.

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