Search found 19 matches

by griiker
Mon Jul 02, 2018 3:07 pm
Forum: MegunoLink
Topic: Builder
Replies: 5
Views: 1352

Re: Builder

So how do I remove it? it is different from removing the monitor, and other visualizers.

the instructions only say to remove, but not how.

Thanks

griiker
by griiker
Sun Jul 01, 2018 11:26 pm
Forum: MegunoLink
Topic: Getting "unknown command" with button onclicksend
Replies: 8
Views: 1273

Getting "unknown command" with button onclicksend

I have tried all sorts of things to get this to work. I have tried cutting and pasting the Turtles example, scrutinizing the writing, and structure of the sketch, and I always get an error "unknown command" when I try to send an int variable using the button onclicksend. What gives? Here is the code...
by griiker
Sun Jul 01, 2018 9:12 pm
Forum: MegunoLink
Topic: Builder
Replies: 5
Views: 1352

Builder

I'm trying to use the builder to just display the interface panel. I noticed in the tutorial that I can remove the docker. How do I do that?
I also have another arduino side question for you that I will make another post for.
by griiker
Thu Jun 28, 2018 7:54 pm
Forum: MegunoLink
Topic: check box
Replies: 11
Views: 5458

Re: check box

I just found a solution, I have an If statement using a bool variable, I had to do this: if (!paramselect) instead of if (paramselect =false) to make it change to what the other radio button was doing.

I do appreciate your kind help

Thanks,

Griiker
by griiker
Thu Jun 28, 2018 4:14 am
Forum: MegunoLink
Topic: check box
Replies: 11
Views: 5458

Re: check box

This bol isnt working. I put in a function: void Cmd_SetBoolean(CommandParameter &Parameters) { Serial.print("Got new boolean:"); bool paramselect = (bool) Parameters.NextParameterAsInteger(); Serial.println(paramselect); } and I made a global variable: bool paramselect = 1; the sketch is supposed t...
by griiker
Thu Jun 28, 2018 1:00 am
Forum: MegunoLink
Topic: check box
Replies: 11
Views: 5458

Re: check box

Just one more thing

can I do something like this:

SerialCommandHandler.AddVariable(F("Setpoint3"), setpoint); // Setpoint3.Checked ? "3" : "6"

would that be okay?
by griiker
Thu Jun 28, 2018 12:40 am
Forum: MegunoLink
Topic: check box
Replies: 11
Views: 5458

Re: check box

Thanks Philr I'm not quite sure: Serial.print("Got new boolean:"); is this supposed to show up in megulink monitor? so if the megunolink is like this: !SetBoolean [IPCheckBox1.Checked ? "1" : "0"]\r will the myboolean be either a 1 of 0? bool myboolean = (bool) Parameters.NextParameterAsInteger(); T...
by griiker
Wed Jun 27, 2018 10:30 pm
Forum: Projects
Topic: Simple Digital Pin Control
Replies: 3
Views: 7414

Re: Simple Digital Pin Control

I would like to see the arduino code for this. I am having trouble getting radio buttons to work.
by griiker
Wed Jun 27, 2018 12:47 am
Forum: MegunoLink
Topic: check box
Replies: 11
Views: 5458

Re: check box

Hi, there is a nifty trick you can do to achieve this. Just enter this as the expression for a particular checkbox (in this case called IPCheckBox1). [IPCheckBox1.Checked ? "1" : "0"] When evaluated it will return a 0 or 1 depending on its status. Cheers Phil I'm a newbie as well. where do you put ...