文件名称:led_analog_traffic_light
介绍说明--下载内容均来自于网络,请自行研究使用
/**
*本程序目的为控制LED灯模拟红绿灯
* 具体:Edkit-8试验箱中可以介入4个LED灯,但我们只用其中的3只
* 规定第1只表示红灯,每次亮20秒
* 规定第2只表示黄灯,每次亮5秒
* 规定第3只表示绿灯,每次亮20秒
*开始时红灯先亮,然后黄灯、绿灯依次亮。循环反复
*每次灯切换时会有3秒的闪烁时间
*
*
*gcc -o led_analog_traffic_light led_analog_traffic_light.c
*
*/-/*** The purpose of this program for control LED light simulation traffic lights* specific: Edkit-8 chamber can be involved in the four LED lights, but we only use 3* The requirement for a red light, each light 20 seconds* The requirement for two yellow* The requirement for the first three said green 20 seconds each bright red at the beginning of the first light, then turn bright yellow, green on for five seconds each time. Cycle repeated* every light switch there will be a 3-second flashing time*** gcc-o led_analog_traffic_light led_analog_traffic_light.c** /
*本程序目的为控制LED灯模拟红绿灯
* 具体:Edkit-8试验箱中可以介入4个LED灯,但我们只用其中的3只
* 规定第1只表示红灯,每次亮20秒
* 规定第2只表示黄灯,每次亮5秒
* 规定第3只表示绿灯,每次亮20秒
*开始时红灯先亮,然后黄灯、绿灯依次亮。循环反复
*每次灯切换时会有3秒的闪烁时间
*
*
*gcc -o led_analog_traffic_light led_analog_traffic_light.c
*
*/-/*** The purpose of this program for control LED light simulation traffic lights* specific: Edkit-8 chamber can be involved in the four LED lights, but we only use 3* The requirement for a red light, each light 20 seconds* The requirement for two yellow* The requirement for the first three said green 20 seconds each bright red at the beginning of the first light, then turn bright yellow, green on for five seconds each time. Cycle repeated* every light switch there will be a 3-second flashing time*** gcc-o led_analog_traffic_light led_analog_traffic_light.c** /
(系统自动生成,下载前可以参看下载内容)
下载文件列表
led_analog_traffic_light.c