NLFS595 is a serial tri-colour LED driver. You can use the Wokwi Arduino simulator to learn how to interface a tri-colour LED driver to UNO in your next Arduino project.
you will need the following items to complete your Arduino simulator tri-colour LED project
- Arduino UNO
- Tri-colour LED driver (NLSF595)
- Connecting wires
- Tri Color LEDs x 2
https://wokwi.com/arduino/projects/315085666329297472
The Arduino UNO Code/*
NLSF595 Arduino Shift Register example for Wokwi
Copyright (C) 2021, Uri Shaked
License: MIT.
*/
const int dataPin = 2; /* SI */
const int clockPin = 3; /* SCK */
const int latchPin = 4; /* RCK */
void setup() {
pinMode(dataPin, OUTPUT);
pinMode(clockPin, OUTPUT);
pinMode(latchPin, OUTPUT);
}
void sendData(uint8_t pattern) {
digitalWrite(latchPin, LOW);
shiftOut(dataPin, clockPin, LSBFIRST, pattern);
digitalWrite(latchPin, HIGH);
}
void loop() {
// Red
sendData(0b11011011);
delay(500);
// Green
sendData(0b10110111);
delay(500);
// Purple
sendData(0b01001011);
delay(500);
}Help / questions / Suggestions?The below article answers the following questions
- How to draw and connect using wires
- How to add a part in the Wokwi Simulator
- How to change wire colours
- How to delete a part on Wokwi
- How to move, rotate parts on the Wokwi Simulator and more
https://www.hackster.io/Hack-star-Arduino/how-to-use-wokwi-arduino-simulator-what-is-wokwi-304e6b
Support/feedback/suggestions?you have many ways to ask for help, suggest a feature or share your feedback
- Open an issue on GitHub
- Visit Facebook group
- Hop on to Discord Server!
- leave a comment here 😅


_ztBMuBhMHo.jpg?auto=compress%2Cformat&w=48&h=48&fit=fill&bg=ffffff)












Comments