Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
v1.6.0 for WizNet W6100
Browse files Browse the repository at this point in the history
#### Releases v1.6.0

1. Add support to WIZNet `W6100` using [`Ethernet_Generic`](https://github.com/khoih-prog/Ethernet_Generic) library
  • Loading branch information
khoih-prog authored Jan 21, 2023
1 parent 4e962d3 commit 9172e71
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
14 changes: 7 additions & 7 deletions examples/Ethernet/FTPClient_DownloadFile/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@
#include <SPI.h>

// Use true for ENC28J60 and UIPEthernet library (https://github.com/UIPEthernet/UIPEthernet)
// Use false for W5x00 and Ethernetx library (https://www.arduino.cc/en/Reference/Ethernet)
// Use false for W5x00/W6100 and Ethernetx library (https://www.arduino.cc/en/Reference/Ethernet)

#define USE_UIP_ETHERNET false

Expand All @@ -361,9 +361,9 @@
//#define USE_THIS_SS_PIN 22 //21 //5 //4 //2 //15

// Only one if the following to be true
#define USE_ETHERNET_GENERIC false
#define USE_ETHERNET_GENERIC true
#define USE_ETHERNET_ESP8266 false
#define USE_ETHERNET_ENC true
#define USE_ETHERNET_ENC false
#define USE_CUSTOM_ETHERNET false

////////////////////////////
Expand All @@ -388,9 +388,9 @@
#elif USE_ETHERNET_GENERIC

#if USING_SPI2
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI1"
#define SHIELD_TYPE "W5x00/W6100 using Ethernet_Generic Library on SPI1"
#else
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI0/SPI"
#define SHIELD_TYPE "W5x00/W6100 using Ethernet_Generic Library on SPI0/SPI"
#endif

#define ETHERNET_LARGE_BUFFERS
Expand Down Expand Up @@ -420,12 +420,12 @@
#define USE_ETHERNET_GENERIC true
#include "Ethernet_Generic.h"
#warning Using default Ethernet_Generic lib
#define SHIELD_TYPE "W5x00 using default Ethernet_Generic Library"
#define SHIELD_TYPE "W5x00/W6100 using default Ethernet_Generic Library"
#endif

// Ethernet_Shield_W5200, EtherCard, EtherSia not supported
// Select just 1 of the following #include if uncomment #define USE_CUSTOM_ETHERNET
// Otherwise, standard Ethernet library will be used for W5x00
// Otherwise, standard Ethernet library will be used for W5x00/W6100

////////////////////////////

Expand Down
10 changes: 5 additions & 5 deletions examples/Ethernet/FTPClient_ListFiles/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@
#include <SPI.h>

// Use true for ENC28J60 and UIPEthernet library (https://github.com/UIPEthernet/UIPEthernet)
// Use false for W5x00 and Ethernetx library (https://www.arduino.cc/en/Reference/Ethernet)
// Use false for W5x00/W6100 and Ethernetx library (https://www.arduino.cc/en/Reference/Ethernet)

#define USE_UIP_ETHERNET false

Expand Down Expand Up @@ -388,9 +388,9 @@
#elif USE_ETHERNET_GENERIC

#if USING_SPI2
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI1"
#define SHIELD_TYPE "W5x00/W6100 using Ethernet_Generic Library on SPI1"
#else
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI0/SPI"
#define SHIELD_TYPE "W5x00/W6100 using Ethernet_Generic Library on SPI0/SPI"
#endif

#define ETHERNET_LARGE_BUFFERS
Expand Down Expand Up @@ -420,12 +420,12 @@
#define USE_ETHERNET_GENERIC true
#include "Ethernet_Generic.h"
#warning Using default Ethernet_Generic lib
#define SHIELD_TYPE "W5x00 using default Ethernet_Generic Library"
#define SHIELD_TYPE "W5x00/W6100 using default Ethernet_Generic Library"
#endif

// Ethernet_Shield_W5200, EtherCard, EtherSia not supported
// Select just 1 of the following #include if uncomment #define USE_CUSTOM_ETHERNET
// Otherwise, standard Ethernet library will be used for W5x00
// Otherwise, standard Ethernet library will be used for W5x00/W6100

////////////////////////////

Expand Down
10 changes: 5 additions & 5 deletions examples/Ethernet/FTPClient_UploadImage/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@
#include <SPI.h>

// Use true for ENC28J60 and UIPEthernet library (https://github.com/UIPEthernet/UIPEthernet)
// Use false for W5x00 and Ethernetx library (https://www.arduino.cc/en/Reference/Ethernet)
// Use false for W5x00/W6100 and Ethernetx library (https://www.arduino.cc/en/Reference/Ethernet)

#define USE_UIP_ETHERNET false

Expand Down Expand Up @@ -388,9 +388,9 @@
#elif USE_ETHERNET_GENERIC

#if USING_SPI2
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI1"
#define SHIELD_TYPE "W5x00/W6100 using Ethernet_Generic Library on SPI1"
#else
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI0/SPI"
#define SHIELD_TYPE "W5x00/W6100 using Ethernet_Generic Library on SPI0/SPI"
#endif

#define ETHERNET_LARGE_BUFFERS
Expand Down Expand Up @@ -420,12 +420,12 @@
#define USE_ETHERNET_GENERIC true
#include "Ethernet_Generic.h"
#warning Using default Ethernet_Generic lib
#define SHIELD_TYPE "W5x00 using default Ethernet_Generic Library"
#define SHIELD_TYPE "W5x00/W6100 using default Ethernet_Generic Library"
#endif

// Ethernet_Shield_W5200, EtherCard, EtherSia not supported
// Select just 1 of the following #include if uncomment #define USE_CUSTOM_ETHERNET
// Otherwise, standard Ethernet library will be used for W5x00
// Otherwise, standard Ethernet library will be used for W5x00/W6100

////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@
#include "Ethernet_Generic.h"

#if defined(ETHERNET_LARGE_BUFFERS)
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library with Large Buffer"
#define SHIELD_TYPE "W5x00/W6100 using Ethernet_Generic Library with Large Buffer"
#else
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library"
#define SHIELD_TYPE "W5x00/W6100 using Ethernet_Generic Library"
#endif

#include <EthernetWebServer.h>
Expand Down

0 comments on commit 9172e71

Please sign in to comment.