17年10个月前IP:未同步
84169
3楼
那本人再抄一个8位流水灯。
#include <avr/io.h>
int main(void)
{  
   int i,j;
    char  temp;
    DDRA=0xff;
    PORTA=0b11001100;
    while(1)
   {
   temp=PORTA;
   PORTA=PORTA<<1;
  
    if(temp=PORTA & 0b10000000)
    {
     PORTA |=(1<<0);
    }
for(i=0;i<50;i++)
  {
  for(j=0;j<50;J++);

}

}
//没抄错吧?呵呵
评论
文号 / 84169

十步芳草
名片发私信
学术分 0
总主题 29 帖总回复 174 楼拥有证书:笔友
注册于 2006/03/11 14:30:50最后登录 2020/06/09 19:53:53
主体类型:个人
所属领域:无
认证方式:邮箱
IP归属地:0

个人简介

暂未填写
笔记
{{note.content}}
{{n.user.username}}
{{fromNow(n.toc)}} {{n.status === noteStatus.disabled ? "已屏蔽" : ""}} {{n.status === noteStatus.unknown ? "正在审核" : ""}} {{n.status === noteStatus.deleted ? '已删除' : ''}}
  • 编辑
  • 删除
  • {{n.status === 'disabled' ? "解除屏蔽" : "屏蔽" }}
我也是有底线的