ccurran689
Posts: 13
Joined: Sat Sep 26, 2015 9:55 am

Webiopi; using more than one gpio pin

Wed Nov 25, 2015 9:15 am

I have used webiopi to connect to my remote control car over wifi, at the minute I have the website setup with a turn right and turn left button( these only require one gpio to be turned on) as can be seen below. However when I try to make a forward button which requires 2 gpio pins to be turned on it will always ignore the second gpio, I have spent hours trying varies methods and there unfortunately isn't much info on it. Any help would be appreciated.


webiopi().ready(function() {
webiopi().setFunction(14,"out");
var content, buttonright;
content = $("#content");
buttonright = webiopi().createGPIOButton(14,"Right");
content.append(buttonright);



webiopi().setFunction(23,"out");
var content, buttonleft;
content = $("#content");
buttonleft = webiopi().createGPIOButton(23,"Left");
content.append(buttonleft);

webiopi().setFunction(18,"out");
webiopi().setFunction(14,"out");
var content, buttonforward;
content = $("#content");
buttonforward = webiopi().createGPIOButton(18,14,"forward");
content.append(buttonforward);






});

ccurran689
Posts: 13
Joined: Sat Sep 26, 2015 9:55 am

Re: Webiopi; using more than one gpio pin

Wed Nov 25, 2015 1:17 pm

Resolved.

herriejr
Posts: 5
Joined: Thu Feb 07, 2013 9:01 am

Re: Webiopi; using more than one gpio pin

Tue Dec 01, 2015 12:16 pm

It might be interesting for future readers to tell what the problem was and how you resolved it...

Return to “Java”