Elegant offer for seven digit seven segment display module using CD4511. Purchase this module at 40% discount. Offer valid for only few days. Limited numbers available. Buy it soon.
Circuit is done as shown in the diagram. Download trafficLight library from the following link. Unzip and paste the downloaded library to Arduino libraries folder. Restart Arduino IDE and open the example program from File -> Examples -> trafficLight -> trafficLight. Upload the program to your NodeMCU. Program compiled and tested on Arduino-1.8.12.
Circuit is done as shown in the diagram.
Watch the video demonstration to see the working.
Cascading will help you to create multiple outputs. Similarly, you can cascade more modules.
Purchase the module from https://haberocean.com/product/32-bit-serial-in-parallel-out-shift-register-module-using-74hc595/
Upload the following program to Arduino UNO. Change the value in customDelay() function to change the speed of running LED.
Shift Register Example
Turning on the outputs of a 74HC595 using an array
* 74HC595 shift register
* LEDs attached to each of the outputs of the shift register
//Pin connected to ST_CP (12) of 74HC595
int latchPin = 12;