Skip to content

Commit f71f982

Browse files
committed
Ethernet example
1 parent 9e52556 commit f71f982

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

examples/SnapClientEthernet/SnapClientEthernet.ino

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
#include "AudioTools.h"
66
#include "SnapClient.h"
77

8-
#define ETH_MISO 23
9-
#define ETH_MOSI 19
10-
#define ETH_SCLK 18
8+
// #define ETH_MISO 23
9+
// #define ETH_MOSI 19
10+
// #define ETH_SCLK 18
11+
// #define ETH_CS 5
1112

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

2223
// The ESP32 supports a flexible definition of the SPI pins
23-
SPI.begin(ETH_SCLK, ETH_MISO, ETH_MOSI);
24+
//SPI.begin(ETH_SCLK, ETH_MISO, ETH_MOSI, ETH_CS);
25+
26+
SPI.begin(); // use default pins
2427

2528
// start the Ethernet connection:
2629
if (Ethernet.begin(mac) == 0) {

0 commit comments

Comments
 (0)