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

init_MightInline(clock, bitOrder, dataMode); init_MightInline(clock, bitOrder, dataMode);
} }
} }
SPISettings() {
init_AlwaysInline(4000000, MSBFIRST, SPI_MODE0);
}
private: private:
void init_MightInline(uint32_t clock, uint8_t bitOrder, uint8_t dataMode) { void init_MightInline(uint32_t clock, uint8_t bitOrder, uint8_t dataMode) {
init_AlwaysInline(clock, bitOrder, dataMode); init_AlwaysInline(clock, bitOrder, dataMode);

Loading…
Cancel
Save