Hey there,
I have a problem with getting the maximum brightness out of my LED. I use python to program the LED.
When I put my ground cable and 3.3V on my breadboard, the LED's brightness is high .. BUT when I use ground and GPIO.input .. the LED's brightness is not as high (without resistors).
For my project I need a real good brightness of my LED. The brightness of the ground + 3.3V is perfect.
Here is the code I used (% is on 100):
import RPi.GPIO as GPIO
led_pin = 18
GPIO.setmode(GPIO.BCM)
GPIO.setup(led_pin, GPIO.OUT)
pwm_led = GPIO.PWM(led_pin, 500)
pwm_led.start(100)
while True:
duty_s = raw_input("Enter Brightness (0 to 100):")
duty = int(duty_s)
pwm_led.ChangeDutyCycle(duty)
