E707 Basic NodeMCU-V2 Shield Library
1.0
|
#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 [] |
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
void shieldDisplayDigit | ( | int | digit | ) |
Set a digit (between 0 and 9) on the 7 segment display of the shield.
digit | The digit to display, between 0 and 9. |
Example:
void shieldSetPinout | ( | void | ) |
Set the pin mode (INPUT or OUTPUT) for all relavent pins for the shield's periferals.
uint8_t digit_to_segment[] |