Closed sayanee closed 7 years ago
Related to #2
pin 14
pin D7
pin 11
pin D5
pin 12
pin D8
pin 8
GND
pin 16
5V
pin 13
pin 10
pin 1
1kΩ
pin 2
pin 3
pin 4
pin 5
pin 6
pin 7
pin 15
int latchPin = 15; // pin D8 on NodeMCU boards int clockPin = 14; // pin D5 on NodeMCU boards int dataPin = 13; // pin D7 on NodeMCU boards void setup() { pinMode(latchPin, OUTPUT); pinMode(clockPin, OUTPUT); pinMode(dataPin, OUTPUT); } void loop() { shiftOut(dataPin, clockPin, MSBFIRST, 1); // Try LSBFIRST and digits from 1 to 2^8 (8 leds) digitalWrite(latchPin, HIGH); }
Related to #2
pin 14
to Digitalpin D7
on nodeMCU (data pin)pin 11
to Digitalpin D5
on nodeMCU (clock pin)pin 12
to Digitalpin D8
on nodeMCU (latch pin)pin 8
toGND
pin 16
to5V
pin 13
toGND
pin 10
to5V
pin 1
to1kΩ
resistor andGND
pin 2
to1kΩ
resistor andGND
pin 3
to1kΩ
resistor andGND
pin 4
to1kΩ
resistor andGND
pin 5
to1kΩ
resistor andGND
pin 6
to1kΩ
resistor andGND
pin 7
to1kΩ
resistor andGND
pin 15
to1kΩ
resistor andGND