
keyestudio
www.keyestudio.com
64
{
for(int i = 0; i < 256; i++)
{
updateLEDs(i);
delay(500);
}
}
void updateLEDs(int value)
{
digitalWrite(latch, LOW);//
shiftOut(data, clock, MSBFIRST, ~value);// serial data
“
output
”
, high level first
digitalWrite(latch, HIGH);// latch
}
//////////////////////////////////////////////////////////
Test Result
After downloading the program, you can see 8 LEDs display 8-bit binary number.
*******************************************************************************
Project 17: 1-digit LED Segment Display
Introduction
LED segment displays are common for displaying numerical information. It's widely applied on
displays of electromagnetic oven, full automatic washing machine, water temperature display,
electronic clock, etc. It is necessary for us to learn how it works.
LED segment display is a semiconductor light-emitting device. Its basic unit is a light-emitting
diode (LED). LED segment display can be divided into 7-segment display and 8-segment
Содержание KS0077
Страница 1: ...keyestudio www keyestudio com 1 Super Learning Kit for Arduino...
Страница 14: ...keyestudio www keyestudio com 14 Connection for UNO R3 Connection for 2560 R3...
Страница 21: ...keyestudio www keyestudio com 21 Circuit Connection Connection for UNO R3 Connection for 2560 R3...
Страница 32: ...keyestudio www keyestudio com 32 Connection for 2560 R3...
Страница 35: ...keyestudio www keyestudio com 35 Circuit Connection Connection for UNO R3 Connection for 2560 R3...
Страница 42: ...keyestudio www keyestudio com 42 Connection for MEGA 2560...
Страница 45: ...keyestudio www keyestudio com 45 Connection for UNO R3 Connection for 2560 R3...
Страница 59: ...keyestudio www keyestudio com 59 Connection for 2560 R3...
Страница 66: ...keyestudio www keyestudio com 66 Connection for 2560 R3...
Страница 72: ...keyestudio www keyestudio com 72 Manual for LED Segment Display Connection for UNO R3...
Страница 85: ...keyestudio www keyestudio com 85 8 bit Connection Method Connection for UNO R3...
Страница 94: ...keyestudio www keyestudio com 94 Connection for 2560 R3 Connect the motor to digital pin 9...
Страница 105: ...keyestudio www keyestudio com 105 Circuit Connection Connection for UNO R3 Connection for MEGA 2560 R3...