#include <Arduino.h>
Go to the source code of this file.
|
void | shieldSetPinout (void) |
| Set the pin mode (INPUT or OUTPUT) for all relavent pins for the shield's periferals. More...
|
|
void | shieldDisplayDigit (int digit) |
| Set a digit (between 0 and 9) on the 7 segment display of the shield. More...
|
|
◆ shieldDisplayDigit()
void shieldDisplayDigit |
( |
int |
digit | ) |
|
Set a digit (between 0 and 9) on the 7 segment display of the shield.
- Parameters
-
digit | The digit to display, between 0 and 9. |
Example:
void setup(){
}
void loop(){
delay(500);
}
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
◆ shieldSetPinout()
void shieldSetPinout |
( |
void |
| ) |
|
Set the pin mode (INPUT or OUTPUT) for all relavent pins for the shield's periferals.
◆ SHIELD_BT1
The pin connected to Button 1.
◆ SHIELD_BT2
The pin connected to Button 2.
◆ SHIELD_BT3
The pin connected to Button 3.
◆ SHIELD_LEDB
The pin connected to the Blue LED.
◆ SHIELD_LEDG
The pin connected to the Green LED.
◆ SHIELD_LEDR
The pin connected to the Red LED.
◆ SHIELD_SEGA
The pin connected to Segment A of the 7-Seg display.
◆ SHIELD_SEGB
The pin connected to Segment B of the 7-Seg display.
◆ SHIELD_SEGC
The pin connected to Segment C of the 7-Seg display.
◆ SHIELD_SEGD
The pin connected to Segment D of the 7-Seg display.
◆ SHIELD_SEGE
The pin connected to Segment E of the 7-Seg display.
◆ SHIELD_SEGF
The pin connected to Segment G of the 7-Seg display.
◆ SHIELD_SEGG
The pin connected to Segment F of the 7-Seg display.