Switch and Power Source Problem_STM8S103F
Hi,
I am working on a project, turning on an LED in push-pull mode when a switch in pull-up mode is pressed. The LED only lights up once. I am using IAR and C.
Everything works perfectly fine except that, sometimes when the LED is connected to power with the switch NOT pressed, the LED would flash.
Our group suspects it to be a problem of the circuit because it's a complicated circuit and we're only using some of its functions. But because it's my first time to use STM8S, I am not so confident that my program is flawless.
Could anyone helps me check if there's any problem with the program?
Thank you very much!
