Results 1 to 10 of 14
Thread: 7 segment decimal point
-
02-27-2016, 06:28 AM #1
- Join Date
- Oct 2006
- Location
- Perth, Australia
- Posts
- 263
7 segment decimal point
Hi ,
i'm trying to hardwire the decimal point , how can I do this using the master card or display card???
Have had a look at a forumn post on opencockpits but it didn't make any sense.
Thanks
MichaelA320 Home Simulator LHA435
- P3dv4.5 - i7 - GTX970 - Fly Elise - ASN - Black Marble
-
02-27-2016, 12:38 PM #2
Re: 7 segment decimal point
Connect the DP pin (of the 7-segment digit) -with a wire- to an output of your Master card (without a resistor).
Nico
-
02-27-2016, 06:09 PM #3
Re: 7 segment decimal point
Hello,
Is there a way to dimm dot point together with 7-segment digits? While I dimm digits, dots stay bright!
Thanks.
Simon
-
Post Thanks / Like - 0 Thanks, 1 Likes, 0 Dislikeskiek liked this post
-
02-28-2016, 01:58 PM #4
- Join Date
- Jan 2012
- Location
- Bexleyheath,Kent UK
- Posts
- 102
Re: 7 segment decimal point
if you can settle a fixed "dimness" simply pop in a resistor !
JohnOld, tired & broke (shouldn't be allowed out really)
-
02-28-2016, 06:18 PM #5
Re: 7 segment decimal point
-
02-28-2016, 06:18 PM #6
Re: 7 segment decimal point
-
02-29-2016, 04:03 AM #7
- Join Date
- Oct 2006
- Location
- Perth, Australia
- Posts
- 263
Re: 7 segment decimal point
got it
Thanks
MichaelA320 Home Simulator LHA435
- P3dv4.5 - i7 - GTX970 - Fly Elise - ASN - Black Marble
-
03-01-2016, 09:27 AM #8
Re: 7 segment decimal point
Hi,
John, that is exactly how I solved the dimming problem at the moment but I do not like it that much!
I have read many manuals on how to dimm OC 7 segment displays and dot point but none actually worked for DP?!
I am interested in Nico's approach. It makes sense to use PWM, I just donīt have the idea how to start programing that in SIOC? Is possible to learn more about PWM in SIOC?
Thank you,
Simon
-
03-02-2016, 04:25 AM #9
Re: 7 segment decimal point
Hi Simon,
I have not tested it yet, but basically it goes like this:
Code:Var 0 Value 0 { &dimcontrol = 0 &dimcontrol = TIMER 1 0 4 // 4 means 40 msec } Var 1 name dimvalue value 3 // values between 1 and 4: 1=25%, 2=50%, 3=75%, 4=100% Var 2 name DPvalue // 0 or 1 Var 10 name dimcontrol Link SUBRUTINE { // is called 25 times per second &DP = &DPvalue IF &DPvalue == 1 { IF &dimvalue <= 3 // EDIT changed 4 into 3! { IF &dimvalue >= 1 { &DP = DELAY 0 &dimvalue // determines the width of the pulse (PWM) } } } } Var 100 name DP Link IOCARD_OUT Output 78
After I have tested it, to make sure it works fine, I'll add it to my collection of example SIOC scripts at my Howto SIOC page.
NicoLast edited by kiek; 03-02-2016 at 06:44 PM.
-
Post Thanks / Like - 2 Thanks, 1 Likes, 0 Dislikes
-
03-03-2016, 04:28 AM #10
Re: 7 segment decimal point
Hi Nico,
Thank you for this PWM example code, I will try it.
I basically learned to "sioc" on your Howto SIOC page. It was and still is a great help, itīs actually the Rosetta Stone of SIOC
Thanks,
Simon
-
Post Thanks / Like - 0 Thanks, 1 Likes, 0 Dislikeskiek liked this post
Search Womans from your town for night
HDG preselect function