随笔分类 - 单片机基础知识
摘要:以下包含:三个文件,main.c、gpoi.c、gpio.h
阅读全文
摘要:http://download.csdn.net/album/detail/1111 枚举 机房内容
阅读全文
摘要:/*-------------------------------------------------------------------------- 自定义REG52头文件 @auth lei @date 2017-05 --------------------------------------------------------------------------*/ #ifndef ...
阅读全文
摘要:/* Note:Your choice is C IDE */ #include "stdio.h" void main() { //不同位数数字取个十百千位数字的代码 int i,j,a; i = 78; j = 654; a = 4176; printf("-------两位数----------\n"); //获取个位的数字 printf(...
阅读全文
摘要://函数调用#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...
阅读全文
摘要:/* Main.c file generated by New Project wizard * * Created: 周五 五月 5 2017 * Processor: 80C31 * Compiler: Keil for 8051 */ #include #include /* 知识点:函数的调用、指针、数组 ------------...
阅读全文
摘要:/* Main.c file generated by New Project wizard * * Created: 周五 五月 5 2017 * Processor: 80C31 * Compiler: Keil for 8051 */ #include #include /* 第一种闪烁的方法 知识点:函数的调用 ...
阅读全文
摘要://延时函数 void delay() { i = 10000; while(i--); } void delays(int d) { while(d--); }
阅读全文
摘要:#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[]) { /*结构体 把一堆的数据整体地放到存储地址里 基本定...
阅读全文
摘要:#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[...
阅读全文

浙公网安备 33010602011771号