cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F401 how to increase/decrease light density? Should work as a heartbeat

Krasimir Yordanov
Associate
Posted on May 24, 2017 at 10:59

Hello. We are trying to set a pin's light to increase and decrease progressively, should work as a heartbeat. Could you please tell us how we could do this? We've searched a few hours already, but could not find anything useful. Where should we look? what should we modify? thank you very much!

2 REPLIES 2
AvaTar
Lead
Posted on May 24, 2017 at 11:21

PWM for instance.

For projects I dealt with, these had been already too much effort for a heartbeat signal.

I simple blinking LED would do as well.

Posted on May 24, 2017 at 11:24

Maybe an inspiration:

http://www.efton.sk/STM32/breathl4.zip

=>

https://vimeo.com/168534620

 

Beware, barebones, on a 'L4 DISCO.

JW