Derive vibes from triangle
This commit is contained in:
+6
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user