This is how i wired up the transistor,
it's just a cheap common npn transistor, equivelent to a 2N2222,
Re: the analogWrite thing,
Changing the analogWrite number varies the brightness of the backlight, it's my understanding that the pwm from the arduino turns the transistor on and off rapidly, and varying the number in the command will vary how hard the transistor turns on, which varies the ammount of current it allows to pass, thus varying the backlights brightness,
So analogWrite(10, 255); turns the backlight fully on (well, almost, there will be a little loss in the transistor)
and analogWrite(10, 1); makes the backlight extremely dim, so any number between is a different backlight level,
But i can't get the lcd.backlight(); command to turn the led on for some reason,
Where as doing a digitalWrite(10, HIGH); does turn the backlight on (after declaring the pin to be an output of course)
i know i will likely have to do all the backlight dimming with analogWrite commands, but i'm curious why i cant get the lcd.backlight(); command to work, i've tried 2 different arduino uno's,
By the way, thankyou so much for creating the Nosiasca lcd library's,
Being able to display capital and lowercase umlauts on a standard lcd just by typing them is a game changer for me, before scripts i've seen wrote their own characters and did all the stuff to send them to the lcd each time they needed to display an umlaut,
But that doesent make it easy when my sketch will be reading a serial stream that contains German words thus umlauts are standard, and displaying the strings on the lcd, now i can just read the incoming serial data, split it up and write it to the lcd in the places i want.