RGB LED does not work ... at all.

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
iamwhoiam
Posts: 4
Joined: Mon May 14, 2012 5:31 pm

RGB LED does not work ... at all.

Post by iamwhoiam »

Hi there. This is simple. I have a simple "while 1" loop, and inside it, I have set the value "2" to PORTA, and to PORTA is connected an RGB LED... and it doesn't light AT ALL.

Ideas?

Thanks

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: RGB LED does not work ... at all.

Post by JohnCrow »

Hi
Are you using the FC5 macro? or writing it in FC4
RGB_Test_V1.fcf
(11 KiB) Downloaded 330 times
This is a flowcode 4 version
Simple RGB.fcf
(4 KiB) Downloaded 316 times
My flowcharts are set to use PortD but it can easilly be moved to Port B

Bit 1 = Red
Bit 2 = Green
Bit 3 = Blue

Dont forget you need a current control resistor for each colour, a single resistor in the negative line is not advisable, even though it may look like it will work :)
1 in 10 people understand binary, the other one doesn't !

iamwhoiam
Posts: 4
Joined: Mon May 14, 2012 5:31 pm

Re: RGB LED does not work ... at all.

Post by iamwhoiam »

JohnCrow wrote:Hi
Are you using the FC5 macro? or writing it in FC4
RGB_Test_V1.fcf
This is a flowcode 4 version
Simple RGB.fcf
My flowcharts are set to use PortD but it can easilly be moved to Port B

Bit 1 = Red
Bit 2 = Green
Bit 3 = Blue

Dont forget you need a current control resistor for each colour, a single resistor in the negative line is not advisable, even though it may look like it will work :)
Thanks, but I am talking about the limitations and bugs in the software; I have no doubt in the laws of physics. The LED is the simulated one, NOT a physical one.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: RGB LED does not work ... at all.

Post by JohnCrow »

Hi
The RGB led simulates fine in FC5.2

The component is not available in FC4 so has to be simulated using 3 seperate LEDs
Simple RGB V2.fcf
(6 KiB) Downloaded 381 times
It would be easier to see what you mean "it does'nt work at all" if you can post your flowchart.
1 in 10 people understand binary, the other one doesn't !

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: RGB LED does not work ... at all.

Post by DavidA »

Hi since this is discussing the RGB component in v5 ill move it to the v5 forums, if you require v5 forum membership please PM me with the last 6 characters of your v5 licence code

Post Reply