SCM C language program design: alarm and rotating lights (1)

Single chip microcomputer STM32L151CCU6
1206RGB (single)
0603 white 0603 white light LED lamp bead patch led led lamp beads 0603 patch

/* Name: Alarm and rotating light

Description: Timer control alarm light

Rotate the display and emit a simulated alarm sound.

*/

#include

#include

#define uchar unsigned char

#define uint unsigned int

Sbit SPK=P3^7;

Uchar FRQ=0x00;

//delay

Void DelayMS(uint ms)

{

Uchar i;

While(ms--) for(i=0;i<120;i++);

}

//INT0 interrupt function

Void EX0_INT() interrupt 0

{

TR0=~TR0; //Turn on or stop two timers to control the sound of the alarm and LED rotation respectively

TR1=~TR1;

If(P2==0x00)

Else P2=0xe0; //Open 3 rotating lights

}

P2=0x00; / / turn off all LEDs

//Timer 0 interrupt

Void T0_INT() interrupt 1

{

TH0=0xfe;

TL0=FRQ;

SPK=~SPK;

} 单片机C语言程序设计:报警与旋转灯 (1)0

[1] [2] 单片机C语言程序设计:报警与旋转灯 (1)1

Disposable Vape

The utility model provides a disposable electronic cigarette, comprising: a hollow shell, the bottom of the shell is provided with a lower cover; the shell contains an atomizer, and the outer side of the atomizer is sheathed with a disposable cigarette A bomb, a microphone cover is arranged under the atomizer, a microphone is covered under the microphone cover, a battery is arranged on one side of the atomizer, and an upper cover is arranged on the top of the casing; The atomizer includes an atomizing corThe utility model provides a disposable electronic cigarette, comprising: a hollow shell, the bottom of the shell is provided with a lower cover; the shell contains an atomizer, and the outer side of the atomizer is sheathed with a disposable cigarette A bomb, a microphone cover is arranged under the atomizer, a microphone is covered under the microphone cover, a battery is arranged on one side of the atomizer, and an upper cover is arranged on the top of the casing; The atomizer includes an atomizing core, an oil-absorbing cotton sleeved on the outside of the atomizing core, and an atomizer outer tube sleeved on the outside of the oil-absorbing cotton. The disposable electronic cigarette provided by the utility model absorbs the smoke oil on the surface through the absorbing cotton, and then atomizes the smoke through the atomizing core, which greatly reduces the risk of oil leakage, at the same time, reduces the burning of cotton and ensures the smoking taste.e, an oil-absorbing cotton sleeved on the outside of the atomizing core, and an atomizer outer tube sleeved on the outside of the oil-absorbing cotton. The disposable electronic cigarette provided by the utility model absorbs the smoke oil on the surface through the absorbing cotton, and then atomizes the smoke through the atomizing core, which greatly reduces the risk of oil leakage, at the same time, reduces the burning of cotton and ensures the smoking taste.

disposable vape,vape pen,vape accessories,vape store,vape battery,e-cigarettes,Disposable Pod

Suizhou simi intelligent technology development co., LTD , https://www.msmvape.com

This entry was posted in on