Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
ESP8266EX.h
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/anakod/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * ESP8266EX.h
8  *
9  ****/
10 
11 #ifndef _SMING_CORE_ESP8266EX_H_
12 #define _SMING_CORE_ESP8266EX_H_
13 
14 #include "user_config.h"
15 
16 #define TOTAL_PINS 16
17 #define NUM_DIGITAL_PINS TOTAL_PINS
18 
22 struct EspDigitalPin {
23  uint8_t id;
24  uint32_t mux;
25  uint8_t gpioFunc;
26 
27  operator const int() const
28  {
29  return id;
30  }
31  void mode(uint8_t mode) const;
32  void write(uint8_t val) const;
33  uint8_t read() const;
34 };
35 
39 extern const EspDigitalPin EspDigitalPins[];
40 
41 #endif /* _SMING_CORE_ESP8266EX_H_ */
ESP GPIO pin configuration.
Definition: ESP8266EX.h:22
const EspDigitalPin EspDigitalPins[]
ESP GPIO pin configuration.