Rank: Advanced Member
Groups: Registered
Joined: 5/31/2017(UTC) Posts: 67 Thanks: 1 times Was thanked: 8 time(s) in 8 post(s)
|
I trying to put together a project we're 1 momentary switch controls multiple digital output. Press once and the digital outputs close, press again and they digital outputs open.
The second part of the build is to have multiple digital inputs with each one having it's on colour control for a single RGB led which is in the push button from above. I'm not to sure how to develop this. ( part of my problem is I'm having is the the digital input is staying latched and I have to shut the program down to get it to normal state. ) which is driving me nuts, and why I'm seeking help. I will try a different computer to see if it a bug in the software or my laptop ( quiet possible).
I know how to set the colours in the arduino programing but not sure how it's done in this environment? Then how do I attach a given colour to a given input, there is only 1 RGB led being used. Eg. Input 1 displays orange, input 2 displays pink etc
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/11/2014(UTC) Posts: 661
Thanks: 1 times Was thanked: 109 time(s) in 104 post(s)
|
Let me know more about the issue with the switch getting stuck if you think its an embrio bug.
To represent a color that can be on or off you should make a node with 3 inputs and 3 outputs, 1 for each rgb value, and one activation input which when on passes the color value from the inputs to the outputs and when off sets all outputs to 0. You can make this node by creating a node definition or by making a reusable node group, it should be pretty easy to implement either way.
In your control agent drag a copy of this node for each of your colors. Set the rgb input values, connect a switch to the activation input, and connect the outputs to your led node, making sure those inputs are set to addative blend mode. So you will have multiple connections to each of your rgb led inputs but only one should be on at a time.
If that doesn't make sense or you get stuck let me know and I'll put together an example for you.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/31/2017(UTC) Posts: 67 Thanks: 1 times Was thanked: 8 time(s) in 8 post(s)
|
Sorry this is getting spend a little. Button problem appears to be only om laptop. Desktop is working fine. I will continue this button problem on the bugs page.
I have already tried the first part but button problem got me. Will try again in a couple of days. It sort of makes sense, still getting use to your terms and what they do.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/31/2017(UTC) Posts: 67 Thanks: 1 times Was thanked: 8 time(s) in 8 post(s)
|
I tried to do this with my desktop, it has worked so far.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/11/2014(UTC) Posts: 661
Thanks: 1 times Was thanked: 109 time(s) in 104 post(s)
|
I e-mailed you an example project. Wanted to let you know in case the zip file makes it get blocked.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/31/2017(UTC) Posts: 67 Thanks: 1 times Was thanked: 8 time(s) in 8 post(s)
|
I got that thanks, working may way through it. Getting use to your program.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.