……
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
摘要: 一、源程序 #include "reg52.h" //此文件中定义了单片机的一些特殊功能寄存器 #define uint unsigned int //定义常用数据类型替代码 #define uchar unsigned char #define dat P0 //定义LCD1602的数据口为P0 阅读全文
posted @ 2020-06-04 11:18 十零 阅读(1549) 评论(0) 推荐(0) 编辑
摘要: 一、主函数如下: #include <reg52.h> //此文件中定义了单片机的一些特殊功能寄存器 #include"fpc8591.h" #include"i2c.h" #include "74hc595.h" /***************************************** 阅读全文
posted @ 2020-06-03 12:40 十零 阅读(871) 评论(0) 推荐(0) 编辑
摘要: 一、创建头文件74hc595.h代码如下: #ifndef __74HC595_H_ #define __74HC595_H_ #include <reg52.h> #define uchar unsigned char #define uint unsigned int sbit DIO = P1 阅读全文
posted @ 2020-06-03 12:39 十零 阅读(885) 评论(0) 推荐(0) 编辑
摘要: 一、创建头文件i2c.h代码如下: #ifndef __I2C_H_ #define __I2C_H_ #include <reg52.h> sbit SCL=P2^1; sbit SDA=P2^0; void I2cStart(); // I2c启动 void I2cStop(); // I2c停 阅读全文
posted @ 2020-06-01 11:14 十零 阅读(1314) 评论(0) 推荐(0) 编辑
摘要: 一、创建头文件pcf8591.h代码如下: #ifndef __FPC8591_H_ #define __FPC8591_H_ #include <reg52.h> void init_pcf8591(void); //pcf8591初始化 unsigned char adc_pcf8591(voi 阅读全文
posted @ 2020-06-01 11:07 十零 阅读(2151) 评论(0) 推荐(0) 编辑
摘要: 一、创建头文件lcd1602.h代码如下: #ifndef __LCD1602_H_ #define __LCD1602_H_ #include <reg52.h> #include <stdio.h> #define uint unsigned int //定义常用数据类型替代码 #define 阅读全文
posted @ 2020-06-01 11:01 十零 阅读(1980) 评论(0) 推荐(0) 编辑
摘要: 一、主函数如下: #include <reg52.h> //此文件中定义了单片机的一些特殊功能寄存器 #include "lcd1602.h" #include"fpc8591.h" #include"i2c.h" /***************************************** 阅读全文
posted @ 2020-06-01 10:56 十零 阅读(2615) 评论(2) 推荐(0) 编辑
摘要: DROP TABLE IF EXISTS `tb_admin`; CREATE TABLE `tb_admin` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `address` varchar(2 阅读全文
posted @ 2020-05-28 19:14 十零 阅读(2226) 评论(0) 推荐(0) 编辑
摘要: 1. 以下图为例,删除纵坐标轴的刻度和坐标数字。 2. 双击纵坐标的坐标轴,在弹出的对话框中选择“Title & Format”,将Major(主刻度)和Minor(次刻度)都设置为None去掉坐标刻度。 3.选择对话框的“Minor Tick Labels”取消对话框中“Show Major La 阅读全文
posted @ 2020-05-11 09:11 十零 阅读(48277) 评论(0) 推荐(0) 编辑
摘要: Origin系列软件是美国OriginLab公司推出的数据分析和制图软件,是公认的简单易学、操作灵活、功能强大的软件,既可以满足一般用户的制图需要,也可以满足高级用户数据分析、函数拟合的需要。 1.打开Origin软件初始界面 2.在界面Book1中鼠标双击点A(x)进入 3.在Short Name 阅读全文
posted @ 2020-05-07 12:51 十零 阅读(8917) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页