I am running ubuntu on the pi 5
[ ... ]
thanks in advance for your help
The Developer who co-wrote and supports gpiozero is (or used to be) an employee at Canonical responsible for the Ubuntu OS on RPi hardware.
So asking for help in a Ubuntu/Canonical forum may be a route to getting relevant advice.
Ref: where to go to get Ubuntu support for the raspberry PI range of computers - viewtopic.php?t=369919
It has no direct bearing on this particular problem or its solution, but...
Python code relies on indentation (left-hand white space) for its syntax. The forum software provides [ _Code_ ] tag markup to preserve indentation. This is found on the fifth 'button' from the left at the top of the message entry screen. You can - and should - retrospectively correct your posting.
The [ PREVIEW ] button is useful for checking the presentation of your post.
Statistics: Posted by B.Goode — Tue Jul 15, 2025 7:09 am