GPIO26 Interrupt on the Sixteen LV Digital Input hat with Python 3

morrisonj

New member
I can confirm my board works as expected after your update. I disconnected the other boards and all inputs as a precaution before updating like you recommended.

Here's exactly what I did in case it helps others:

Bash:
$ 16inpind -list # Show board ids, mine is set to 1
1 board(s) detected
Id: 1

$ ./update 1 # Update board id 1
You are ready to update the firmware on your board.
Your Raspberry Pi must be connected to the internet.
We strongly recommend to disconnect all outputs from the board since they can change state unpredictably.
Type "yes" (without quotes) to continue or anything else to quit:
yes
CPUID: 80007d000450324e30383720
Downloading firmware...               Done
Programming the board...100%         Done

$ 16inpind 1 optintwr 14 1 # Set input 14's interrupt flag to 1 so it can trigger an interrupt on GPIO26.
$ 16inpind 1 optintrd 14 # Check input 14's interrupt flag status to ensure its set to 1
1

$ python test.gpio_interrupt.py # Run my test python code from the first post and trigger input 14.
Waiting for GPIO events...
GPIO 26 state changed!

Switching the state of my input (14) now triggers the interrupt on GPIO26 on the Pi. I should mention that these settings won't persist if you power the card down.

Thanks again for all your help Alex, your speedy update was much appreciated.
 
Last edited:
Top