rename enum, rearrange watch_tcc.h

This commit is contained in:
joeycastillo
2024-09-22 14:26:49 -04:00
parent 688cf7d87e
commit e8cedeac6c
8 changed files with 61 additions and 61 deletions

View File

@@ -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;

View File

@@ -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,

View File

@@ -38,7 +38,7 @@
*/
typedef struct Note {
BuzzerNote note;
watch_buzzer_note_t note;
char * name;
} Note;