MyOutput = %00011100_00110101
SXlee
Posts: 47
Hi all,
I have:
Setup into 6 groups leds, 2 lots of 2 leds and 4 lots of 3 leds.
I calculate the val of each group, i.e:
_
01 'group1
_---101-- 'group2
_001
'group3
00_
'group4
---111--_
'group5
000
_
'group6
How do I add them up to get:
MyOutput = %00011100_00110101
Lee
I have:
Leds PIN RBC OUTPUT ' LEDs on RB/RC
Setup into 6 groups leds, 2 lots of 2 leds and 4 lots of 3 leds.
I calculate the val of each group, i.e:
_
01 'group1
_---101-- 'group2
_001
'group3
00_
'group4
---111--_
'group5
000
_
'group6
How do I add them up to get:
MyOutput = %00011100_00110101
RBC = MyOutput
Lee
Comments
or is there a better way?
or is there a better way?
It would help if you post a schematic of what you have the SX wired up to.
Would also help if you post the whole program.
thank you for your time.
I have the SX wired up to 2 ULN2803As "Darlington transistor arrays",
that is one ULN2803A for RB0 - RB7 and one ULN2803A for RC0 - RC7.
I posted a schematic hoping for some input
THERE
but no input, so didn't bother posting the finished schematic with the ULN2803As in it.
That is the whole program so-far.
Regards SXlee.
My model in my head was:
Check_Inputs
Calculate_Groups
Update_Output
Now I think I only need:
Check_Input
Update_Output
I had a good idea of what I need for dealing with the input,
but couldn't see how to put info together for Updating the Outputs.
I think post #3 is OK
I need to do some moor on my SX28 Circuit.
Thanks for your time.
Regards SXlee.