Skip to content

Commit

Permalink
Ethernet example
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Jul 18, 2024
1 parent 9e52556 commit f71f982
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions examples/SnapClientEthernet/SnapClientEthernet.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
#include "AudioTools.h"
#include "SnapClient.h"

#define ETH_MISO 23
#define ETH_MOSI 19
#define ETH_SCLK 18
// #define ETH_MISO 23
// #define ETH_MOSI 19
// #define ETH_SCLK 18
// #define ETH_CS 5

EthernetClient eth;
HexDumpOutput out; // final output
Expand All @@ -20,7 +21,9 @@ void setup() {
Serial.begin(115200);

// The ESP32 supports a flexible definition of the SPI pins
SPI.begin(ETH_SCLK, ETH_MISO, ETH_MOSI);
//SPI.begin(ETH_SCLK, ETH_MISO, ETH_MOSI, ETH_CS);

SPI.begin(); // use default pins

// start the Ethernet connection:
if (Ethernet.begin(mac) == 0) {
Expand Down

0 comments on commit f71f982

Please sign in to comment.