// initialize void render_init(void) { // scrolling boot region region_alloc((region*)(&bootScrollRegion)); scroll_init(&bootScroll, &bootScrollRegion); print_dbg("\r\n init rendering regions.. "); // screen regions allocated here region_alloc((region*)(&headRegion_pr)); region_alloc((region*)(&(footRegion_pr[0]))); region_alloc((region*)(&(footRegion_pr[1]))); region_alloc((region*)(&(footRegion_pr[2]))); region_alloc((region*)(&(footRegion_pr[3]))); // region_alloc((region*)(&selectRegion_pr)); region_alloc((region*)(&lineRegion_pr)); headRegion = &headRegion_pr; footRegion[0] = &(footRegion_pr[0]); footRegion[1] = &(footRegion_pr[1]); footRegion[2] = &(footRegion_pr[2]); footRegion[3] = &(footRegion_pr[3]); // selectRegion = &selectRegion_pr; lineRegion = &lineRegion_pr; }
/* LCD init */ void lcd_init(void) { lcd_clear_display(); /* Call device specific init */ lcd_init_device(); scroll_init(); }
/* LCD init */ void lcd_init (void) { lcd_init_device(); lcd_charset_init(); memset(lcd_patterns, 0, sizeof(lcd_patterns)); xspace = find_xchar(' '); memset(lcd_charbuffer, xchar_info[xspace].hw_char, sizeof(lcd_charbuffer)); scroll_init(); }
/* LCD init */ void lcd_init(void) { /* Initialise the viewport */ lcd_set_viewport(NULL); lcd_clear_display(); /* Call device specific init */ lcd_init_device(); scroll_init(); }
static void scroll_setup(app_t *app, int dir) { gettimeofday(&app->scroll.start, NULL); scroll_init(app, &app->scroll.start, dir); if (app->scroll.delay_ms < MINIMUM_SCROLL_DELAY) { app->scroll.last = app->scroll.start; scroll_ended(app); return; } app->scroll.anim = ecore_animator_add(scroll, app); }
// init void init_page_presets(void) { u8 i, n; print_dbg("\r\n alloc PRESETS page"); // allocate regions region_alloc(&scrollRegion); // init scroll scroll_init(¢erScroll, &scrollRegion); // fill regions region_fill(&scrollRegion, 0x0); // fill the scroll with actual line values... n = 3; i = 0; //// need to actually set the scroll region at least temporarily render_set_scroll(¢erScroll); redraw_lines(); }
// init void init_page_outs(void) { u8 i, n; print_dbg("\r\n alloc OUTS page"); // allocate regions region_alloc(&scrollRegion); // init scroll scroll_init(¢erScroll, &scrollRegion); // fill regions region_fill(&scrollRegion, 0x0); // fill the scroll with actual line values... n = 3; i = 0; //// need to actually set the scroll region at least temporarily render_set_scroll(¢erScroll); while(i<5) { render_line(i, 0xa); render_to_scroll_line(n, i == 0 ? 1 : 0); ++n; ++i; } }
//---------------------- // ---- extern // init void init_page_dsp(void) { u8 i, n; u16 max = files_get_dsp_count() - 1; print_dbg("\r\n alloc DSP page"); // allocate regions region_alloc(&scrollRegion); // init scroll scroll_init(¢erScroll, &scrollRegion); // fill regions region_fill(&scrollRegion, 0x0); // fill the scroll with actual line values... n = 3; i = 0; //// need to actually set the scroll region at least temporarily render_set_scroll(¢erScroll); // also, reset scroller! while(i<5) { render_line(i, max); render_to_scroll_line(n, i == 0 ? 1 : 0); ++n; ++i; } }
//================================= //==== extern definitions // init void init_page_ops(void) { u8 i, n; print_dbg("\r\n alloc OPS page"); // allocate regions region_alloc(&scrollRegion); // init scroll scroll_init(¢erScroll, &scrollRegion); // fill regions region_fill(&scrollRegion, 0x0); // fill the scroll with actual line values... n = 3; i = 0; //// need to actually set the scroll region at least temporarily render_set_scroll(¢erScroll); while(i<5) { /* print_dbg("\r\n init ops page, line "); */ /* print_dbg_ulong(i); */ render_line(i); render_to_scroll_line(n, i == 0 ? 1 : 0); ++n; ++i; } print_dbg("\r\n done."); }