Reading multiple sensors
1367 Views - Created 16/01/2019
You can read a port as a single 8-bit byte by using the read_port() function in our IO Pi libraries.
Each bus on the IO Pi is split into two ports; port 0 for pins 1 to 8 and port 1 for pins 9 to 16. Calling read_port(0) would read all pins between 1 and 8 and return a number between 0 and 255 or 0x00 and 0xFF.
We also have IO Pi libraries for C, C++, Node JS and C# .net at https://github.com/abelectronicsuk
You can also find several tutorials on using the IO Pi Plus at https://www.abelectronics.co.uk/kb/section/8/io-pi
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.