0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
--
You received this message because you are subscribed to a topic in the Google Groups "WebIOPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webiopi/vt4JMSOFkG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webiopi+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "WebIOPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+u...@googlegroups.com.
Its is possible to change from "switch" to pulse button?i wanna control wireless power outlets, but im only need pulse out from mcp23017. If i use switch, the remote jump to programm mode.
--
--
Hi MichalCannot test this at the moment no pi, I am on holiday, think script.py looks ok but you still had some misplaced } in html,and you miss refresh line, you have to take more care... try following:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content = "height = device-height, width = 420, user-scalable = no" /> <title>WebIOPi | Demo</title> <script type="text/javascript" src="/webiopi.js"></script> <script type="text/javascript"> webiopi().ready(function() { var content, button; content = $("#content"); // create a button which call MCP0_0 button = webiopi().createButton("macro0", "LED 9 OFF", callMacro_MCP0_0); content.append(button); // append button to content div webiopi().setClass("macro0", "OFF"); //set starting state webiopi().refreshGPIO(true); }); // function to call the macro in the python script to toggle the state of (mcp0 output 0) function callMacro_MCP0_0(){ webiopi().callMacro("setmcp0", 9); callMacro_mcp_State() } // function that will check the state of the output and change the color of the button etc function callMacro_mcp_State(){ var args = [0] webiopi().callMacro("getmcp0", args, macro_mcp_State_Callback); } function macro_mcp_State_Callback(macro, args, data){ p0 = data.split(" ")[0]; if (p0==1){ webiopi().setClass("macro0", "ON"); webiopi().setLabel("macro0", "LED 9 ON");} else{ webiopi().setClass("macro0", "OFF"); webiopi().setLabel("macro0", "LED 9 OFF");} } setInterval ("callMacro_mcp_State()", 3000);{ } </script> <style type="text/css"> button { display: block; margin: 5px 5px 5px 5px; width: 160px; height: 45px; font-size: 24pt; font-weight: bold; color: white; } .OFF { display: block; background-color: black; margin: 0px 0px 0px 4px; width: 129px; height: 40px; border-radius:10px; font-size: 8pt; font-weight: 600; } .ON { display: block; background-color: blue; margin: 0px 0px 0px 4px; width: 129px; height: 40px; border-radius:10px; font-size: 8pt; font-weight: 600; } </style> </head> <body> <table><tr><td id="content">test</td></tr></table> <div id="content" align="center"></div> </body> </html>Toshi
Hi,I have a GPIO expansion board using an MCP23017 IC. I usually use a python script and i2c to control this, but would like to be able to call functions or scripts vi the webiopi interface.I have read some documentation on https://code.google.com/p/webiopi/wiki/MCP230xx and have added the DEVICES section to the config file, however im not sure where to add the other section. DO I create my own python script for this? Or do I add it another py script?If someone could provide me with some documentation or an example script and how to call it, that would be great.Thanks in advance.
Hi Martin
After you have it working you may want to try this different method which does the same same thing but without calls to script.py https://groups.google.com/d/msg/webiopi/dOX2L6QUp5A/Yl2JKZh_hWcJ
ToshiAnd also expander ports will go from 0 to 7. Everything else will be the same.
--
You received this message because you are subscribed to a topic in the Google Groups "WebIOPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webiopi/vt4JMSOFkG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webiopi+u...@googlegroups.com.
Send config, code and log
--
You received this message because you are subscribed to the Google Groups "WebIOPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+u...@googlegroups.com.
mcp0 = webiopi.deviceInstance("mcp7") ## retrieve device named "mcp7" in configuration filethen change all instances of LED_9 to say LED_7 in both script.py and index.html - as Michel said the expander pins will be 0 - 7 not 0 - 15 on a mcp23017Then your button should change the state on pin 7 on the expander 0x27
While I was writing this Saw Trouch's post and agree if after trying this you still have problems post code and log and also config file.
Toshi
Run webiopi in debug mode from bash and copy what it produces. This would be the easiest way.
--
You received this message because you are subscribed to a topic in the Google Groups "WebIOPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webiopi/vt4JMSOFkG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webiopi+u...@googlegroups.com.
Hi Marti
@webiopi.macro
def getmcp7(arg0):
p0 = int(mcp7.digitalRead(7))
p1 = int(mcp7.digitalRead(8))
print (p0)
print (p1)
return ("%s" % (p0))
return ("%s" % (p1))For 1 button pin 4 you need
@webiopi.macro def getmcp7(arg0): p0 = int(mcp7.digitalRead(4)) print (p0) return ("%s" % (p0))Index.htmlChange the following in red bold//create a button which calls MCP7_4 button = webiopi().createButton("macro4, "MCP7_4 On", callMacro_MCP7_4); content.append(button); //append button to content div webiopi().setClass("macro4","On"); //set starting statefunction callMacro_MCP7_4(){ webiopi().callMacro("setmcp7",4); callMacro_mcp_State() }// Call the macro getmcp7 in script.py and return in callback 0 or 1 function callMacro_mcp_State(){ var args = [0] // think like arg0, arg1, arg2 etc webiopi().callMacro("getmcp7", args, macro_mcp_State_Callback); } // check returned 0 or 1 from above function and assign On or Off color and text function macro_mcp_State_Callback(macro, args, data){ p0 = data.split(" ")[0]; if (p0==1){ webiopi().setClass("macro4", "ON"); webiopi().setLabel("macro4", "mcp7_4 On"); } else{ webiopi().setClass("macro4", "OFF"); webiopi().setLabel("macro4", "mcp7_4 Off"); } setInterval ("callMacro_mcp_State()", 3000);{ }In script.pyIf you want to check more than 1 pin you would add code like this@webiopi.macro def getmcp7(arg0, arg1, arg2): p0 = int(mcp7.digitalRead(0)) p1 = int(mcp7.digitalRead(1))p2 = int(mcp7.digitalRead(2))print (p0, p1, p2) return ("%s %s %s" % (p0, p1, p2))and check them in same way in Index.htmlHope it helpsToshi
Toshi,
Just out of curiosity as I can't figure it out. What does '%s' % do in macro?
One of Python's coolest features is the string format operator %. This operator is unique to strings and makes up for the pack of having functions from C's printf() family. Following is a simple example:
#!/usr/bin/python print "My name is %s and weight is %d kg!" % ('Zara', 21)
When the above code is executed, it produces the following result:
My name is Zara and weight is 21 kg!
Here is the list of complete set of symbols which can be used along with %:
more at http://www.tutorialspoint.com/python/python_strings.htm
--
You received this message because you are subscribed to the Google Groups "WebIOPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+u...@googlegroups.com.
Embeds the values of p0 p1 p2 etc into a string - then your sending that string to index.html which then reads each element of the string and puts the result back into p0 p1 p2 etc for more info try googling What does '%s' % do
That's cool. Thanks boys. I'll test it when I get the chance.
Embeds the values of p0 p1 p2 etc into a string - then your sending that string to index.html which then reads each element of the string and puts the result back into p0 p1 p2 etc for more info try googling What does '%s' % doToshi
--
I've got question about HTML side. What I'm testing at the moment is one physical button controlling one diode and one software button (controlling diode and indicating its status on or off). Everything works fine until I turn the diode on with physical button before refreshing HTML. In this case diode is lid on but software button does not reflect this on HTML. Is this normal behaviour of software button or should it get diode status straight away?
I too noticed that Michal..... What I intend to do at a later date is... after establishing my output change... electronically create a new input on my GPIO inputs to drive the change of colour to the button that created the condition.
I can replicate your issue at the moment using the devices monitor. So, I too would be interested in knowing how to resolve that issue.
Martin
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4259 / Virus Database: 3705/7121 - Release Date: 02/24/14
Martin
Whilst I am switching a relay, I could also switch one of the open collector outputs and feed that back in via a 100K resistor to pull the GPIO pin or add an external relay triggered by the on-board relay then trigger one of the GPIO via a 100K resistor to 0V.
Either is possible. Now that I have an understanding of the MCP23008 I am beginning to like this add-on board. I’ve yet to correct my syntax and try things out. But hey.. it’s all part of the learning process. I’m in my late 40’s now and my concentration span isn’t what it was. When I was in college back in 1987 I only got as far as the TTL 74 series logic gates. I’m quite excited about what is actually achievable with change out of £50 worth of bits and some priceless input from you guys!
Martin
From: web...@googlegroups.com [mailto:web...@googlegroups.com] On Behalf Of Toshi Bass
Sent: 25 February 2014 00:10
To: web...@googlegroups.com
Subject: Re: Controlling MCP23017 with webiopi
Martin
You have the right idea You don't put voltage onto you led connected to an pin set to output you apply voltage to an input pin and then in software check the input when it turns from ) to 1 then switch the output from 0 to 1 but I suggest you research how to connect a physical switch to a input because you should limit the current flow and tie the pin high or low or you will have a floating input when no voltage is present resulting in sometimes 1 sometimes 0
Toshi
--
You received this message because you are subscribed to a topic in the Google Groups "WebIOPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webiopi/vt4JMSOFkG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webiopi+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Toshi
All corrected other than using 4. I’m using 7 which is relay 1.
After rebooting the pi and opening the webpage http://192.168.1.51:8008 (8008 Because that’s where i wanted it so it wouldn’t collide with other port forwards I have in place) I get the log in, I haven’t changed from default. After entering the details and clicking on log in I’m getting just a blank page. I have viewed the source of the page and all seems to be fine.
By using my DDNS... The address is http://readingfire.zapto.org:8008 I get the same result.
Have you any ideas?
From: web...@googlegroups.com [mailto:web...@googlegroups.com] On Behalf Of Toshi Bass
Sent: 24 February 2014 22:47
To: web...@googlegroups.com
Subject: Re: Controlling MCP23017 with webiopi
Hi Marti
--
You received this message because you are subscribed to a topic in the Google Groups "WebIOPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webiopi/vt4JMSOFkG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webiopi+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I have one error...
Uncaught Syntax Error.
In debug within the terminal window I have a few lines that error. Error 98 Address already in use.
From: web...@googlegroups.com [mailto:web...@googlegroups.com] On Behalf Of Toshi Bass
Sent: 25 February 2014 18:48
To: web...@googlegroups.com
Subject: Re: Controlling MCP23017 with webiopi
Marti
To help trace fault in html using chrome, go top right icon like 3 bars - Tools - Javascript console and of course you are running webiopi in debug mode so you can see en errors it throws up sudo webiopi -d -c /etc/webiopi/config
Toshi
--
You received this message because you are subscribed to a topic in the Google Groups "WebIOPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webiopi/vt4JMSOFkG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webiopi+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4259 / Virus Database: 3705/7124 - Release Date: 02/25/14
Usualy Error 98 Address already in use. means you already have an instance of webiopi running so you cannot start another one, try stopping webiopi then starting it again or worst case reboot the pi, I say usualy because I have no idea what effect using 8080 will have,
Re syntax error there should be more info than that like line number were the error is, if your stuck post the entire screen.
Toshi
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 10477/python3
pi@pidev ~ $ ps aux | grep 10477
root 10477 0.1 2.7 42420 12232 ? Sl Feb24 1:51 /usr/bin/python3 -m webiopi -d -l /var/log/webiopi -c /etc/webiopi/config
it may happen you just have to stop the background service :
sudo /etc/init.d/webiopi stop
sometimes, it crashed and do not respond, so you need to kill it.
$ sudo kill -9 10477
where 10477 refers to the process ID (PID) found with netstat/ps commands.
Toshi
--
You received this message because you are subscribed to the Google Groups "WebIOPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+u...@googlegroups.com.
I have stopped the service starting upon boot. I have also changed the port back to 8000. Netstat does not produce anything either on Port 8000 or 8008.
pi@raspberrypi ~ $ sudo webiopi –d -c /etc/webiopi/config
File”/usr/local/lib/python3.2/dist-packages/WebIOpi-0.6.0-py3.2.linux-armv6l.egg/webiopi/__main__.py”, line 73, in <module>
main(sys.argv)
File”/usr/local/lib/python3.2/dist-packages/WebIOpi-0.6.0-py3.2.linux-armv6l.egg/webiopi/__main__.py”, line 67, in main
Server = Server(port=port, configfile=configfile)
File”/usr/local/lib/python3.2/dist-packages/WebIOpi-0.6.0-py3.2.linux-armv6l.egg/webiopi/serv er.py, line 146, in__init__
Self.http_server = http.HttpServer(self.host, http_port, self.restHandler, context, docroot, index, auth)
File”/usr/local/lib/python3.2/dist-packages/WebIOpi-0.6.0-py3.2.linux-armv6l.egg/webiopi/protocols/http.py”, line 38, in __init__
BaseHTTPServer.HttpServer.__init__(self, (“”, port), HttpHandler)
File”/usr/local/lib/python3.2/socketserver.py” line 419 in __init__
self.server_bind()
File”/usr/local/lib/python3.2/http/server.py”, line 132 in server_bind
Socketserver.TCPServer.server(self)
File”/usr/local/lib/python3.2/socketserver.py” line 430, in server_bind
self.socket.bind(self.server_address)
socket.error: [Errno 98] Address already in use
From: web...@googlegroups.com [mailto:web...@googlegroups.com] On Behalf Of Eric PTAK
Sent: 25 February 2014 22:37
To: web...@googlegroups.com
Subject: Re: Controlling MCP23017 with webiopi
You can have a webiopi instance running on port 8000 or anything else.
--
You received this message because you are subscribed to a topic in the Google Groups "WebIOPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webiopi/vt4JMSOFkG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webiopi+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Also from the javascript console I get:
Uncaught SyntaxError: Unexpected identifier
In the javascript console follow the line to the right hand side you should see line number were error is, also you can click Sources that should show you the line were problem is.
Uncaught SyntaxError: Unexpected identifier
if you cannot spot it Post your index.html file
Re your "address already in use" maybe Trouch can spot something from your post I don't know.
On the right hand side it says 192.168.1.51/:22
Is this referring to line 22 within index.html?
Martin
From: web...@googlegroups.com [mailto:web...@googlegroups.com] On Behalf Of Toshi Bass
Sent: 26 February 2014 17:40
To: web...@googlegroups.com
Subject: Re: Controlling MCP23017 with webiopi
Martin
--
You received this message because you are subscribed to a topic in the Google Groups "WebIOPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webiopi/vt4JMSOFkG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webiopi+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Weird.
I did exactly the same as you. And the previous was all it produced.
Just incase I have messed up my html file after editing... I’ll attach it again.
MCP7 ( 23008 ) Pin 7 The relay I am trying to switch
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content = "height = device-height, width = 420, user-scalable = no" /> | |
<title>WebIOPi | Demo</title> | |
<script type="text/javascript" src="/webiopi.js"></script> | |
<script type="text/javascript"> | |
webiopi().ready(function() { | |
var content, button; | |
content = $("#content"); | |
// create a "SWITCH" labeled button for GPIO 21 | |
button = webiopi().createGPIOButton(21, "SWITCH"); | |
content.append(button); // append button to content div | |
// create a "LED" labeled button for GPIO 25 | |
button = webiopi().createGPIOButton(25, "LED1"); | |
content.append(button); // append button to content div | |
//create a button which calls MCP7_7 | |
button = webiopi().createButton("macro7, "MCP7_7 On", callMacro_MCP7_7); |
content.append(button); //append button to content div |
webiopi().setClass("macro7","On"); //set starting state | |
// create a button that outputs a single pulse | |
button = webiopi().createPulseButton("pulse", "Pulse", 25); | |
content.append(button); // append button to content div | |
// create a button which output a bit sequence on GPIO 25 with a 100ms period | |
button = webiopi().createSequenceButton("sos", "S.O.S 1", 25, 100, "01010100110011001100101010"); | |
content.append(button); // append button to content div | |
// the previous button will always output the same sequence | |
// you can also create a simple button with your own function | |
button = webiopi().createButton("sos2", "S.O.S 2", outputSequence); | |
content.append(button); // append button to content div | |
// create a button which call PrintTime | |
button = webiopi().createMacroButton("macro", "Print Time", "PrintTime"); | |
content.append(button); // append button to content div | |
// create a button which call HelloWorld with "User,Name" argument | |
button = webiopi().createMacroButton("macro", "Hello ?", "HelloWorld", ["User", "Name"]); | |
content.append(button); // append button to content div | |
// the previous button will always call HelloWorld with "User,Name" argument | |
// you can also create a simple button with your own function | |
button = webiopi().createButton("macro2", "Hello !", callMacro); | |
content.append(button); // append button to content div | |
// you can also create a button which calls a different function for mouse down and up events | |
button = webiopi().createButton("hold", "Hold", mousedown, mouseup); | |
content.append(button); | |
// Only for Chrome and Safari, create a slider that pulse out a -45 to +45° angle on GPIO 23 | |
button = webiopi().createAngleSlider(23); | |
content.append(button); | |
// Only for Chrome and Safari, create a slider that pulse out a 0-100% duty cycle ratio on GPIO 24 | |
button = webiopi().createRatioSlider(24); | |
content.append(button); | |
webiopi().refreshGPIO(true); | |
}); | |
function mousedown() { | |
webiopi().setValue(25, 1); | |
} | |
function mouseup() { | |
webiopi().setValue(25, 0); | |
} | |
function outputSequence() { | |
var sequence = "01010100110011001100101010" // S.O.S. morse code or whatever you want | |
// output sequence on gpio 25 with a 100ms period | |
webiopi().outputSequence(25, 100, sequence, sequenceCallback); | |
} | |
function sequenceCallback(gpio, data) { | |
alert("sequence on " + gpio + " finished with " + data); | |
} | |
function callMacro() { | |
var args = ["User","Name"] // or whatever you want | |
// call HelloWorld(args) | |
webiopi().callMacro("HelloWorld", args, macroCallback); | |
} | |
function macroCallback(macro, args, data) { | |
alert(data); | |
} | |
function callMacro_MCP7_7(){ | |
webiopi().callMacro("setmcp7",7); | |
callMacro_mcp_State() |
} | |
function callMacro_mcp_State(){ | |
var args = [0] |
webiopi().callMacro("getmcp7", args, macro_mcp_State_Callback); | |
} | |
function macro_mcp_State_Callback(macro, args, data){ |
p0 = data.split(" ")[0]; | |
if (p0==1){ |
webiopi().setClass("macro7", "ON"); | |
webiopi().setLabel("macro7", "mcp7_7 On"); | |
} | |
else{ | |
webiopi().setClass("macro7", "OFF"); | |
webiopi().setLabel("macro7", "mcp7_7 Off"); |
} | |
setInterval ("callMacro_mcp_State()", 3000);{ | |
} | |
</script> | |
<style type="text/css"> | |
button { | |
display: block; | |
margin: 5px 5px 5px 5px; | |
width: 160px; | |
height: 45px; | |
font-size: 24pt; | |
font-weight: bold; | |
color: black; | |
} | |
input[type="range"] { | |
display: block; | |
width: 160px; | |
height: 45px; | |
} | |
.LOW { | |
background-color: White; | |
} | |
.HIGH { | |
background-color: Red; | |
} | |
.OFF { display: block; | |
background-color: Red; | |
margin: 0px 0px 0px 4px; | |
width: 129px; | |
height: 40px; | |
border-radius: 10px; | |
font-size: 8pt; | |
font-weight: 600; } | |
.ON { display: block; | |
background-color: Green; | |
margin: 0px 0px 0px 4px; | |
width: 129px; | |
height: 40px; | |
border-radius: 10px; | |
font-size: 8pt; | |
font-weight: 600; } | |
</style> | |
</head> | |
<body> | |
<div id="content" align="center"></div> | |
</body> | |
</html> |
From: web...@googlegroups.com [mailto:web...@googlegroups.com] On Behalf Of Toshi Bass
Sent: 26 February 2014 18:52
To: web...@googlegroups.com
Subject: Re: Controlling MCP23017 with webiopi
Martin
--
Martin,
|
function macro_mcp_State_Callback(macro, args, data){ | |
|
p0 = data.split(" ")[0]; | |
|
if (p0==1){ | |
|
webiopi().setClass("macro7", "ON"); | |
|
webiopi().setLabel("macro7", "mcp7_7 On"); | |
|
} | |
|
else{ | |
|
webiopi().setClass("macro7", "OFF"); | |
|
webiopi().setLabel("macro7", "mcp7_7 Off"); |
|
} } // <<<<here |
|
|
Many many thanks Toshi...
You were right regarding the { I had also added a “ where I did not need one.
I now have a Switch and an LED box on the page.
However.... I now need to define “macro7”
I’m going to assume that this is done in script.py file with the following syntax...
@webiopi.macro
def setmcp7(number):
print (number)
value = not mcp7.digitalread(int(number))
mcp7.digitalWrite (int(number), value)
Whereby the highlighted parts are the macro number? And the value is either “on” or “off”
Am I correct?
Martin
From: web...@googlegroups.com [mailto:web...@googlegroups.com] On Behalf Of Toshi Bass
Sent: 26 February 2014 20:20
To: web...@googlegroups.com
Subject: Re: Controlling MCP23017 with webiopi
Martin,
--
You received this message because you are subscribed to a topic in the Google Groups "WebIOPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webiopi/vt4JMSOFkG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webiopi+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4259 / Virus Database: 3705/7127 - Release Date: 02/26/14
Hi,I have a GPIO expansion board using an MCP23017 IC. I usually use a python script and i2c to control this, but would like to be able to call functions or scripts vi the webiopi interface.I have read some documentation on https://code.google.com/p/webiopi/wiki/MCP230xx and have added the DEVICES section to the config file, however im not sure where to add the other section. DO I create my own python script for this? Or do I add it another py script?If someone could provide me with some documentation or an example script and how to call it, that would be great.Thanks in advance.
Hi Andreas,
Please can you share your driver guide with me?
Thanks in avance,
Giuseppe
--
You received this message because you are subscribed to a topic in the Google Groups "WebIOPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webiopi/vt4JMSOFkG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webiopi+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Oh great.
I'll download it soon and I hope to have good results.
Have a nice evening.
Giuseppe
--
Oh great.
I'll download it soon and I hope to have good results.Have a nice evening.
Giuseppe
On Aug 14, 2014 4:12 PM, "Andreas Riegg" <andrea...@googlemail.com> wrote:
You find it here:
http://www.t-h-i-n-x.net/3.html
It's currently v0.6 (meaning its 60% complete), I'm on the way to provide v0.8 in the next 1 - 3 weeks depending how much spare time I can invest ...
Andreas
--
You received this message because you are subscribed to a topic in the Google Groups "WebIOPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webiopi/vt4JMSOFkG4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webiopi+unsubscribe@googlegroups.com.