Follow along with the video below to see how to install our site as a web app on your home screen.
							
						
Nota: This feature currently requires accessing the site using the built-in Safari browser.
#define r1 pin_b4
#define r2 pin_b5
#define r3 pin_b6
#define r4 pin_b7
>>>
int keypad(int sound, int time)
{
   
  output_e(0x01); 
  
     if (input (r1))
        {
        if (sound)
        {
        beep(100,200,50);}
        
        delay_ms(time);
        return 1;}
     if (input (r2))
        {
        if (sound)
        {
         beep(100,200,50);}
        
        delay_ms(time);
        return 4;}
     if (input (r3))
        {
        if (sound)
        {
        beep(100,200,50);}
        
        delay_ms(time);
        return 7;}
     if (input (r4))
{
        if (sound)
        {
       beep(100,200,50);}
        
        delay_ms(time);
        return 10;}
  output_e(0x02);       
 
     if (input (r1))
        {
        if (sound)
        {
         beep(100,200,50);}
        delay_ms(time);
        return 2;}
     if (input (r2))
        {
        if (sound)
        {
         beep(100,200,50);}
       delay_ms(time);
        return 5;}
     if (input (r3))
        {
      if (sound)
        {
         beep(100,200,50);}
         delay_ms(time);
        return 8;}
     if (input (r4))
        {
      if (sound)
        {
         beep(100,200,50);}
      delay_ms(time);
        return 11;}
  output_e(0x04);
  
     if (input (r1))
        {
      if (sound)
        {
       beep(100,200,50);}
        delay_ms(time);
        return 3;}
     if (input (r2))
        {
if (sound)
        {
        beep(100,200,50);}
        delay_ms(time);
        return 6;}
     if (input (r3))
        {
       if (sound)
        {
         beep(100,200,50);
        }
        delay_ms(time);
        return 9;}
     if (input (r4))
     {
         if (sound)
        {
         beep (100,200,50);
        }
        delay_ms(time);
        return 12;}
        
        return 0;
        }
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
y este un ejemplo de como lo utilizo en mi programa
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
while(true)
   {
   switch(keypad(1,100))
   {
   case 1:
   lcd_putc("\f|777|  ATRAS ");
   lcd_putc("\n Jugar al 777 ");
   opcion=1;
   break;
   case 3:
   lcd_putc("\f 777  |ATRAS| ");
   lcd_putc("\nRegresar al Menu");
   opcion=2;
   break;
   case 12:
   switch(opcion)
   {
   case 1:
   progress2(2,50);
   siete();
   case 2:
   return;
   default:
   break;
   }
   default:
   
   break;
   }
   
   }