About 8*8LED dot matrix screen
1.8*8LED dot matrix screen schematic diagram
74HC595 shifter: serial input >>> parallel output
LED: Monochromatic light, trichromatic light (red, green, blue –>> multiple colors)
Pitch: The distance between two adjacent points. 2mm=2pitch
Practical application: Advertising
// Turn on the rightmost LED
#include #include typedef unsigned char u8; typedef unsigned int u16; sbit SCK =P3^6; sbit RCK =P3^5; sbit SER =P3^4; void Hc595SendByte(u8 dat); void main(void ) { Hc595SendByte(0x7f); while(1); } void Hc595SendByte(u8 dat) { u8 i=0,j=0; SCK=0; RCK=0; for(i=0;i<8;i++) { SER=dat>>7; dat << = 1; SCK = 1; j++; j++; SCK = 0; } RCK = 1; j++; j++; }
Previous article:Connect 8 LEDs to the P1 port, and control the water flow light by pressing buttons to move left and right
Next article:51 MCU review: 8*8 LED dot matrix
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- EEWORLD University Hall----Mentor PADS VX2 four-layer router
- LLC formula derivation, loop compensation transfer function derivation calculation and simulation
- EEWORLD University Hall ---- Introduction to Deep Learning
- [FreeRTOS check-in station 4 opens] Inter-task communication, closing time is August 23
- After the PWM frequency of STM32 reaches 500KHZ, can it be increased or decreased by 1KHZ?
- [Technical Discussion] How to troubleshoot electromagnetic interference in wireless communications?
- Urgent recruitment
- First day of work in the Year of the Ox
- Micron ships 232-layer NAND, expanding the boundaries of 3D NAND technology——Win gifts by passing levels now!
- The Present and Future of Finger Vein Recognition Technology (Electronics Industry Procurement)