Esempio n. 1
0
void ProfileForm::show()
{
	_visible = 1;

	lcd_draw_round_rect(15, 7, 303, 173, 3, 2);
	lcd_fill_rect(70, 16, 242, 32, 0, 2);
//	lcd_set_text_cursor(10, 1);
//	lcd_puts("ÐÅÃÓËÈÐÎÂÊÀ ÏÐÎÔÈËß");

	profileLabel.setValue(tube_get_settings_id() + 1);

	stepLabel.setValue(tube_get_step());
	pulseLabel.setValue(tube_get_max_layer_pulse_count());
	warnLabel.setValue(tube_get_warn_turn_count());
	maxLabel.setValue(tube_get_max_turn_count());

	menuButton.show();

	profileLabel.show();
	
	stepLabel.show();
	stepFrame.show();
	pulseLabel.show();
	pulseFrame.show();
	warnLabel.show();
	warnFrame.show();
	maxLabel.show();
	maxFrame.show();

   	widgetSelected = SELECTED_NONE;
	
	showOtherButtons(0);
}
Esempio n. 2
0
int clock_main()
{
    sys_init();
    gpio_init();
    timer0_init();
    lcd_init();

    ds1623_init();

    lcd_fill_rect(0, 0, 240, 320, 0x0000);
    int i = 0;
    for(;;)
    {
        ms_delay(1000);
        update_clock();
        update_temp();
    }
    return 0;
}
Esempio n. 3
0
T_VOID Fwl_FillRect(T_U16 left, T_U16 top, T_U16 width, T_U16 height, T_U16 color)
{
	T_RECT rect;

	if (Lcd_Lock)
	{
		return;
	}
	
    //提高主频
    Fwl_FreqPush(FREQ_APP_MAX);

	rect.left	= left;
	rect.top	= top;
	rect.width	= width;
	rect.height = height;
	
    lcd_fill_rect(&rect, color);
    Fwl_FreqPop();
}