您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 项目/工程管理 > 吴鉴鹰单片机项目实战精讲之基于单片机驱动12864的武术
吴鉴鹰单片机项目实战精讲之基于单片机驱动12864的武术动画的显示小的时候鹰哥也是一个武术迷,看到电视上面的武侠人物飞檐走壁,很是羡慕,于是用小刀将竹子削成宝剑勤学苦练,梦想有朝一日行走江湖,英雄救美,当上武林盟主,领取白富美,登上人生巅峰!只可惜那只是一个美好的儿时的梦想!程序代码如下:1./***************************************/2./******************************************************3.*程序:LCD12664液晶显示原理4.*5.**这一讲的主要内容:LCD12664液晶显示原理6.**功能描述:对吴鉴鹰武术指导的LCD12864的显示7.**输入:8.**液晶:Proteus元件库—AMPIRE128X64(无字库)9.**内容:显示动画——在练武术的女子10.**输出:11.**12.**全局变量:13.**调用模块:14.**15.**作者:吴鉴鹰16.**日期:14.03.1117.18.备注:有什么错误的地方,欢迎各大烧友指正19.20.O(∩_∩)O~21.*******************************************************/22.23.24.#includeAT89X52.h25.#includeintrins.h26.//#includeWUJIANYING1.h27.//#includeWUJIANYING2.h28.//#includeWUJIANYING3.h29.//#includeWUJIANYING4.h30.//#includeWUJIANYING5.h31.//#includeWUJIANYING6.h32.//#includeWUJIANYING7.h33.//#includeWUJIANYING8.h34.//#includeWUJIANYING9.h35.36.#defineucharunsignedchar37.#defineuintunsignedint38.39.#defineLCD_DATABUS_OUTP0//LCD12864的8位数据口40.41.sbitLCD_RS_OUT=P2^2;//RS为0---命令;1----数据42.sbitLCD_RW_OUT=P2^1;//LCD_RW_OUT为1---写;0---读43.sbitLCD_EN_OUT=P2^0;//使能端44.sbitLCD_CS1_OUT=P2^4;//片选1低电平有效,控制左半屏45.sbitLCD_CS2_OUT=P2^3;//片选1低电平有效,控制右半屏46.47.unsignedcharcodeWJY_PAINT1[][64]={48./*--调入了一幅图像:D:\Desktop\新建文件夹(2)\1.bmp--*/49./*--调入了一幅图像:C:\Users\Administrator\Desktop\12864武术\图片1\图片1.bmp--*/50./*--宽度x高度=128x64--*/51.0x00,0x00,0xC0,0xE0,0x20,0x30,0x18,0x0E,0x8E,0x8C,0x38,0x30,0x70,0xE0,0xC0,0x40,52.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,53.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,54.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,55.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,56.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,57.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,58.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,59.0x00,0x00,0x03,0x07,0x0C,0x0C,0x0C,0x0C,0x1A,0x33,0x60,0xEC,0xC2,0xC0,0x01,0x03,60.0x02,0x04,0x0C,0x18,0x30,0x60,0xC0,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,61.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,62.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,63.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,64.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,65.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,66.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,67.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x06,0x1E,68.0x38,0x70,0xE0,0x80,0x00,0x00,0x01,0x01,0x03,0x06,0x0C,0x1C,0x30,0x70,0xE0,0xC0,69.0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,70.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,71.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,72.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,73.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,74.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,75.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,76.0x00,0x00,0x00,0x03,0x07,0x0E,0x08,0x18,0x30,0x60,0x80,0x80,0x00,0x00,0x00,0x01,77.0x01,0x03,0x06,0x0E,0x1C,0x38,0x70,0xC0,0xC0,0x80,0x00,0x00,0x80,0x00,0x00,0x00,78.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,79.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,80.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,81.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,82.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,83.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,84.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x02,0x06,0x06,85.0x1C,0x3C,0xB8,0xF0,0x60,0xC0,0xC0,0x80,0x01,0x01,0x19,0x19,0x03,0x03,0x07,0xC6,86.0xEE,0xEC,0x3C,0xF0,0xF0,0xF0,0xB0,0xB0,0x30,0x20,0x20,0x20,0x20,0x20,0x20,0x20,87.0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x30,0x20,0x30,0x30,0x30,0x10,0x10,0x18,88.0x18,0x18,0x18,0x08,0x08,0x0C,0x88,0x0C,0x8C,0x8E,0x86,0xC6,0x46,0x46,0xC2,0xC6,89.0xC6,0xC6,0xC6,0xC6,0xC6,0x66,0x66,0x66,0x66,0x6E,0x6E,0x66,0x6C,0x6C,0x7C,0x7C,90.0x74,0x74,0x74,0x64,0x26,0x36,0x36,0x36,0x36,0x3E,0x1E,0x1E,0x0E,0x00,0x00,0x00,91.0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0xF8,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,92.0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xC0,0x60,93.0x70,0x38,0x1F,0xAF,0xFC,0x38,0x31,0x01,0x0B,0x16,0x1C,0x18,0x30,0xF0,0xE0,0x3F,94.0x37,0x7D,0xFF,0xC3,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,95.0x00,0x00,0x00,0x04,0x0C,0x0C,0x8C
本文标题:吴鉴鹰单片机项目实战精讲之基于单片机驱动12864的武术
链接地址:https://www.777doc.com/doc-769355 .html