Hi Joe,
I think the problem is in the pauses.
The first 3 digits are on for 2ms each, then the last digit is on for 7ms (2ms + 5ms in the main loop). So the dutycycles are around 15% for the 3 digits and over 50% for digit 4.
Removing the 5ms pause in the Mainloop should make them all the same brightness with 25% duty.
But you still need a Time Base if you want to read RPM, and you'll need to do some math to convert the result which will cause small variances in the brightness as the delays thru the loop change.
This sounds like the perfect job for Instant Interrupts.
I just happen to have some hardware available, that's hooked up the same way as the meLabs 7-segment demo.
http://www.picbasic.co.uk/forum/show...?p=58076#58076
Feel like trying it a different way?
<br>
Bookmarks