#include
#define uint unsigned int
#define uchar unsigned char
fly duan[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};
sbit w1=P2^0;
sbit w2=P2^1;
uint num=0;
void delay(uint n)
{
while(n--);
}
main()
{
while(1)
{
w1=0;
w2=0;
P3=duan[num%10];
P2=duan[num/10];
delay(50000);
num++;
if(num==99)
{
num=0;
}
}
}
Previous article:Rectangular button
Next article:Download CC2530 Experimental Platform
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
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
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- Apple faces class action lawsuit from 40 million UK iCloud users, faces $27.6 billion in claims
- Apple faces class action lawsuit from 40 million UK iCloud users, faces $27.6 billion in claims
- The US asked TSMC to restrict the export of high-end chips, and the Ministry of Commerce responded
- The US asked TSMC to restrict the export of high-end chips, and the Ministry of Commerce responded
- ASML predicts that its revenue in 2030 will exceed 457 billion yuan! Gross profit margin 56-60%
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- MicroPython stm32 branch adds SD card option
- The difference between ELM327 Bluetooth OBD and QBD66 Bluetooth OBD
- 【Me and Yatli】+ Encounter
- Maker Faire ceases operations and lays off all employees
- Live streaming portal is now open | How Microchip solves precision timing challenges in ADAS systems
- Modern Electronics Technology Guide
- 【Portable environmental status detector】Temperature and atmospheric pressure detection
- Xi'an urgently recruits hardware R&D engineers/electronic test equipment maintenance engineers/sales engineers
- PCB design software
- A brief discussion on the causes of heating of MOS tubes in switching power supplies