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

This class supports the Grove Buzzer v1.2. More...

Inheritance diagram for GroveDevices.Grove_Buzzer:

Public Member Functions

def __init__
def setBuzz
def on
def off
- Public Member Functions inherited from PiStorms_GRX.GrovePort
def __init__

Additional Inherited Members

- Public Attributes inherited from PiStorms_GRX.GrovePort

Detailed Description

This class supports the Grove Buzzer v1.2.

The Grove Buzzer uses a piezoelectric buzzer to produce an audible tone.

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

1 import time
2 import GroveDevices
3 # initialize a Grove Buzzer connected to Bank A digital 1
4 buzzer = GroveDevices.Grove_Buzzer("BAD1")
5 buzzer.on()
6 time.sleep(1)
7 buzzer.off()

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