自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 正点原子显示取模汉字

本文章通过正点原子的视频改动LCD_ShowChar函数,通过PCtoLCD2002取模,实现显示任意大小字符。下面以‘人’为例,通过PCtoLCD2002取模:按照正点原子下的LCD例程设设置PCtoLCD2002以16*16的‘人’进行取模取的数组为(2字节*16==32字节)uint8_t ren[32] = {0x00,0x01,0x00,0x02,0x00,0x04,0x00,0x08,0x00,0x30,0x00,0xC0,0x03,0x00,0xFC,0x00,0x0

2022-03-19 09:28:02 1479 2

原创 蓝桥杯单片机设计与开发决赛-第十一届

这里的代码是主文件的代码,其他的头文件之前已经提供,下面的代码仅提供思路,不提供原理,如有错误请及时留言提醒。#include <stc15f2k60s2.h>#include <intrins.h>#include "ds1302.h"#include "iic.h"#include "onewire.h"typedef unsigned int uint;code uchar TAB[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x9

2021-07-02 18:00:26 338 2

原创 蓝桥杯单片机设计与开发决赛-第十届

这里的代码是主文件的代码,其他的头文件之前已经提供,下面的代码仅提供思路,不提供原理,如有错误请及时留言提醒。#include <stc15f2k60s2.h>#include <intrins.h>#include "iic.h"#include "onewire.h"#include <stdio.h>typedef unsigned int uint;code uchar TAB[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99

2021-07-02 17:59:15 494

原创 蓝桥杯单片机设计与开发决赛-第九届-多功能测量仪器

这里的代码是主文件的代码,其他的头文件之前已经提供,下面的代码仅提供思路,不提供原理,如有错误请及时留言提醒。#include <stc15f2k60s2.h>#include <intrins.h>#include "iic.h"#include "onewire.h"typedef unsigned int uint;code uchar TAB[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x80

2021-07-02 17:57:18 194

原创 蓝桥杯单片机设计与开发决赛-第八届-超声波测距机

这里的代码是主文件的代码,其他的头文件之前已经提供,下面的代码仅提供思路,不提供原理,如有错误请及时留言提醒。#include <stc15f2k60s2.h>#include <intrins.h>#include "iic.h"typedef unsigned char uchar;typedef unsigned int uint;code TAB[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x8

2021-07-02 17:54:33 523

原创 蓝桥杯单片机设计与开发决赛-第七届-电压频率采集设备

这里的代码是主文件的代码,其他的头文件之前已经提供,下面的代码仅提供思路,不提供原理,如有错误请及时留言提醒。#include <stc15f2k60s2.h>#include <intrins.h>#include "ds1302.h"#include "iic.h"typedef unsigned char uchar;typedef unsigned int uint;code uchar TAB[] = {0xc0, 0xf9, 0xa4, 0xb0,

2021-07-02 17:49:49 404

原创 蓝桥杯单片机设计与开发决赛-第六届-智能物料传送系统

这里的代码是主文件的代码,其他的头文件之前已经提供,下面的代码仅提供思路,不提供原理,如有错误请及时留言提醒。#include <stc15f2k60s2.h>#include <intrins.h>#include "iic.h"typedef unsigned char uchar;typedef unsigned int uint;code uchar TAB[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf

2021-07-02 17:46:39 212

原创 蓝桥杯单片机设计与开发决赛-第五届-多功能事件记录器

这里的代码是主文件的代码,其他的头文件之前已经提供,下面的代码仅提供思路,不提供原理,如有错误请及时留言提醒。#include <stc15f2k60s2.h>#include <intrins.h>#include "ds1302.h"#include "iic.h"#include "onewire.h"#include <stdio.h>typedef unsigned int uint;code uchar TAB[] = {0xc0, 0x

2021-07-02 17:44:34 311

原创 蓝桥杯单片机设计与开发决赛-第四届

这里的代码是主文件的代码,其他的头文件之前已经提供,下面的代码仅提供思路,不提供原理,如有错误请及时留言提醒。#include <stc15f2k60s2.h>#include <intrins.h>#include "ds1302.h"#include "iic.h"typedef unsigned char uchar;typedef unsigned int uint;code uchar TAB[] = {0xc0, 0xf9, 0xa4, 0xb0, 0

2021-07-02 17:41:20 118

原创 蓝桥杯单片机设计与开发决赛-第三届-门禁系统

这里的代码是主文件的代码,其他的头文件之前已经提供,下面的代码仅提供思路,不提供原理,如有错误请及时留言提醒。#include <stc15f2k60s2.h>#include <intrins.h>#include "ds1302.h"#include "iic.h"typedef unsigned char uchar;typedef unsigned int uint;code uchar TAB[] = {0xc0, 0xf9, 0xa4, 0xb0,

2021-07-02 17:37:39 295

原创 蓝桥杯单片机设计与开发-底层驱动代码编写(iic,onewire,ds1302)

一.onewire.c及onewire.h的代码(输出整数温度)使用:unsigned char temp; temp = temp_read();#include <stc15f2k60s2.h>sbit DQ = P1^4; //单总线接口//单总线延时函数void Delay_OneWire(unsigned int t) //STC89C52RC{ while(t--);}//通过单总线向DS18B20写一个字节void Wr...

2021-07-02 17:04:36 3102 2

原创 蓝桥杯单片机设计与开发-初始说明

在前段时间参加了第十二届蓝桥杯单片机设计与开发的决赛,取的较好的成绩,所以有一部分经验总结和代码分析写下来记录一下,言语组织能力有限,比较通俗,希望已经报名的参赛者能获得想要的东西。第一点关于的是,单片机的选取:在淘宝或其它渠道可轻松购买,市场上有蓝色的板子和绿色的板子,以上次初赛和决赛的经验,最好是购买绿色的板子,其次是要跟商家获取资料,关于历年的蓝桥杯试题。最重要的一点是要验证各个模块是否能使用,像数码管,LED,按键是不会出现问题,主要要验证DS1302,DS18B20,EEPROM的官方代码

2021-07-01 21:41:56 951

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除