OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 2883|回复: 0

数码管只显示一位,其余的不显示,不知道原因,求指导

[复制链接]

5

主题

6

帖子

0

精华

初级会员

Rank: 2

积分
86
金钱
86
注册时间
2019-8-1
在线时间
27 小时
发表于 2019-9-7 07:35:38 | 显示全部楼层 |阅读模式
3金钱
#include "stm32f10x.h"
#include "delay.h"
#include "shuma.h"
//#include "KEY.h"

//u8 table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
//u8 disbuf[4]={0,0,0,0};

int main()
{  
        shuma_init();
        while(1)
        {
                GPIO_Write(GPIOA,0xfe);
                GPIO_Write(GPIOC,0xc0);
                delay_ms(10);
                GPIO_Write(GPIOA,0xff);
                GPIO_Write(GPIOA,0xfd);
                GPIO_Write(GPIOC,0xf9);
                delay_ms(10);
                GPIO_Write(GPIOA,0xff);
                GPIO_Write(GPIOA,0xfb);
                GPIO_Write(GPIOC,0xa4);
                delay_ms(10);
                GPIO_Write(GPIOA,0xff);
                GPIO_Write(GPIOA,0xf7);
                GPIO_Write(GPIOC,0xb0);
                delay_ms(10);
        }
       
}

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-6-9 20:54

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表