void c42364a_clear_all(void) { lcdca_blink_disable(); lcdca_circular_shift_disable(); lcdca_automated_char_stop(); lcdca_clear_display_memory(); }
void c42412a_show_all(void) { lcdca_blink_disable(); lcdca_circular_shift_disable(); lcdca_automated_char_stop(); lcdca_set_display_memory(); }
/** * \brief Test LCDCA autonomous feature. * * \param test Current test case. */ static void run_lcdca_autonomous_test(const struct test_case *test) { #define LCDCA_AUTONOMOUS_CHECK_MASK (LCDCA_SR_CSRS) uint32_t status; struct lcdca_circular_shift_config cs_cfg; /* Autonomous segment animation of 7-pixels area of the LCD */ cs_cfg.lcd_csr_timer = LCDCA_TIMER_FC2; cs_cfg.lcd_csr_dir = LCDCA_CSR_RIGHT; cs_cfg.size = 7; /* Total 7-pixels */ cs_cfg.data = 0x03; /* Display 2 pixel at one time */ lcdca_circular_shift_set_config(&cs_cfg); lcdca_circular_shift_enable(); delay_ms(500); /* Check status */ status = lcdca_get_status(); test_assert_true(test, (status & LCDCA_AUTONOMOUS_CHECK_MASK) == LCDCA_AUTONOMOUS_CHECK_MASK, "LCDCA autonomous test failed."); lcdca_circular_shift_disable(); }
void c42364a_circular_animation_stop(void) { lcdca_circular_shift_disable(); }