Pages: [1]   Go Down
Author Topic: error al cargar CromalightV1  (Read 379 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

me da el error ¨La clase Server a sido renombrada como EthernetServer¨ sombreando¨ Server server (80);¨




 
Code:
#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()
{
« Last Edit: September 28, 2013, 11:25:38 am by junco » Logged

Palencia, Spain
Offline Offline
God Member
*****
Karma: 25
Posts: 502
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

gracias
Logged

Pages: [1]   Go Up
Jump to: