14 #ifndef BASIC_NODEMCU_V2_DEV_SHIELD
15 #define BASIC_NODEMCU_V2_DEV_SHIELD
23 #if !defined(ARDUINO_ESP8266_NODEMCU)
24 #error Only the NodeMCU V2 board is supported for this program
29 #define SHIELD_SEGA 15
31 #define SHIELD_SEGB 13
33 #define SHIELD_SEGC 12
41 #define SHIELD_SEGF 14
44 #define SHIELD_LEDR SHIELD_SEGA
46 #define SHIELD_LEDG SHIELD_SEGD
48 #define SHIELD_LEDB SHIELD_SEGG
void shieldSetPinout(void)
Set the pin mode (INPUT or OUTPUT) for all relavent pins for the shield's periferals.
Definition: basic-nodemcuv2-shield.cpp:30
void shieldDisplayDigit(int digit)
Set a digit (between 0 and 9) on the 7 segment display of the shield.
Definition: basic-nodemcuv2-shield.cpp:46
The LM35 temp-sensor class.
Definition: basic-nodemcuv2-shield.h:120
LM35()
Definition: basic-nodemcuv2-shield.h:122
The LM36 temp-sensor class.
Definition: basic-nodemcuv2-shield.h:133
LM36()
Definition: basic-nodemcuv2-shield.h:135
Base class for any temperature sensor.
Definition: basic-nodemcuv2-shield.h:88
float getTemperatureC(void)
Function to read the temperature of a temp-sensor and return it in Celcius.
Definition: basic-nodemcuv2-shield.cpp:66
int offset
The voltage offset in mV from the temperature sensor.
Definition: basic-nodemcuv2-shield.h:106
int divide_by
The voltage division in mV from the temperature sensor.
Definition: basic-nodemcuv2-shield.h:112
float getTemperatureF(void)
Function to read the temperature of a temp-sensor and return it in Fahrenheit.
Definition: basic-nodemcuv2-shield.cpp:76