void main(void)  
{
	idata char buf[16];
	idata char buf2[16];
	char *pbuf = buf;
	char *pbuf2 = buf2;
	float f1 = 3.141592;
	int bytes, cnt;
	int step1 = 0;
	int step2 = 0;
	while (1)
	{
		pbuf = buf;
		pbuf2 = buf2;
		bytes = sprintf(buf, "%s", "LABORATORY_WORK");
		init_lcd();
		clear_lcd();
		for (cnt = 0; cnt < step1; cnt++)
	    	write_char(' ');
		for (cnt = 0; cnt < bytes - step1; cnt++)
			write_char(pbuf++);
		step1 = step1 + 1;
		if (step1 > bytes - 1)
		{
			step1 = 0;
		}
		if (step1 > 2 * bytes - 1)
		{
			step1 = 0;
		}
		s_lcd();
		bytes = sprintf(buf2, "%s", "LSD_INFORMATION");
		for (cnt = 0; cnt < step2; cnt++)
	    	write_char(' '); 
		for (cnt = 0; cnt < bytes - step2; cnt++)
			write_char(pbuf2++);

		step2 = step2 + 1;

		if (step2 > bytes - 1)
		{
			step2 = 0;
		}

		//delay(100);
	}
	while(1);  
}
Exemple #2
0
void sconsole_sis(void){

    if((strcmppgm2ram(ARG_1, cmd[0]) == 0) && (QUA_ARG == 2)){
        
        s_printf();

    } else if((strcmppgm2ram(ARG_1, cmd[1]) == 0) && (QUA_ARG == 2)){

        s_tty();

    } else if((strcmppgm2ram(ARG_1, cmd[2]) == 0) && (QUA_ARG == 2)){

        s_stack();

    } else if((strcmppgm2ram(ARG_1, cmd[3]) == 0) && (QUA_ARG == 2)){

        tempo_hum();

    } else if(strcmppgm2ram(ARG_1, cmd[4]) == 0 && (QUA_ARG > 2)){

        s_lcd();

    } else if(strcmppgm2ram(ARG_1, cmd[5]) == 0 && (QUA_ARG == 2)){

        s_ip();

    } else if(strcmppgm2ram(ARG_1, cmd[6]) == 0 && (QUA_ARG == 2)){

        lcd_qmsg("rc_conf");
        rc_test();

    } else if(strcmppgm2ram(ARG_1, cmd[7]) == 0 && (QUA_ARG == 2)){

        s_redes();

    } else {

        s_erro_argumentos();
        
    }
}