Skip to main content

controller_buzzer()

Description#

Plays a note using the controller's buzzer.

Syntax#

controller_buzzer(note, duration)

Parameters#

note: Integer frequency in Hz or a Note object.

duration: Duration of the note in milliseconds

Returns#

None

Example Code#
Python#
#Python code
from codrone_edu.drone import *
drone = Drone()
drone.pair()
drone.controller_buzzer(400, 300)
drone.controller_buzzer(600, 300)
drone.close()