STMicroelectronics STM8 Manual page 81

Table of Contents

Advertisement

n = ((value / 10) % 10);
GPIO_Write(GPIOD, num[n]);
GPIO_Write(GPIOC, 0xB0);
break;
}
case 4:
{
n = (value % 10);
GPIO_Write(GPIOD, num[n]);
GPIO_Write(GPIOC, 0x70);
break;
}
}
seg++;
if(seg > 4)
{
seg = 1;
}
TIM4_ClearFlag(TIM4_FLAG_UPDATE);
Demo
Video link:
https://youtu.be/Sa20Hf2N4gE

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM8 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF