Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I use the component LCD_SEG,which added 7seg.The numbers to display changes somtimes.

   

How to make the displayed numbers blink?

   

Thanks first.

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You need to do the blinking manually: use a timer and a digit array of booleans. At timer interrupt check each digit boolean for blinking and if it should blink, clear/rewrite the digit's segments.

   

 

   

Bob

View solution in original post

0 Likes
4 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You need to do the blinking manually: use a timer and a digit array of booleans. At timer interrupt check each digit boolean for blinking and if it should blink, clear/rewrite the digit's segments.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Thank you,Bob.I used to make the problem complicated.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I recently had to do something similar using real 7 segment LED displays. Blinking, shutting on/off and display of colon where the properties I had to maintain (apart from the number/symbol to display). I defined an array of digit structures to hold the state and properties and a handful of APIs to encapsulate the access. Was not too difficult.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

I was just foolish on how to shut off the display of 7-segment.

   

In my project,the data I need to save is small,so I used a static variable.

   

But your advice did give me a lot of ideas.Think they will be very useful later.

0 Likes