酷代码
AI
首页
AI工具箱
在线工具
证件照自拍
证件照换底色
关于
设置
登录/注册
菜单
全部AI
/
热门
/ AI写代码神器
服务商
DeepSeek
字节豆包
阿里通义
讯飞星火
百度文心
GPT
开启上下文联想
更多选项
快捷项
语言方向:不限
语言方向:Java
语言方向:C#
语言方向:Python
语言方向:C++
语言方向:C
语言方向:JavaScript
语言方向:Go
语言方向:Ruby
语言方向:Swift
语言方向:R
语言方向:PHP
语言方向:CSS
语言方向:TypeScript
语言方向:Shell
语言方向:Scala
语言方向:Maxscript
语言方向:html
系统环境:不限
系统环境:Windows
系统环境:Linux
系统环境:Mac
其他AI
AI写代码神器
AI问答
AI新闻评论
AI摘要生成
AI高端主持词
AI工作总结报告
AI爆文标题助手
证件照自拍
证件照换底色
问AI
led灯闪烁
不太清楚您说“led 灯闪烁”是想让我为您编写关于它的文章,还是编写相关的代码呢? [2024-12-06 15:12:15 | AI写代码神器 | 29点数解答]
相关提问
如何隐藏我的提问?
AI写代码神器
#include <reg51.h> 3 sbit button=p1^0; 4 sbit led=pl^1; 5 6 bit led_state=0; 7 8日void delay(unsigned int ms){ 9 unsigned int i,j: 10 for(i=ms;i>0;i--) 11 for(j=110;j>0;j--); 12 } 13 14日void main(){ 15 while(1){ 16 白 if (button==0){ 17 delay(20); 18 if (button-=0){ 19 while (button==ah; 20 led state=~led state; 21 led=led state; 22 } 写详细注释(697点数解答 | 2024-10-29 14:54:31)
156
AI写代码神器
循环点亮 led 灯: (1) 使用定时器to 的方式 1,实现 8个 led 由上至下间隔 1s 流动,其中每个 led 亮 0.5s,灭0.5s,一直重复。。 (2) 使用定时器 to 的方式 1,实现 8个 led 逐个点亮,间隔 1s,一直重复。。(1193点数解答 | 2024-12-27 15:10:29)
127
AI写代码神器
<!DOCTYPE html> <html> <head> <style> body { background: #000; overflow: hidden; } .star { position: absolute; background: #fff; border-radius: 50%; animation:闪烁 1s infinite; } @keyframes 闪烁 { 50% { opacity: 0.3; } } </style> </head> <body> <div id="nightSky"></div> <h1 style="color: #ff69b4; text-align: center; animation:浮动 2s ease-in-out infinite;"(171点数解答 | 2025-03-15 23:59:30)
103
AI写代码神器
<!DOCTYPE html> <html> <head> <style> body { background: #000; overflow: hidden; } .star { position: absolute; background: #fff; border-radius: 50%; animation:闪烁 1s infinite; } @keyframes 闪烁 { 50% { opacity: 0.3; } } </style> </head> <body> <div id="nightSky"></div> <h1 style="color: #ff69b4; text-align: center; animation:浮动 2s ease-in-out infinite;"(460点数解答 | 2025-03-16 00:00:00)
69
AI写代码神器
#include <reg51.h> 1 2 3 sbit button=p1^0; 4 sbit led=p1^1; 5 bit led state=0; 6 7 8日void delay(unsigned int ms){ 9 unsigned int i,j; 10 for(i=ms;i>0;i--) 11 for(j=110;j>0;j--); 1213 14 void main()【 15 while(1){ 16 if (button==0){ 17 delay(20); 18 if (button==0){ 19 1ed=0; 20 21 } 做详细注释(830点数解答 | 2024-10-29 15:29:41)
122
AI写代码神器
#include <reg51.h> 1 2 3 sbit button=p1^0; 4 sbit led=p1^1; 5 bit led state=0; 6 7 8日void delay(unsigned int ms){ 9 unsigned int i,j; 10 for(i=ms;i>0;i--) 11 for(j=110;j>0;j--); 1213 14 void main()【 15 while(1){ 16 if (button==0){ 17 delay(20); 18 if (button==0){ 19 1ed=0; 20 21 } 做注释(693点数解答 | 2024-10-29 15:31:00)
216
AI写代码神器
#include <reg51.h> 1 2 3 sbit button=p1^0; 4 sbit led=p1^1; 5 bit led state=0; 6 7 8日void delay(unsigned int ms){ 9 unsigned int i,j; 10 for(i=ms;i>0;i--) 11 for(j=110;j>0;j--); 1213 14 void main()【 15 while(1){ 16 if (button==0){ 17 delay(20); 18 if (button==0){ 19 1ed=0; 20 21 }(570点数解答 | 2024-10-29 15:32:29)
115
AI写代码神器
module digital_watch(clk, reset,push1,push2,push3,digit,seg,seg_2,led); input clk; input reset; input push1; input push2; input push3; output reg [5:0]digit; output reg [6:0]seg,seg_2; output reg [3:0]led; wire tmp_reset; reg tmp_second_reset; wire tmp_push1; wire tmp_push2; wire tmp_push3; wire tmp_clk_1khz; wire tmp_1sec_mux_in; wire tmp_1min_mux_in; wire tmp_1hour_mux_in; reg tmp_1sec_mux_out; reg tmp_1min_mux_out; reg tmp_1hour_mux_out; wire [2:0] sel; wire [6:0] seg1, seg2, seg3; wire(36点数解答 | 2024-11-15 10:12:43)
97
AI写代码神器
module digital_watch(clk, reset,push1,push2,push3,digit,seg,seg_2,led); input clk; input reset; input push1; input push2; input push3; output reg [5:0]digit; output reg [6:0]seg,seg_2; output reg [3:0]led; wire tmp_reset; reg tmp_second_reset; wire tmp_push1; wire tmp_push2; wire tmp_push3; wire tmp_clk_1khz; wire tmp_1sec_mux_in; wire tmp_1min_mux_in; wire tmp_1hour_mux_in; reg tmp_1sec_mux_out; reg tmp_1min_mux_out; reg tmp_1hour_mux_out; wire [2:0] sel; wire [6:0] seg1, seg2, seg3; wire(3130点数解答 | 2024-11-15 10:14:41)
101
AI写代码神器
单片机c语言8 个 led 灯从两边到中间再到两头循环程序(373点数解答 | 2024-09-14 11:39:06)
194
AI问答
#include "stm32f10x.h" // 有问题和需求的,可以联系VX:lwfw********* #include <stdio.h> #include <string.h> #include "sys.h" #include "delay.h" #include "OLED.h" #include "dht11.h" //温湿度传感器 #include "Key.h" #include "jidianqi.h" #include "OLED.h" #include "Serial.h" #include "LED.h" #include "Buzzer.h" #include "Motor.h" #include "CountSensor.h" #include "AD.h" uint16_t AD0; //存储ADC的值 uint8_t KeyNum; //存储按键值 uint8_t RxData; //蓝牙接收到的数据 u8 temp, humi; //存储温湿度 float temp1; //(25点数解答 | 2025-05-06 01:13:43)
42
发送