Host/spisoft_arch.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * softspi_arch.h - Host
8  *
9  */
10 
11 #pragma once
12 
13 #define GP_IN(pin) digitalRead(pin)
14 #define GP_OUT(pin, val) digitalWrite(pin, (val)&1)
15 
16 namespace spisoft
17 {
18 constexpr SpiPins defaultPins{
19  .sck = 14,
20  .miso = 12,
21  .mosi = 13,
22 };
23 
24 } // namespace spisoft
Definition: Esp32/spisoft_arch.h:21
constexpr SpiPins defaultPins
Definition: Esp32/spisoft_arch.h:22
SPI pin connections.
Definition: SPIBase.h:36
uint8_t sck
Definition: SPIBase.h:37