MRAS
Multi Rocket Avionics System
Loading...
Searching...
No Matches
BuzzerInterface.h
1//
2// Created by Tom Danvers on 11/03/2023.
3//
4
5#ifndef MRAS_BUZZERINTERFACE_H
6#define MRAS_BUZZERINTERFACE_H
7
8#include "Subsystem.h"
9
10class BuzzerInterface : public Subsystem {
11public:
13
14 SUBSYSTEM_NAME("BuzzerInterface")
15
16 SUBSYSTEM_NO_MESSAGE_HANDLER
17
18 virtual void _buzzer(uint16_t frequency, uint32_t duration, bool block) = 0;
19};
20
21#define NOTE_B0 31
22#define NOTE_C1 33
23#define NOTE_CS1 35
24#define NOTE_D1 37
25#define NOTE_DS1 39
26#define NOTE_E1 41
27#define NOTE_F1 44
28#define NOTE_FS1 46
29#define NOTE_G1 49
30#define NOTE_GS1 52
31#define NOTE_A1 55
32#define NOTE_AS1 58
33#define NOTE_B1 62
34#define NOTE_C2 65
35#define NOTE_CS2 69
36#define NOTE_D2 73
37#define NOTE_DS2 78
38#define NOTE_E2 82
39#define NOTE_F2 87
40#define NOTE_FS2 93
41#define NOTE_G2 98
42#define NOTE_GS2 104
43#define NOTE_A2 110
44#define NOTE_AS2 117
45#define NOTE_B2 123
46#define NOTE_C3 131
47#define NOTE_CS3 139
48#define NOTE_D3 147
49#define NOTE_DS3 156
50#define NOTE_E3 165
51#define NOTE_F3 175
52#define NOTE_FS3 185
53#define NOTE_G3 196
54#define NOTE_GS3 208
55#define NOTE_A3 220
56#define NOTE_AS3 233
57#define NOTE_B3 247
58#define NOTE_C4 262
59#define NOTE_CS4 277
60#define NOTE_D4 294
61#define NOTE_DS4 311
62#define NOTE_E4 330
63#define NOTE_F4 349
64#define NOTE_FS4 370
65#define NOTE_G4 392
66#define NOTE_GS4 415
67#define NOTE_A4 440
68#define NOTE_AS4 466
69#define NOTE_B4 494
70#define NOTE_C5 523
71#define NOTE_CS5 554
72#define NOTE_D5 587
73#define NOTE_DS5 622
74#define NOTE_E5 659
75#define NOTE_F5 698
76#define NOTE_FS5 740
77#define NOTE_G5 784
78#define NOTE_GS5 831
79#define NOTE_A5 880
80#define NOTE_AS5 932
81#define NOTE_B5 988
82#define NOTE_C6 1047
83#define NOTE_CS6 1109
84#define NOTE_D6 1175
85#define NOTE_DS6 1245
86#define NOTE_E6 1319
87#define NOTE_F6 1397
88#define NOTE_FS6 1480
89#define NOTE_G6 1568
90#define NOTE_GS6 1661
91#define NOTE_A6 1760
92#define NOTE_AS6 1865
93#define NOTE_B6 1976
94#define NOTE_C7 2093
95#define NOTE_CS7 2217
96#define NOTE_D7 2349
97#define NOTE_DS7 2489
98#define NOTE_E7 2637
99#define NOTE_F7 2794
100#define NOTE_FS7 2960
101#define NOTE_G7 3136
102#define NOTE_GS7 3322
103#define NOTE_A7 3520
104#define NOTE_AS7 3729
105#define NOTE_B7 3951
106#define NOTE_C8 4186
107#define NOTE_CS8 4435
108#define NOTE_D8 4699
109#define NOTE_DS8 4978
110
111#endif //MRAS_BUZZERINTERFACE_H
Definition: BuzzerInterface.h:10
Definition: Subsystem.h:30
Subsystem(uint8_t id)
Definition: Subsystem.h:86