arhi / EthernetSPI2

Allow ESP32-CAM module to talk to W5500 Ethernet module trough HSPI as SPI (VSPI) pins are used to connect the camera module
57 stars 15 forks source link

= Ethernet Library for ESP32-CAM using HSPI interface and W5500 module =

Allow ESP32-CAM module to talk to W5500 Ethernet module trough HSPI as SPI (VSPI) pins are used to connect the camera module

== How to use ==

Check out examples/ESP32EthCamera.ino as it initializes the W5500, listens on port 80 and sends the JPG stream from the camera directly to the web client

== Assembled from ==

This is mostly copy/paste and search/replace, there's nothing "smart" done here. Ethernet library is search/replace to not use SPI but SPI2 and I renamed W5100 to W5500 (mostly so I'm sure I'm using the right one) and I initialized SPI2 as HSPI. The example .INO file is adapted to use this library and send jpeg stream.

== Licence ==

== Hardware ==

=== Connection ===

I am powering both from same externam 5V source

Since GPIO2 is used for chip select this should not affect SD card operations as SD card is also using HSPI spi interface

Original data:

= Ethernet Library for Arduino =

With the Arduino Ethernet Shield, this library allows an Arduino board to connect to the internet.

For more information about this library please visit us at http://www.arduino.cc/en/Reference/Ethernet

== License ==

Copyright (c) 2010 Arduino LLC. All right reserved.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA