I am using a LED on my Raspberry Pi 3. I am trying to simply get it to toggle because it is not working properly. I have tried different pins and different resistance strengths, but I cannot get it to work at all. I believe it is a hardware issue so if anybody can help me with that that would be great. However, I want to give you my code in case it is a software issue.
Please keep in mind that I am on the latest version of Python 3 (Python 3.5.3).
Here is my code:
Code: Select all
from gpiozero import LED from time import sleep led = LED(26) while True: led.toggle() sleep(1)