rename enum, rearrange watch_tcc.h
This commit is contained in:
@@ -42,7 +42,7 @@ typedef enum {
|
||||
static const char _dow_strings[ALARM_DAY_STATES + 1][2] ={"AL", "MO", "TU", "WE", "TH", "FR", "SA", "SO", "ED", "1t", "MF", "WN"};
|
||||
static const uint8_t _blink_idx[ALARM_SETTING_STATES] = {2, 0, 4, 6, 8, 9};
|
||||
static const uint8_t _blink_idx2[ALARM_SETTING_STATES] = {3, 1, 5, 7, 8, 9};
|
||||
static const BuzzerNote _buzzer_notes[3] = {BUZZER_NOTE_B6, BUZZER_NOTE_C8, BUZZER_NOTE_A8};
|
||||
static const watch_buzzer_note_t _buzzer_notes[3] = {BUZZER_NOTE_B6, BUZZER_NOTE_C8, BUZZER_NOTE_A8};
|
||||
static const uint8_t _buzzer_segdata[3][2] = {{0, 3}, {1, 3}, {2, 2}};
|
||||
|
||||
static int8_t _wait_ticks;
|
||||
|
||||
@@ -62,7 +62,7 @@ void breathing_face_activate(movement_settings_t *settings, void *context) {
|
||||
const int NOTE_LENGTH = 80;
|
||||
|
||||
void beep_in (void) {
|
||||
const BuzzerNote notes[] = {
|
||||
const watch_buzzer_note_t notes[] = {
|
||||
BUZZER_NOTE_C4,
|
||||
BUZZER_NOTE_D4,
|
||||
BUZZER_NOTE_E4,
|
||||
@@ -78,7 +78,7 @@ void beep_in (void) {
|
||||
}
|
||||
|
||||
void beep_in_hold (void) {
|
||||
const BuzzerNote notes[] = {
|
||||
const watch_buzzer_note_t notes[] = {
|
||||
BUZZER_NOTE_E4,
|
||||
BUZZER_NOTE_REST,
|
||||
BUZZER_NOTE_E4,
|
||||
@@ -94,7 +94,7 @@ void beep_in_hold (void) {
|
||||
}
|
||||
|
||||
void beep_out (void) {
|
||||
const BuzzerNote notes[] = {
|
||||
const watch_buzzer_note_t notes[] = {
|
||||
BUZZER_NOTE_E4,
|
||||
BUZZER_NOTE_D4,
|
||||
BUZZER_NOTE_C4,
|
||||
@@ -110,7 +110,7 @@ void beep_out (void) {
|
||||
}
|
||||
|
||||
void beep_out_hold (void) {
|
||||
const BuzzerNote notes[] = {
|
||||
const watch_buzzer_note_t notes[] = {
|
||||
BUZZER_NOTE_C4,
|
||||
BUZZER_NOTE_REST * 2,
|
||||
BUZZER_NOTE_C4,
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
*/
|
||||
|
||||
typedef struct Note {
|
||||
BuzzerNote note;
|
||||
watch_buzzer_note_t note;
|
||||
char * name;
|
||||
} Note;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user