Ok, I'm not sure what happened, but my LED flickering issue seems to be fixed.
I tried cloning Bill's pidp1-mods repo and installed it. During compile, I got an error:
main.c: In function ‘handledpy’:
main.c:241:42: error: passing argument 3 of ‘pthread_create’ from incompatible pointer type [-Wincompatible-pointer-types]
241 | pthread_create(&lp_thread, NULL, lightpenListener, pdp);
| ^~~~~~~~~~~~~~~~
| |
| int (*)(PDP1 *)
In file included from main.c:18:
/usr/include/pthread.h:204:36: note: expected ‘void * (*)(void *)’ but argument is of type ‘int (*)(PDP1 *)’
204 | void *(*__start_routine) (void *),
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
I ignored it since I'm not using any lightpen stuff, but of course this prevented all the binaries from being created. test.sh wouldn't work because it was looking for /opt/pidp1-mods/bin/pidp1_test and that symlink was pointing to a non-existent file. I poked around and got test.sh 'working' but the switch values were all randomly changing, the LEDs were blinking randomly, it clearly wasn't working correctly. I had to manually kill some processes and clean things up.
Figuring I had done something wrong, I re-ran install.sh for the original pidp1 tools to put everything back, and this time when I started pidp1control, the LEDs were on solid and NOT flickering! Further testing showed I could load in Blinky-1 and get it running and the blinkenlights all seemed fine.
I'm not sure what I did messing around with Bill's repo that "fixed" the LED problem?
So now my only issue still seems to be that one switch.