资源描述:
《16点阵5种移位显示》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、16点阵5种移位显示#include#defineucharunsignedchar#defineuintunsignedint/*************************************************/sbithc595_ds=P2^0;sbithc595_shcp=P2^1;sbithc595_stcp=P2^2;sbitLS138_A=P1^0;sbitLS138_B=P1^1;sbitLS138_C=P1^2;sbitLS138_G=P1^3;sbitLEFT=P1
2、^4;//左移sbitRIGHT=P1^5;//右移sbitUP=P3^2;//上移sbitDOWN=P3^3;//下移sbitROLL=P3^4;//卷动ucharcodeBmp[][32]={{//电0xFD,0xFF,0xFD,0xFF,0xFD,0xEF,0x80,0x07,0xBD,0xEF,0xBD,0xEF,0x80,0x0F,0xBD,0xEF,0xBD,0xEF,0x80,0x0F,0xBD,0xEF,0xFD,0xFF,0xFD,0xFB,0xFD,0xFB,0xFE,0x03,0xFF,0xFF
3、},{//子0xFF,0xFF,0xC0,0x0F,0xFF,0xEF,0xFF,0xDF,0xFF,0xBF,0xFE,0x7F,0xFE,0xFB,0x00,0x01,0xFE,0xFF,0xFE,0xFF,0xFE,0xFF,0xFE,0xFF,0xFE,0xFF,0xFE,0xFF,0xFA,0xFF,0xFD,0xFF},{//信0xF7,0x7F,0xF7,0xBB,0xF0,0x01,0xEF,0xFF,0xEF,0xF7,0xC8,0x03,0xAF,0xFF,0x6F,0xF7,0xE8,0x03,
4、0xEF,0xFF,0xEC,0x07,0xED,0xF7,0xED,0xF7,0xED,0xF7,0xEC,0x07,0xED,0xF7},{//息0xFD,0xFF,0xFB,0xEF,0xE0,0x07,0xEF,0xEF,0xEF,0xEF,0xE0,0x0F,0xEF,0xEF,0xE0,0x0F,0xEF,0xEF,0xEF,0xEF,0xE0,0x0F,0xFD,0xFF,0xAE,0x7B,0xAF,0x6D,0x6F,0xED,0xF0,0x0F},{//工0xFF,0xFF,0xFF,0xF7,0
5、x80,0x03,0xFE,0xFF,0xFE,0xFF,0xFE,0xFF,0xFE,0xFF,0xFE,0xFF,0xFE,0xFF,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