sketch page html code - please help me

ola a todos, sou novo no forum e estou precisando da ajuda de vocês!!!

Estou tentando fazer rodar um codigo Arduino + pagina HTML, para controlar 5 pinos, porém o mesmo está apresentando alguns erros.
do tipo expected before token

what should I do to make the code look perfect

Complete the following code to analyze

#include <SPI.h>
#include <Ethernet.h>

byte mac = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x00};

byte ip = {192,168,0,109};

EthernetServer server(80);

int numPins = 5;

int pins = {3, 4, 5, 6, 7};

int pinState = {0, 0, 0, 0, 0};

char Line1[100];

void setup()

{

for (int i = 0; i < numPins; i++)

{

pinMode(pins*, OUTPUT);*

  • }*

  • Serial.begin(9600);*

  • Ethernet.begin(mac, ip);*

  • server.begin();*

}
void loop()
{

  • EthernetClient client = server.available();*

  • if (client)*

  • {*

  • while (client.connected())*

  • {*

  • readHeader(client);*

  • if (! pageNameIs("/")*
    {

  • client.stop();*

  • return;*

  • }*

  • client.println(“HTTP/1.1 200 OK”);*

  • client.println(“Content-Type: text/html”);*

  • client.println();*

  • client.println("");*

  • client.println(“

    Output Pins

    ”);*

  • client.println("");*

  • setValuesFromParams();*

  • setPinStates();*

  • for (int i = 0; i < numPins; i++);*

  • {*

  • writeHTMLforPin(client, i);*

  • }*

  • client.println("");*

  • client.println("");*

  • client.println("");*

  • client.stop();*

  • }*

  • }*
    }
    void writeHTMLforPin(EthernetClient client, int i)
    {

  • client.print(“

    Pin”);*
    _ client.print(pins*);_
    _
    client.print("

    ");
    }
    void setPinStates()
    {
    for (int i = 0; i < numPins; i++)
    {
    digitalWrite(pins, pinState);
    }
    }
    void setValuesFromParams()
    {
    for (int i = 0; i < numPins; i++)
    {
    pinState = valueOfParam(i + ‘0’);
    }
    }
    void readHeader(EthernetClient client)
    {*_

* char ch;*
* int i = 0;*
* while (ch != ‘/n’)*
* {*
* if (client.available())*
* {*
* ch = client.read();*
_ line1 = ch;
* i ++;
}
}*_

_ line1 = ‘/0’;_

* Serial.println(line1);*
}
boolean pageNameIs(char* name)
{
* int i = 4;*
_ char ch = line1*;
while (ch != ’ ’ && ch != ‘/n’ && ch != ‘?’)
{
if (name[i-4] != line1)
{
return false;
}
i++;_

_ch = line1;
}
return true;
}
int valueOfParam(char param)
{
for (int i = 0; i < strlen (line1); i++)
{
if (line1 == param && line1[i+1] == ‘=’)
{
return (line1[i+2] - ‘0’);
}
}
return 0;
}*_

Oye,
Cuando pontes su codico en la forum, por favor , usas la tecla “#” CODE TAGS (arriba a la izquierda la tecla “” (QUOTE))
para hacer una vendana como asi

  #include <SPI.h>
#include <Ethernet.h>
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x00};
byte ip[] = {192,168,0,109};
EthernetServer server(80);
int numPins = 5;
int pins[] = {3, 4, 5, 6, 7};
int pinState[] = {0, 0, 0, 0, 0};
char Line1[100];
void setup()
{
     for (int i = 0; i < numPins; i++)
      {
          pinMode(pins, OUTPUT);
      }
    Serial.begin(9600);
   Ethernet.begin(mac, ip);
   server.begin();
  }
void loop()
{
   EthernetClient client = server.available();
   if (client)
     {
     while (client.connected())
      {
       readHeader(client);
       if (! pageNameIs("/")
   {
         client.stop();
         return;
   }
       
       client.println("HTTP/1.1 200 OK");
       client.println("Content-Type: text/html");
       client.println();
       client.println("<html><body>");
       client.println("<h1>Output Pins</h1>");
       client.println("<form method='GET'>");
       setValuesFromParams();
       setPinStates();
       for (int i = 0; i < numPins; i++);
       {
         writeHTMLforPin(client, i);
       }
       client.println("<input type='submit' value='Update'/>");
       client.println("</from>");
       client.println("</body></html>");
       client.stop();
     }
   }
} 
void writeHTMLforPin(EthernetClient client, int i)
{
  client.print("<p>Pin");
  client.print(pins);
  client.print("<select name='");
  client.print(i);
  client.println("'>");
  client.print("<option value='0'");
  if (pinState == 0)
  {
    client.print(" selected");
  }
  client.println(">Off</option>");
  client.print("<option value='1'");
  if (PinState == 1)
{
  client.print(" selected");
}
  client.println(">On</option>");
  client.println("</select></p>");
}
void setPinStates()
{
  for (int i = 0; i < numPins; i++)
  {
    digitalWrite(pins, pinState);
  }
}
void setValuesFromParams()
{
  for (int i = 0; i < numPins; i++)
  {
    pinState = valueOfParam(i + '0');
  }
}
void readHeader(EthernetClient client)
{
  char ch;
  int i = 0;
  while (ch != '/n')
  {
    if (client.available())
    {
      ch = client.read();
      line1 = ch;
      i ++;
    }
  }
    line1 = '/0';
  Serial.println(line1);
}
boolean pageNameIs(char* name)
{
  int i = 4;
  char ch = line1;
  while (ch != ' ' && ch != '/n' && ch != '?')
  {
    if (name[i-4] != line1)
{
  return false;
}
i++;
ch = line1;
  }
  return true;
}
int valueOfParam(char param)
{
  for (int i = 0; i < strlen (line1); i++)
  {
    if (line1 == param && line1[i+1] == '=')
    {
      return (line1[i+2] - '0');
    }
  }
  return 0;
}

ya vez ?

ola a todos, sou novo no forum e estou precisando da ajuda de vocês!!! Estou tentando fazer rodar um codigo Arduino + pagina HTML, para controlar 5 pinos, porém o mesmo está apresentando alguns erros. do tipo expected before token

¿qué debo hacer para que el código look perfecto
Complete el siguiente código para analizar

hello everyone, I’m new to the forum and I need your help!! I’m trying to run a code Arduino + HTML page to control 5 pin, but it is showing some errors. the type expected before token

what should I do to make the code look perfect
Complete the following code to analyze

  #include <SPI.h>
#include <Ethernet.h>
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0x00};
byte ip[] = {192,168,0,109};
EthernetServer server(80);
int numPins = 5;
int pins[] = {3, 4, 5, 6, 7};
int pinState[] = {0, 0, 0, 0, 0};
char Line1[100];
void setup()
{
     for (int i = 0; i < numPins; i++)
      {
          pinMode(pins, OUTPUT);
      }
    Serial.begin(9600);
   Ethernet.begin(mac, ip);
   server.begin();
  }
void loop()
{
   EthernetClient client = server.available();
   if (client)
     {
     while (client.connected())
      {
       readHeader(client);
       if (! pageNameIs("/")
   {
         client.stop();
         return;
   }
       
       client.println("HTTP/1.1 200 OK");
       client.println("Content-Type: text/html");
       client.println();
       client.println("<html><body>");
       client.println("<h1>Output Pins</h1>");
       client.println("<form method='GET'>");
       setValuesFromParams();
       setPinStates();
       for (int i = 0; i < numPins; i++);
       {
         writeHTMLforPin(client, i);
       }
       client.println("<input type='submit' value='Update'/>");
       client.println("</from>");
       client.println("</body></html>");
       client.stop();
     }
   }
} 
void writeHTMLforPin(EthernetClient client, int i)
{
  client.print("<p>Pin");
  client.print(pins);
  client.print("<select name='");
  client.print(i);
  client.println("'>");
  client.print("<option value='0'");
  if (pinState == 0)
  {
    client.print(" selected");
  }
  client.println(">Off</option>");
  client.print("<option value='1'");
  if (PinState == 1)
{
  client.print(" selected");
}
  client.println(">On</option>");
  client.println("</select></p>");
}
void setPinStates()
{
  for (int i = 0; i < numPins; i++)
  {
    digitalWrite(pins, pinState);
  }
}
void setValuesFromParams()
{
  for (int i = 0; i < numPins; i++)
  {
    pinState = valueOfParam(i + '0');
  }
}
void readHeader(EthernetClient client)
{
  char ch;
  int i = 0;
  while (ch != '/n')
  {
    if (client.available())
    {
      ch = client.read();
      line1 = ch;
      i ++;
    }
  }
    line1 = '/0';
  Serial.println(line1);
}
boolean pageNameIs(char* name)
{
  int i = 4;
  char ch = line1;
  while (ch != ' ' && ch != '/n' && ch != '?')
  {
    if (name[i-4] != line1)
{
  return false;
}
i++;
ch = line1;
  }
  return true;
}
int valueOfParam(char param)
{
  for (int i = 0; i < strlen (line1); i++)
  {
    if (line1 == param && line1[i+1] == '=')
    {
      return (line1[i+2] - '0');
    }
  }
  return 0;
}

I think you have posted your question in the wrong section.

If you're able to ask your question in English, the Programming Questions would be the most suitable place to ask for help with compilation errors. If you aren't able to ask your question in English, look for an appropriate language section in the International section of the forum. Wherever you ask the question, you would need to provide a complete copy of the code and a complete copy of the error messages that the compiler is giving you.

I think you have posted your question in the wrong section.

If you're able to ask your question in English, the Programming Questions would be the most suitable place to ask for help with compilation errors. If you aren't able to ask your question in English, look for an appropriate language section in the International section of the forum. Wherever you ask the question, you would need to provide a complete copy of the code and a complete copy of the error messages that the compiler is giving you.

Creo que has publicado tu pregunta en la sección equivocada.

Si usted es capaz de hacer su pregunta en Inglés, las preguntas de programación sería el lugar más adecuado para pedir ayuda con errores de compilación. Si usted no es capaz de hacer su pregunta en Inglés, busque una sección de un lenguaje apropiado en la sección internacional del foro. Donde se hace la pregunta, usted tendría que proporcionar una copia completa del código y una copia completa de los mensajes de error que el compilador que está dando.

(Google Translate)