Each time this function is called, a thread will be created and a melody will be played. The thread will be closed
after playback is complete.
#ifndef _BUZZER_h
#define _BUZZER_h
#include "NoteFrequency.h"
#include "Arduino.h"
#define MELODY_POWER_UP 0
#define MELODY_LOW_POWER 1
#define MELODY_NO_POWER 2
#define MELODY_WIFI_CONNECT_SUCCESS 3
#define MELODY_WIFI_CONNECT_FAILED 4
#define MELODY_WIFI_DISCONNECT 5
#define MELODY_BLE_CONNECT_SUCCESS 6
#define MELODY_BLE_DISCONNECT 7
#define MELODY_CAM_CONNECT_SUCCESS 8
#define MELODY_CAM_DISCONNECT 9
#define MELODY_CAM_FAILURE 10
#define MELODY_BEEP_1 11
#define MELODY_BEEP_2 12