Go Down

Topic: error al cargar CromalightV1 (Read 454 times) previous topic - next topic

junco

Sep 28, 2013, 06:09 pm Last Edit: Sep 28, 2013, 06:25 pm by junco Reason: 1
me da el error ¨La clase Server a sido renombrada como EthernetServer¨ sombreando¨ Server server (80);¨




Code: [Select]
#include <SPI.h>
#include <Ethernet.h>
#include <TextFinder.h>

//--------------------MODIFICAR
byte ip[] = { 192,168,1,177 }; // CAMBIAR POR LA IP ASIGNADA (DEBE SER IGUAL QUE EN CONF. IPHONE)
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
#define STRIP_LENGTH 32 //32 LEDs en 1mt (cantidad de leds en la tira leds rgb)

//-----------------------------



Server server(80);

int SDI = 2; //Red wire (not the red 5V wire!)
int CKI = 3; //Green wire
int ledPin = 13; //On board LED
int estado =0;

int rojo; //Colorama Light RED
int verde;//Colorama Light GREEN
int azul; //Colorama Light BLUE
int ColoramaPreset;// Colorama Ambient Preset 0=OFF,  1=Cromaterapia, 2=Love, 3=Relax, 4=Party , 5 =ColorPicker
long strip_colors[STRIP_LENGTH];

void setup()
{
   pinMode(SDI, OUTPUT);
   pinMode(CKI, OUTPUT);
   pinMode(ledPin, OUTPUT);

  Serial.begin(9600);
  Ethernet.begin(mac, ip);
  server.begin();
  Serial.println("ready");
}

void loop()
{

noter

Hola.
Pues supongo que significa eso mismo: que deberías cambiar
Server server(80);
por
EthernetServer server(80);


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy