Fix SPI2-Extension SDCard-TFT buz
Fix I/O with extension SDCard Fix Buzzer aren't Speaker into the TFT screen.
This commit is contained in:
parent
1af299c50d
commit
290cfac505
1 changed files with 5 additions and 4 deletions
|
|
@ -56,7 +56,7 @@
|
|||
// SPI
|
||||
// Note: FLSun Hispeed (clone MKS_Robin_miniV2) board is using SPI2 interface.
|
||||
//
|
||||
#define STM32F1_SPI_DEVICE 2
|
||||
#define SPI_DEVICE 2
|
||||
|
||||
// SPI Flash
|
||||
#define HAS_SPI_FLASH 1
|
||||
|
|
@ -245,14 +245,15 @@
|
|||
#define SCK_PIN PB13 // SPI2
|
||||
#define MISO_PIN PB14 // SPI2
|
||||
#define MOSI_PIN PB15 // SPI2
|
||||
#define SD_DETECT_PIN PD12 // SD_CD
|
||||
#define SS_PIN PC2 // SPI2
|
||||
#define SD_DETECT_PIN -1 // SD_CD
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#ifndef BEEPER_PIN
|
||||
#define BEEPER_PIN PC5
|
||||
#if ENABLED(SPEAKER) && BEEPER_PIN == PC5
|
||||
#error "FLSun HiSpeed default BEEPER_PIN is not a SPEAKER."
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue