E707 Basic NodeMCU-V2 Shield Library  1.0
Functions | Variables
basic-nodemcuv2-shield.cpp File Reference
#include <basic-nodemcuv2-shield.h>

Functions

void _shieldWriteAllSegments (uint8_t output)
 Basic NodeMCU_V2 Development Shield Library By Electro707. More...
 
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...
 

Variables

uint8_t digit_to_segment []
 

Function Documentation

◆ _shieldWriteAllSegments()

void _shieldWriteAllSegments ( uint8_t  output)

Basic NodeMCU_V2 Development Shield Library By Electro707.

Internal function to write all segment's output by a 8-bit number (each bit indicating which segment is off or on)

This "library" is mostly to provide pin definitions and some examples for the Basic NodeMCU_V2 Development Shield

Updated on 2021-04-21

◆ shieldDisplayDigit()

void shieldDisplayDigit ( int  digit)

Set a digit (between 0 and 9) on the 7 segment display of the shield.

Parameters
digitThe digit to display, between 0 and 9.

Example:

void setup(){
}
void loop(){
// Display a 6 on the 7-segment display
delay(500);
// Display a 9 on the 7-segment display
}
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.

Variable Documentation

◆ digit_to_segment

uint8_t digit_to_segment[]
Initial value:
= {
0b00111111,
0b00000110,
0b01011011,
0b01001111,
0b01100110,
0b01101101,
0b01111101,
0b00000111,
0b01111111,
0b01101111
}