User Manual

171
/
223
Type x again and press ‘Send’ to turn off all LEDs.
Code
After wiring, please open program in the code folder- Lesson 25 The Serial Monitor
and click UPLOAD to upload the program. See Lesson 2 for details about program
uploading if there are any errors.
As you might expect, the sketch is based on the sketch used in Lesson 24. So, we will
just cover the new bits here. You will find it useful to refer to the full sketch in your
Arduino IDE.
In the 'setup' function, there are three new lines at the end:
void setup()
{
pinMode(latchPin, OUTPUT);
pinMode(dataPin, OUTPUT);
pinMode(clockPin, OUTPUT);
updateShiftRegister();
Serial.begin(9600);