Browsed by
Tag: ethercard

How to use RS485/ RS232 / I2C cable conect (using EtherCard library)

How to use RS485/ RS232 / I2C cable conect (using EtherCard library)

Using RS485 / RS 232 / I2C cable connect you can include diferents libraries.

Ethercard library.

...
#include 
...
static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x31 };

...
void setup () {
   ...
   if (ether.begin(sizeof Ethernet::buffer, mymac, 53) == 0)
      Serial.println( "Failed to access Ethernet controller");
   if (!ether.dhcpSetup()) {
      Serial.println("DHCP failed");
   }
   ...

}