RST —> RESET
GND —> GND
3V3 —> VCC
D2 —> INT
D10 —> CS
D11 —> SI
D12 —> SD
D13 —> SCK
Este seria un ejemplo sencillo de uso/comprobacion:
- Código: Seleccionar todo
#include "etherShield.h"
#include "ETHER_28J60.h"
static uint8_t mac[6] = {0x54, 0x55, 0x58, 0x10, 0x00, 0x24};
static uint8_t ip[4] = {192, 168, 1, 15};
static uint16_t port = 80;
ETHER_28J60 ethernet;
void setup()
{
ethernet.setup(mac, ip, port);
}
void loop()
{
if (ethernet.serviceRequest())
{
ethernet.print("<H1>Hello World</H1>");
ethernet.respond();
}
delay(100);
}
Aqui las librerias necesarias: