Variable names changed, code doesn't run
The Expander Pi is an Analogue, Digital and RTC development Interface for the Raspberry Pi
01/08/2015
Posted by:
allanwright
__ioaddress = 0x20 # I2C address
__portA_dir = 0x00 # port a direction
__portB_dir = 0x00 # port b direction
__portA_val = 0x00 # port a value
__portB_val = 0x00 # port b value
__portA_pullup = 0x00 # port a pull-up resistors
__portB_pullup = 0x00 # port a pull-up resistors
__portA_polarity = 0x00 # input polarity for port a
__portB_polarity = 0x00 # input polarity for port b
__intA = 0x00 # interrupt control for port a
__intB = 0x00 # interrupt control for port a
In some of the functions, such as set_pin_direction() and set_pin_pullup(), different variable names are used such as:
port_a_dir instead of __portA_dir,
address instead of __ioaddress,
port_a_pullup instead of __portA_pullup, etc.
As a result, these functions fail.
01/08/2015
Posted by:
andrew
Forum Notice – Closure to New Posts
As part of our compliance with the UK’s Online Safety Act, the AB Electronics UK support forum is now closed to new posts and replies.
We understand the importance of continued support for our products, so if you have a technical query or require assistance, please use the Contact Form or consult our Knowledge Base for helpful articles and documentation.
We appreciate your understanding and continued support.
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.