Optimal solution: don't do it. You can spare a few resistors, cannot you?
Suboptimal solution #1: run the leds hot. leds at 15ma are roughly as bright as leds at 20ma or 25ma, etc.
Suboptinal solution #2: dynamically alter the display duration based on the number of segments lit. If you are lighting up two segments, "1" for example, display it for 1ms; if you are lighting up 5 segments ("5"), you display it for 2ms. This can be easily done with an array and loading up the timer offset / top in the isr.
Easy:
Optimal solution: don't do it. You can spare a few resistors, cannot you?
Suboptimal solution #1: run the leds hot. leds at 15ma are roughly as bright as leds at 20ma or 25ma, etc.
Suboptinal solution #2: dynamically alter the display duration based on the number of segments lit. If you are lighting up two segments, "1" for example, display it for 1ms; if you are lighting up 5 segments ("5"), you display it for 2ms. This can be easily done with an array and loading up the timer offset / top in the isr.
其实呢,我个人觉得没必要,但是公司里说机器弄一个电阻比弄8个电阻要快,所以了....
首先不管是不是公司要求,你觉得对开拓思路有没有帮助呢?然后才说是不是我自己的思路.当然,如果能有一种减少生产操作量,那何不是一种改善呢.
一周热门 更多>