@alphanumeric wrote:
I have a Breakout Garden Mini SPI i2c. Plugged into that is the trackball breakout on the left side. Color LCD breakout in the center and RV3028 RTC breakout on the right.
Everything works to a point. I can run the mouse.py file for the trackball from idle3 no problem. And from terminal withpython3 /home/pi/test-mouse.py
My problem is if I try to launch it on bootup via crontab it doesn’t work?
@reboot python3 /home/pi/test-mouse.py &
And if then try to lunch it via idle3 I get the following error message.Traceback (most recent call last): File "/home/pi/test-mouse.py", line 15, in <module> trackball = TrackBall(interrupt_pin=4) File "/usr/local/lib/python3.7/dist-packages/trackball-0.0.1-py3.7.egg/trackball/__init__.py", line 51, in __init__ raise RuntimeError("Invalid chip ID: 0x{:04X}, expected 0x{:04X}".format(chip_id, CHIP_ID)) RuntimeError: Invalid chip ID: 0x0000, expected 0xBA11
If I remark out the crontab entry and reboot. It’s back to working from idle again.
Anybody in the know, know what’s going on? Something to do with the interrupt GPIO 4?
Posts: 9
Participants: 2