Skip to content

Commit 64205a6

Browse files
committed
Update cheat-sheet.md
1 parent f976421 commit 64205a6

File tree

1 file changed

+4
-4
lines changed
  • content/hardware/03.nano/boards/nano-esp32/tutorials/cheat-sheet

1 file changed

+4
-4
lines changed

content/hardware/03.nano/boards/nano-esp32/tutorials/cheat-sheet/cheat-sheet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,10 @@ The Nano ESP32 has a second SPI port (HSPI). To use it, we need to create an obj
342342
```arduino
343343
//define SPI2 pins manually
344344
//you can also choose any other free pins
345-
#define SPI2_SCK 2
346-
#define SPI2_CIPO 3
347-
#define SPI2_COPI 4
348-
#define SPI2_CS 5
345+
#define SPI2_SCK D2
346+
#define SPI2_CIPO D3
347+
#define SPI2_COPI D4
348+
#define SPI2_CS D5
349349
350350
//create SPI2 object
351351
SPIClass SPI2(HSPI);

0 commit comments

Comments
 (0)