Ordinateur de bord pour voiture de collection 7.1
Public Member Functions | Static Public Attributes | List of all members
buzzer Class Reference

Manage the buzzer. More...

Inheritance diagram for buzzer:

Public Member Functions

def __init__ (self, TimeON=0.5, TimeOFF=-1)
 The constructor. More...
 
def run (self)
 automatic lunch at when init the buzzer More...
 
def stop (self)
 call it to stop the buzzer More...
 

Static Public Attributes

int OutNum = 38
 GPIO pin plug on the buzzer command on the mezzanine board. More...
 

Detailed Description

Manage the buzzer.

To create and start a sound :
mybuzzer = buzzer(int1, int2) # arrĂȘter le buzzer
Definition: buzzer.py:1
with :
  • int1 (int)= Time ON in seconde
  • int2 (int, optional)= Time OFF in seconde. If int2 is not define, it will be = int1, ON time = Off time
To stop new buzzer :
mybuzzer.stop() # arrĂȘter le buzzer

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  TimeON = 0.5,
  TimeOFF = -1 
)

The constructor.

Member Function Documentation

◆ run()

def run (   self)

automatic lunch at when init the buzzer

◆ stop()

def stop (   self)

call it to stop the buzzer

Member Data Documentation

◆ OutNum

int OutNum = 38
static

GPIO pin plug on the buzzer command on the mezzanine board.

Hardware, do not change.


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