change for use
Diff: SPIRawHandler.cpp
- Revision:
- 1:b138ec359bfe
- Parent:
- 0:e882606c8174
diff -r e882606c8174 -r b138ec359bfe SPIRawHandler.cpp --- a/SPIRawHandler.cpp Tue Dec 07 07:54:45 2021 +0000 +++ b/SPIRawHandler.cpp Thu Dec 16 15:53:27 2021 +0000 @@ -5,12 +5,12 @@ #define SS_PIN PA_4 DigitalOut ss(SS_PIN); -SPI spi(PA_5,PA_6,PA_7); +SPI spi(PA_7,PA_6,PA_5); void SpiRawInitialize(){ ss = 1; spi.format(8,0); - spi.frequency(1000000); + spi.frequency(125000); } void SpiRawWrite(uint8_t data){