Skip to content

Commit

Permalink
pico: move SPI SD pins to config.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak committed Jul 15, 2023
1 parent f550668 commit 1d6c5af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions 32blit-pico/board/vgaboard/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
#ifndef ALLOW_HIRES
#define ALLOW_HIRES 0 // disable by default, mode switching isn't supported
#endif

// spi
#define SD_SCK 5
#define SD_MOSI 18
#define SD_MISO 19
#define SD_CS 22
6 changes: 0 additions & 6 deletions 32blit-pico/storage_sd_spi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@

#include "spi.pio.h"

// vga board pins
#define SD_SCK 5
#define SD_MOSI 18
#define SD_MISO 19
#define SD_CS 22

#define SD_TIMEOUT 10

static PIO sd_pio = pio1;
Expand Down

0 comments on commit 1d6c5af

Please sign in to comment.