Exemple #1
0
void KeySwitcher::deactivate() {
    last_bank_key.clear();
    if (key_timeout.connected()) {
        key_timeout.disconnect();
        display_current();
    }
}
Exemple #2
0
void Pattern_spinner::activate(void *arg)
{
    g_x0 = 0;
    g_y0 = 0;

    g_x1 = flip_x(0);
    g_y1 = flip_y(0);

    display_current();
    m_last_move_ms = millis();
}
Exemple #3
0
bool Pattern_spinner::display()
{
    uint32_t now = millis();
    if (now <= m_last_move_ms + MOVE_MS) {
	    return false;
    }
    m_last_move_ms = now;

    move_along_box(0, true, g_x0, g_y0);
    move_along_box(0, true, g_x1, g_y1);
    display_current();

    return true;
}