HELP WITH STM32F - TWO DIGIT DISPLAY

1 post / 0 new
Willson Farock's picture

Offline

Joined: Apr 30, 2020

Replies: 0
HELP WITH STM32F - TWO DIGIT DISPLAY
April 30, 2020 - 9:04am

Hello guys! I hope you all are safe.

I'm doing a project with STM32F1036 that i need to make a two digit progressive counter with multiplexing displays. I put this on the code and the displays are counting toguether and not progressive:

for(k=0;k<100;k++){
            
            GPIOB-> ODR = TAB[k];
            
            HAL_Delay(20);   
            GPIOB-> BSRR = 1<<7;       
          GPIOB-> BSRR = 1<<8;
            HAL_Delay(20);

 

 

How can i make to them count like this?

 

Thanks for your attention,

 

W.F