how to clear 7segment (quad)

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
wahid
Posts: 4
Joined: Sat Nov 18, 2017 6:49 am
Has thanked: 2 times
Been thanked: 1 time
Contact:

how to clear 7segment (quad)

Post by wahid »

Hello every body. Hope every one will be fine.
This is my first post and I am new to flowcode. I need a little bit help.

I am using flowcode 6
in 7segment (quad) i want to blink it making all 4 digits on and off but in the menu there is no clear digits macro i see only show digits.
Clip.jpg
Clip.jpg (65.88 KiB) Viewed 2944 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: how to clear 7segment (quad)

Post by medelec35 »

Hi wahid,
Welcome to the forums.
Yes I do see what you mean.
The simulation is a bit misleading as it shows all on, but on actual hardware there will only ever be one on at a time.
I have posted a flowchart V1 that does not work with simulation, but will work on hardware.
Display on hardware will cycle on for 1sec then all off for 1 sec.
When you get more used to Flowcode then the better method of controlling LED would be via timer interrupt.
See example 2in thisWiki link

Martin
Attachments
LED Display V1.fcfx
(6.19 KiB) Downloaded 195 times
Martin

wahid
Posts: 4
Joined: Sat Nov 18, 2017 6:49 am
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: how to clear 7segment (quad)

Post by wahid »

Thanks medelec35.
In lot of cases we are not actually interested in wasting time to assemble hardware because we are actually going to make some other project and these are only for knowledge. So we are interested to see it in simulation only. So the team who is creating flowcode software should think about it.
For this problem your solution is perfect. We can switch off the port pin which is controlling the digit.
A lot of thanks once again.

Post Reply