/* Star button long press callback. */ static void star_long_pressed() { /* Save the current time in edit_buffer */ rtca_get_alarm(&tmp_hh, &tmp_mm); menu_editmode_start(&edit_save, edit_items); }
void edit_mode_callback(void) { lcd_screen_activate(0); sys_messagebus_unregister(&update); sys_messagebus_unregister(&time_callback); display_symbol(0, LCD_SEG_L2_COL0, SEG_OFF); menu_editmode_start(&edit_save, edit_items); }
/* Star button long press callback. */ static void star_long_pressed() { /* stop the hardware RTC */ //rtca_stop(); #ifdef CONFIG_MOD_CLOCK_BLINKCOL /* the blinking dots feature might hide the two dots, we display them here just in case */ display_symbol(0, LCD_SEG_L1_COL, SEG_ON); #endif menu_editmode_start(&edit_save, edit_items); }
//* ************************************************************************************************ /// @fn mod_temperature_init(void) /// @brief Init the module. Sets default values, register menu entry. /// @return none //* ************************************************************************************************ static void temperature_edit(void) { // display_temp_symbols(0); // Switch to the edit screen (1) lcd_screen_activate(1); // Enable blinking for the offset value display_chars(1, LCD_SEG_L1_3_0, NULL, BLINK_ON); // We go into edit mode menu_editmode_start(&edit_save, edit_items); }
/* MARK: - Buttons */ void longStarButton(void) { /* clear screen */ display_clear(0, 0); lcd_screen_activate(0); uint16_t nowInMinutes = timeNowInMinutes(); uint16_t leftUntilLow = timeInMinutes(tide); enteredTimeOfNextLow = timeFromMinutes((nowInMinutes + leftUntilLow) % twentyFourHoursInMinutes); editModeActivated = 1; _printf(0, LCD_SEG_L1_3_2, "%02u", enteredTimeOfNextLow.hoursLeft); _printf(0, LCD_SEG_L1_1_0, "%02u", enteredTimeOfNextLow.minutesLeft); blinkCol(0, 1); menu_editmode_start(&endEditing, editModeItems); }
static void temperature_edit(void) { /* We go into edit mode */ menu_editmode_start(&edit_save, edit_items); }
static void star_long_pressed() { tmp_date = g_dday; display_edit(); menu_editmode_start(&edit_save, edit_items); }
static void intertechno_star_long_pressed() { menu_editmode_start(&intertechno_save, intertechno_items); }