Browse Source

Add default settings for simple constructor

main
PaulStoffregen 10 years ago
parent
commit
20d9d8ae3d
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      SPI.h

+ 3
- 0
SPI.h View File

@@ -56,6 +56,9 @@ public:
init_MightInline(clock, bitOrder, dataMode);
}
}
SPISettings() {
init_AlwaysInline(4000000, MSBFIRST, SPI_MODE0);
}
private:
void init_MightInline(uint32_t clock, uint8_t bitOrder, uint8_t dataMode) {
init_AlwaysInline(clock, bitOrder, dataMode);

Loading…
Cancel
Save