单片机8*8点阵大字向下移动怎么弄 我程序那里错了?
#includevoiddelay1ms(){unsignedinti;for(i=0;i<255;i++);}voidmain(){unsignedcharled[]=...
#include
void delay1ms() { unsigned int i; for(i=0;i<255;i++); } void main() { unsigned char led[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x22,0x14,0x08,0x3E,0x08,0x08,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; unsigned char w; int i,a; /*w是行输入 i是列输入*/ while(1) { w=0x01; for(a=0;a<16;a++); { w=0x01; for(i=a;i<8+a;i++) { P1=w; P0=~led[i]; delay1ms(); w<<=1; } } } }
那里错了 求哥哥姐姐帮个忙 展开
void delay1ms() { unsigned int i; for(i=0;i<255;i++); } void main() { unsigned char led[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x22,0x14,0x08,0x3E,0x08,0x08,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; unsigned char w; int i,a; /*w是行输入 i是列输入*/ while(1) { w=0x01; for(a=0;a<16;a++); { w=0x01; for(i=a;i<8+a;i++) { P1=w; P0=~led[i]; delay1ms(); w<<=1; } } } }
那里错了 求哥哥姐姐帮个忙 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询