代码搜索:main.c
找到约 10,000 项符合「main.c」的源代码
代码结果 10,000
www.eeworm.com/read/389036/8551688
c main.c
#define uint unsigned int
#include //包括一个52标准内核的头文件
sbit P10 = P1^0; //头文件中没有定义的IO就要自己来定义了
void main(void) // 主程序
{
uint n;
while(1) //程序循环
{
P10=~P10;//取反状态
for(n=0;n
www.eeworm.com/read/389036/8551709
c main.c
#define uint unsigned int
#include //包括一个52标准内核的头文件
sbit P10 = P1^0; //要控制的LED灯
sbit K1= P3^2; //按键K1
void main(void) // 主程序
{
bit light; //位变量
uint n;
while(1) //程序循环
www.eeworm.com/read/389036/8551728
c main.c
#include //包括一个52标准内核的头文件
sbit P10 = P1^0; //要控制的LED灯
sbit K1= P3^2; //按键K1,开灯用
sbit K2= P3^5; //按键K2,关灯用
void main(void) // 主程序
{
while(1) //程序循环
{
if(!K1) //如果读到K1为0
www.eeworm.com/read/389036/8551831
c main.c
#define uchar unsigned char //定义一下方便使用
#include //包括一个52标准内核的头文件
sbit P10 = P1^0; //要控制的LED灯
void main(void) // 主程序
{
RCAP2H =0x10; //赋T2的预置值0x1000,溢出30次就是1秒钟
RCAP2L =0x00;
TR
www.eeworm.com/read/389036/8551845
c main.c
#define uchar unsigned char //定义一下方便使用
#include //包括一个52标准内核的头文件
sbit P10 = P1^0; //头文件中没有定义的IO就要自己来定义了
sbit P11 = P1^1;
sbit P12 = P1^2;
sbit P13 = P1^3;
sbit K1= P2^0;
sb
www.eeworm.com/read/389036/8551856
c main.c
#define uchar unsigned char //定义一下方便使用
#define uint unsigned int
#include //包括一个52标准内核的头文件
sbit P10 = P1^0; //头文件中没有定义的IO就要自己来定义了
sbit P11 = P1^1;
sbit P12 = P1^2;
sbit P13 = P1
www.eeworm.com/read/389036/8551870
c main.c
#define uchar unsigned char //定义一下方便使用
#define uint unsigned int
#include //包括一个52标准内核的头文件
sbit P10 = P1^0; //要控制的LED灯
uchar scale;//用于保存占空比的输出0的时间份额,总共10份
//模拟PWM输出控制灯的10个亮度
www.eeworm.com/read/389036/8551924
c main.c
#define uchar unsigned char //定义一下方便使用
#include //包括一个52标准内核的头文件
sbit P10 = P1^0; //头文件中没有定义的IO就要自己来定义了
sbit K1= P3^2;
bit ldelay=0; //长定时溢出标记,预置是0
uchar speed=10; //设置一个变
www.eeworm.com/read/389036/8551941
c main.c
#define uint unsigned int
#include //包括一个52标准内核的头文件
sbit P10 = P1^0; //头文件中没有定义的IO就要自己来定义了
sbit P11 = P1^1;
sbit P12 = P1^2;
sbit P13 = P1^3;
void main(void) // 主程序
{
uint n
www.eeworm.com/read/289426/8551962
c main.c
#include /* for EnableInterrupts macro */
#include /* include peripheral declarations */
uint temp1, temp2;
uchar F_data;
void delay(uint num)
{
uint i;
for(