Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: functional LEDs in an array or list? // RPi user
Post: RE: functional LEDs in an array or list? // RPi us...

(Aug-22-2022, 03:02 AM)deanhystad Wrote: Instead of this: for i in range(3): leds.on() buzzer.on() time.sleep(0.2) leds.off() buzzer.off()Do this: for...
Doczu General Coding Help 5 1,636 Aug-23-2022, 05:14 PM
    Thread: functional LEDs in an array or list? // RPi user
Post: RE: functional LEDs in an array or list? // RPi us...

(Aug-21-2022, 03:18 PM)Yoriz Wrote: leds is a list, to access an item in the list use square brackets and give an index leds[0] to use it in your code give the index as i provided by the for loop, l...
Doczu General Coding Help 5 1,636 Aug-21-2022, 03:36 PM
    Thread: functional LEDs in an array or list? // RPi user
Post: functional LEDs in an array or list? // RPi user

Hi! Total programming noob (not just in Python) here trying to make his code a bit shorter and more readable. I'm trying to put functional LEDs in an array or list to make it easier to turn two or mo...
Doczu General Coding Help 5 1,636 Aug-21-2022, 03:12 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020