Derive vibes from triangle

This commit is contained in:
2026-08-10 21:40:50 -04:00
parent 1f9bcef899
commit 28bca460c5
2 changed files with 10 additions and 1 deletions
+6 -1
View File
@@ -143,7 +143,12 @@ static void alarm_seconds_handler(struct tm *tick_time, TimeUnits units_changed)
snprintf(s_stopwatch_buffer, sizeof(s_stopwatch_buffer), "%02u:%02u", s_stopwatch_time[0], s_stopwatch_time[1]);
text_layer_set_text(s_counter_txt_layer, s_stopwatch_buffer);
vibes_short_pulse();
uint32_t vibe_segments[5] = {s_triangle_layer->angle_A * 2, 200, s_triangle_layer->angle_B * 2, 200, s_triangle_layer->angle_C * 2};
VibePattern pat = {
.durations = vibe_segments,
.num_segments = ARRAY_LENGTH(vibe_segments),
};
vibes_enqueue_custom_pattern(pat);
}
static void graph_layer_update_proc(Layer *layer, GContext *ctx) {