I2C 7 Segment Display Module

A forum where Flowcode v7 user created components can be shared, discussed and reviewed.

Moderator: Benj

johnsondav
Posts: 186
Joined: Thu Jun 28, 2012 7:29 pm
Location: Durham
Has thanked: 92 times
Been thanked: 181 times
Contact:

I2C 7 Segment Display Module

Postby johnsondav » Wed Jan 24, 2018 3:49 pm

Hi Everyone

I have started developing a I2C Quad 7 segment display module. The hardware is working fine, able to send data and display numbers on the module. The 7 Segment display module is continuing from the I2C keyboard idea. The display will be an intelligent display able to take:
- Byte
- ULONG
- and hopefully float numbers

What I am trying to achieve is the ability to send any of the above data types directly to the display and it will sort out which bits goes where and show if they are x1; x10; x100 etc. The user will also be able to control brightness and scroll left-right from the module itself - scroll keys.

Q. The simulation of the component, how do I simulate each of the segments?

This is what I have deduced so far. Looking at the component shiped with FC7;
7SegComp.png
7SegComp.png (4.61 KiB) Viewed 1418 times


It is made up of lots of individual rounded squares. I think that is how it is done.

My attempt is this:
7Seg_Comp_Dev1.png
7Seg_Comp_Dev1.png (3.33 KiB) Viewed 1418 times


I can see each is listed within the properties as shown here:
7Seg_Comp_Dev2.png
7Seg_Comp_Dev2.png (12.55 KiB) Viewed 1418 times


Q. Do I assign a variable to each of these rounded rectangles, so I can change their colour during simulation when communicating to the module, there by displaying what should be displayed on the module?

I am a little confused so far as the how to get this component designed correctly, any help would be very much appreciated.

Regards
Dave
These users thanked the author johnsondav for the post:
Benj (Wed Jan 24, 2018 6:54 pm)
Rating: 5.26%
 

User avatar
Benj
Matrix Staff
Posts: 14467
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4531 times
Been thanked: 4200 times
Contact:

Re: I2C 7 Segment Display Module

Postby Benj » Wed Jan 24, 2018 6:53 pm

Hi Dave,

Looks like your on the right lines there. Here's a quick demo to show you how to set the colour of the individual primitive components.

ObjColourDemo.fcfx
(10.62 KiB) Downloaded 82 times
These users thanked the author Benj for the post:
johnsondav (Wed Jan 24, 2018 8:15 pm)
Rating: 5.26%
 

johnsondav
Posts: 186
Joined: Thu Jun 28, 2012 7:29 pm
Location: Durham
Has thanked: 92 times
Been thanked: 181 times
Contact:

Re: I2C 7 Segment Display Module

Postby johnsondav » Wed Jan 24, 2018 8:18 pm

Hi Ben

Yes, got it. Phew. I wasn't sure, but your brilliant example has explained a lot. I think I can now proceed with the component simulation development. Although, I imagine it will take me a while, as this looks challenging.

Very much appreciate your help.

Regards
Dave