I did make it a new library as the current lib is good as it is. I got it 
running last night using a timer interrupt switching 3 displays.

I have it set at 100hz switching at the moment, but the user may choose another 
freq if they desire. I'll test other freq.

It's quite nice as i need a tiny display for a 3 digit high temp thermometer.

Sent from my iPhone

On Aug 30, 2017, at 1:04 AM, Vasile Surducan 
<[email protected]<mailto:[email protected]>> wrote:

Matthew,
I think you do not need a new library for that, however a new library is always 
good for someone/something.
Multiplexing is time dependent by the application you run. The simplest way is 
to sweep the anode/cathode and keep them powered for about 1...3mS (depends if 
it's normal or superbright display  and the current you supply for it)

One quick and dirty example using delay library is here:  (the source at the 
end of the paper):
https://www.researchgate.net/publication/266860236_Increasing_the_efficiency_of_IO_usage_in_small_embedded_systems

However, in time dependent applications (like frequency measurements around 
50MHz) using software delay for digit display is a waste of time, so the 
library should look different.

good luck,
Vasile




[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
    Virus-free. 
www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>

On Wed, Aug 30, 2017 at 3:56 AM, Matthew Schinkel 
<[email protected]<mailto:[email protected]>> wrote:
I guess I didn't look close enough. The library does support anode displays.

Anyways, I'm working on a multiplexer lib so I may run more then one segment.

On Tuesday, August 29, 2017 at 7:09:51 PM UTC-4, Matthew Schinkel wrote:
Hi Guys,

The seven segment library currently only supports cathode displays. I'll be 
adding support for anode displays by adding a user constant, and inverting the 
output of seven_from_digit() procedure.

Matt.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to