I want to use my digispark to control an LED with a digital pin, and read a photoresistor using an analog pin. The circuit works fine on an arduino uno, but when I use my digispark, I run into problems. I think the problem might be that the pins all have many functions, but after trying to use many different combinations of pins, I couldn't seem to get it to work. Any advice on using pins/getting them to function properly?
Pin 0 → I2C SDA, PWM (LED on Model B)
Pin 1 → PWM (LED on Model A)
Pin 2 → I2C SCK, Analog
Pin 3 → Analog In (also used for USB+ when USB is in use)
Pin 4 → PWM, Analog (also used for USB- when USB is in use)
Pin 5 → Analog In