|
@@ -27,7 +27,7 @@
|
27
|
27
|
#include <stdint.h>
|
28
|
28
|
|
29
|
29
|
template<uint8_t MisoPin, uint8_t MosiPin, uint8_t SckPin>
|
30
|
|
-class SPI {
|
|
30
|
+class SPIclass {
|
31
|
31
|
static SoftSPI<MisoPin, MosiPin, SckPin> softSPI;
|
32
|
32
|
public:
|
33
|
33
|
FORCE_INLINE static void init() { softSPI.begin(); }
|
|
@@ -38,7 +38,7 @@ class SPI {
|
38
|
38
|
|
39
|
39
|
// Hardware SPI
|
40
|
40
|
template<>
|
41
|
|
-class SPI<MISO_PIN, MOSI_PIN, SCK_PIN> {
|
|
41
|
+class SPIclass<MISO_PIN, MOSI_PIN, SCK_PIN> {
|
42
|
42
|
public:
|
43
|
43
|
FORCE_INLINE static void init() {
|
44
|
44
|
OUT_WRITE(SCK_PIN, LOW);
|