Skip to main content

drone_buzzer()

Description#

Plays a note using the drone's buzzer.

Syntax#

drone_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.drone_buzzer(400, 300)
drone.drone_buzzer(600, 300)
drone.close()