Hi Terry >>> - Discard the try...except: > ... >> The behaviour is identical. >> >>> - Comment out the call to traffic_lights() in led_cycle(). > ... >> That's weird! The traffic_lights() function is still executed! > > How do you know your edited code is what's being run? Each time you > edit it to create a new version, change a print() to confirm the change > is being used. > > What do you see which makes you think traffic_lights() is executed? > > Have you copy-pasted traffic_lights() code into another function, not > edited it to suit, and it is that which is being executed, > e.g. a print() mentioning traffic lights.
I thought the SDCard was readonly? How can you save the code? -- Next meeting: Online, Jitsi, Tuesday, 2025-05-06 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... https://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk