IO Pi Plus, Issue with two programs accessing?
The IO Pi Plus is a 32 channel MCP23017 GPIO expander for the Raspberry Pi
04/01/2016
Posted by:
kenb
I'm gearing up for next year with running 2 or more displays. I copied my Python3 program and changed the channels. Each IO pin is mapped to a single channel referenced in my program. I was sure to NOT overlap the channels on my second program. When I run the two programs at the same time, everything works without errors...almost. No errors, but there is a major issue. I don't have anything connected other than relay boards for the second display. I noticed that the timing on the first display is held constant, but I get several partial on/off flickerings. I checked the ps and top stats, and the cpu's are barely doing anything (less than 3%). I'm wondering if having two almost identical programs trying to access one IO Pi is the problem? Do I need to do something special? My program mimics the tutorial1a.py example, but uses bus.write_pin commands instead of the entire port. The two programs will write to the same buses and ports but on different pins as the channel maps are distributed across (4) 8-port relay boards...all 32-channels in use on one IO Pi+.
04/01/2016
Posted by:
admin
Is it possible for you to have the the code from both scripts in a single file? This will resolve the SMBus connection issues.
04/01/2016
Posted by:
kenb
05/01/2016
Posted by:
andrew
07/01/2016
Posted by:
kenb
Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.
Download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.