摘要: /* led.c文件 标题: 点亮一个了LED灯 电路:开发板中P2口已接到LED灯的阴极 */ #include #include "led1.h" void led1(){ //设置P2.0口为低电平,连接到该口的LED灯点亮 //0xfe ==== 1111 1110 P2 = 0xfe; } //led1.h的文件 #ifnd... 阅读全文
posted @ 2017-05-10 20:52 徐景祥 阅读(842) 评论(0) 推荐(0) 编辑
摘要: http://download.csdn.net/download/feifan50/9720417 阅读全文
posted @ 2017-05-09 16:33 徐景祥 阅读(3977) 评论(0) 推荐(0) 编辑
摘要: //函数调用#include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ void print_my_name();//函数声明 ,尽量每个函数都要声明,养成好习惯 int main(int argc, char... 阅读全文
posted @ 2017-05-08 19:31 徐景祥 阅读(529) 评论(0) 推荐(0) 编辑
摘要: /* Main.c file generated by New Project wizard * * Created: 周五 五月 5 2017 * Processor: 80C31 * Compiler: Keil for 8051 */ #include #include /* 知识点:函数的调用、指针、数组 ------------... 阅读全文
posted @ 2017-05-08 14:35 徐景祥 阅读(304) 评论(0) 推荐(0) 编辑
摘要: APM飞控修改数传模块方法 http://www.cnblogs.com/wsine/p/4909903.html APM的3DR无线数传的安装和调试 http://tieba.baidu.com/p/4477334235?qq-pf-to=pcqq.c2c 无线数传能代替USB线进行调参,还能实时 阅读全文
posted @ 2017-05-07 19:16 徐景祥 阅读(12525) 评论(1) 推荐(0) 编辑
摘要: /* Main.c file generated by New Project wizard * * Created: 周五 五月 5 2017 * Processor: 80C31 * Compiler: Keil for 8051 */ #include #include /* 第一种闪烁的方法 知识点:函数的调用 ... 阅读全文
posted @ 2017-05-05 16:42 徐景祥 阅读(297) 评论(0) 推荐(0) 编辑
摘要: //延时函数 void delay() { i = 10000; while(i--); } void delays(int d) { while(d--); } 阅读全文
posted @ 2017-05-04 15:32 徐景祥 阅读(145) 评论(0) 推荐(0) 编辑
摘要: /* Note:Your choice is C IDE */ //引入标准输入、输出库 #include "stdio.h" //引入系统时间库 #include "time.h" //宏定义,随机数生成函数 #define Random(x) (rand() % x) //函数声明 void print_name(char *pt,int max_size); void priz... 阅读全文
posted @ 2017-05-04 10:44 徐景祥 阅读(375) 评论(0) 推荐(0) 编辑
摘要: #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { /*结构体 把一堆的数据整体地放到存储地址里 基本定... 阅读全文
posted @ 2017-05-03 20:18 徐景祥 阅读(215) 评论(0) 推荐(0) 编辑
摘要: #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ //Q:打印一串数字1,2,3 用两种方法 //知识点:指针、for循环、数组 int main(int argc, char *argv[... 阅读全文
posted @ 2017-05-03 17:10 徐景祥 阅读(438) 评论(0) 推荐(0) 编辑